ashley@copac1 ~/tmp $ env LD_LIBRARY_PATH=~/src/boost_1_51_0/stage/lib:/copac/lib gdb regex GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.10". For bug reporting instructions, please see: ... Reading symbols from /export/home/ashley/tmp/regex...done. (gdb) run Starting program: /export/home/ashley/tmp/regex [Thread debugging using libthread_db enabled] [New Thread 1 (LWP 1)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1 (LWP 1)] 0xff1c71f8 in boost::re_detail::basic_regex_creator::append_set (this=0xffbff738, char_set=...) at ./boost/regex/v4/basic_regex_creator.hpp:379 379 result->cclasses = char_set.classes(); (gdb) bt #0 0xff1c71f8 in boost::re_detail::basic_regex_creator::append_set (this=0xffbff738, char_set=...) at ./boost/regex/v4/basic_regex_creator.hpp:379 #1 0xff1be6cc in boost::re_detail::basic_regex_creator::append_set (this=0xffbff738, char_set=...) at ./boost/regex/v4/basic_regex_creator.hpp:361 #2 0xff1b085c in boost::re_detail::basic_regex_parser::parse_set (this=0xffbff738) at ./boost/regex/v4/basic_regex_parser.hpp:1269 #3 0xff1a7c44 in boost::re_detail::basic_regex_parser::parse_extended (this=0xffbff738) at ./boost/regex/v4/basic_regex_parser.hpp:354 #4 0xff1a8600 in boost::re_detail::basic_regex_parser::parse_all (this=0xffbff738) at ./boost/regex/v4/basic_regex_parser.hpp:234 #5 0xff1a46e0 in boost::re_detail::basic_regex_parser::parse (this=0xffbff738, p1=0x27cd0, p2=0x27d00, l_flags=0) at ./boost/regex/v4/basic_regex_parser.hpp:157 #6 0xff1a172c in boost::re_detail::basic_regex_implementation::assign (this=0x27d08, arg_first=0x27cd0, arg_last=0x27d00, f=0) at ./boost/regex/v4/basic_regex.hpp:215 #7 0xff19ea64 in boost::basic_regex::do_assign (this=0xffbffa80, p1=0x27cd0, p2=0x27d00, f=0) at ./boost/regex/v4/basic_regex.hpp:661 #8 0x00015e9c in boost::basic_regex::assign (this=0xffbffa80, p1=0x27cd0, p2=0x27d00, f=0) at /export/home/ashley/src/boost_1_51_0/boost/regex/v4/basic_regex.hpp:382 #9 0x00015880 in boost::basic_regex::basic_regex > ( this=0xffbffa80, arg_first=..., arg_last=..., f=0) at /export/home/ashley/src/boost_1_51_0/boost/regex/v4/basic_regex.hpp:404 #10 0x00015064 in boost::re_detail::do_make_u32regex (i=0x16d68 , j=0x16d74 "", opt=0) at /export/home/ashley/src/boost_1_51_0/boost/regex/icu.hpp:254 #11 0x00014b44 in boost::make_u32regex (p=0x16d68 , opt=0) at /export/home/ashley/src/boost_1_51_0/boost/regex/icu.hpp:351 #12 0x0001446c in main () at regex.cpp:5 (gdb) f 0 #0 0xff1c71f8 in boost::re_detail::basic_regex_creator::append_set (this=0xffbff738, char_set=...) at ./boost/regex/v4/basic_regex_creator.hpp:379 379 result->cclasses = char_set.classes(); (gdb) print char_set $1 = (const boost::re_detail::basic_char_set &) @0xffbff500: { m_singles = {, std::allocator > >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_start = 0x28440, _M_finish = 0x28450, _M_end_of_storage = 0x28450}}, }, m_ranges = {, std::allocator > >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}}, }, m_negate = false, m_has_digraphs = false, m_classes = 0, m_negated_classes = 0, m_empty = false, m_equivalents = {, std::allocator > >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}}, }} (gdb)