id summary reporter owner description type status milestone component version severity resolution keywords cc 6405 Assertion exception thrown when using boost::regex_match ses44@… John Maddock "When attempting to do a regex match using the following code: {{{ bool isValidEmailAddr(const std::string & addr) { boost::regex reg(""((^|@)[[:alnum:]!#$%&'*+/=?^_`{|}~-]+(.[[:alnum:]!#$%&'*+/=?^_`{|}~-]+)*){2}$""); return boost::regex_match(addr, reg); } }}} on a linux box with boost 1.48, gcc version 4.4.6 i get the following error: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: typename boost::detail::shared_ptr_traits::reference boost::shared_ptr::operator*() const [with T = boost::regex_traits_wrapper > >]: Assertion `px != 0' failed. Aborted Moving my code to my mac, compiling with boost 1.48, gcc 4.7 all seems to work fine. Additionally, if I try to print the regex on the linux box I get: terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid I'm going to try to upgrade my linux box to gcc 4.7, but I would like to understand what the problem is. Thanks much. BTW - I noticed a bug report that indicates this may happen in multi-threaded environments due to some allocation rules, but this is a very simple single threaded test. " Bugs closed To Be Determined regex Boost 1.54.0 Problem worksforme