Re: [Boost-users] Boost.Regex - why does it core dump?
1) add a try catch block and verify that the dump isn't a result of an
uncaught exception. Done. Same result.
2) provide a backtrace?
Okay; here it is:
Program terminated with signal 11, Segmentation fault.
#0 0x407c851 in boost::detail::atomic_increment (pw=0x400087a4)
at sp_counted_base_gcc_ia64.hpp:38
38 "r"(pw));
(gdb) backtrace
#0 0x407c851 in boost::detail::atomic_increment (pw=0x400087a4)
at sp_counted_base_gcc_ia64.hpp:38
#1 0x407cc60 in boost::detail::sp_counted_base::add_ref_copy
(this=0x400087a0)
at sp_counted_base_gcc_ia64.hpp:117
#2 0x407cdb0 in boost::detail::shared_count::shared_count
(this=0x7ffff0f8,
r=@0x7ffff128) at shared_count.hpp:170
#3 0x4087700 in
boost::shared_ptr ::boost::shared_ptr har> > (this=0x7ffff0f4) at shared_ptr.hpp:106
#4 0x40af160 in
std::pair ::std::pair boost::re_detail::create_cpp_regex_traits<char> (l=@0x7ffff1e0)
at cpp_regex_traits.hpp:822
#8 0x411b380 in
boost::cpp_regex_traits<char>::boost::cpp_regex_traits<char> (
this=0x40008760) at cpp_regex_traits.hpp:842
#9 0x411b480 in boost::regex_traits *************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be
legally privileged.
If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.
If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.
Thank you.
*************************************************************************
2) provide a backtrace?
Okay; here it is:
Oh !*^% it's an outstanding shared_ptr bug: if you define BOOST_SP_USE_PTHREADS both when building regex and again in your application this problem will go away. I'll go off and nag the people responsible ;-> John.
participants (2)
-
John Maddock
-
Smith Matt - matsmi