
All: I'm trying to run the captures example included in the Boost.Regex documentation. When running the captures example verbatim, I get: "Program received signal: "EXC_BAD_ACCESS"." This is happening on Mac OS X 10.4.6 (Intel) with Boost 1.33.1. This problem seems to be related to the definition of BOOST_REGEX_MATCH_EXTRA - if I don't use captures and leave the macro undefined, other regex functions work fine.
From gdb:
(gdb) backtrace #0 0x00003ad4 in boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> >::str () #1 0x00003b3a in boost::operator<< <char, std::char_traits<char>, __gnu_cxx::__normal_iterator<char const*, std::string> > () #2 0x00001ff1 in print_captures () #3 0x000021e6 in main () The instruction that caused the error: 0x00003ad4 <+0068> movsbl (%eax),%eax I'm way out of my depth on this one. Does anyone have any thoughts on what to try? Has anyone been able to use captures on an Intel Mac system, or could this be a platform specific issue? Thanks, Chris