
Hi I am running boost 1.31.1 on Fedora Core 6 with gcc 4.1.1 I get the following error when using boost::regex: Program received signal SIGSEGV, Segmentation fault. 0x0015efaf in boost::object_cache<boost::re_detail::cpp_regex_traits_base<char>, boost::re_detail::cpp_regex_traits_implementation<char> >::do_get () from /opt/viamedia/dependencies/lib/boost/libboost_regex-gcc-mt-1_33_1.so.1.33.1 Here is a copy of the backtrace: (gdb) bt #0 0x0015efaf in boost::object_cache<boost::re_detail::cpp_regex_traits_base<char>, boost::re_detail::cpp_regex_traits_implementation<char> >::do_get () from /opt/viamedia/dependencies/lib/boost/libboost_regex-gcc-mt-1_33_1.so.1.33.1 #1 0x0015fbd9 in boost::object_cache<boost::re_detail::cpp_regex_traits_base<char>, boost::re_detail::cpp_regex_traits_implementation<char> >::get () from /opt/viamedia/dependencies/lib/boost/libboost_regex-gcc-mt-1_33_1.so.1.33.1 #2 0x001767f7 in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign () from /opt/viamedia/dependencies/lib/boost/libboost_regex-gcc-mt-1_33_1.so.1.33.1 #3 0x007a0e0a in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign ( this=0xbfd3f030, p1=0x98bff24 "database#name\"vmcrm\"\\.(.*)", p2=0x98bff3e "", f=0) at /opt/viamedia/dependencies/include/boost/regex/v4/basic_regex.hpp:254 #4 0x007a0e4f in boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign ( this=0xbfd3f030, p=0x98bff24 "database#name\"vmcrm\"\\.(.*)", f=0) at /opt/viamedia/dependencies/include/boost/regex/v4/basic_regex.hpp:239 #5 0x007a0e98 in basic_regex (this=0xbfd3f030, p=0x98bff24 "database#name\"vmcrm\"\\.(.*)", f=0) at /opt/viamedia/dependencies/include/boost/regex/v4/basic_regex.hpp:208 Any help would be much appreciated! thanks

Pete Cilliers wrote:
Hi
I am running boost 1.31.1 on Fedora Core 6 with gcc 4.1.1 I get the following error when using boost::regex:
Any help would be much appreciated!
That's new one on me: frankly I have no idea what's going on, except that these kinds of issues are often caused by binary compatibility issues: any chance your executable is being built with options that aren't compatible with the .so your linking against? You could also try: Add the regex source (libs/regex/src/*.cpp) directly to your project and see if that fixes the issue, if not at least you'll be able to better debug the issue :-) You could also try defining BOOST_REGEX_NO_EXTERNAL_TEMPLATES when building your app to suppress linking against the template instances in the .so, this will make the application larger, but may be enough to suppress binary compatibility issues. Hopefully this will be enough for you to get to the bottom of this, John.
participants (2)
-
John Maddock
-
Pete Cilliers