List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:September 29 2006 9:05pm
Subject:Re: I am crashing once in a while @ similar points (multi threading)
View as plain text  
Ankur G35 Saxena wrote:
> (gdb) bt
> #0  0x4025e276 in std::__default_alloc_template<true, 
> 0>::allocate(unsigned) ()
>   from /usr/lib/
> #1  0x402642a8 in std::string::_Rep::_S_create(unsigned,
> std::allocator<char> const&) () from /usr/lib/
> #2  0x402643d9 in std::string::_Rep::_M_clone(std::allocator<char>
> const&, unsigned) () from /usr/lib/
> #3  0x40260e3d in std::string::_Rep::_M_grab(std::allocator<char>
> const&, std::allocator<char> const&) () from /usr/lib/
> #4  0x40260f4c in std::string::string(std::string const&) ()
>   from /usr/lib/

It's clearly crashing deep in the Standard C++ library, not in MySQL++. 
  Therefore, either some piece of code corrupted it earlier, or it has a 
thread bug of its own.

At this point, I would make sure that your program and _all_ of the 
libraries it uses are built with thread-awareness.  If you find no 
problems there, run it under valgrind...hopefully you can catch this 
problem at an earlier stage, instead of chasing secondary damage.
I am crashing once in a while @ similar points (multi threading)Ankur G35 Saxena29 Sep
  • Re: I am crashing once in a while @ similar points (multi threading)Warren Young29 Sep