Some strange problem SegFault at conn_- >lock() 2007-01-15 - By Manuel Jung
Back Hi everybody, Im have a strange problem. My programm is multithreaded and has different MySQL Connections on a per thread basis. This works very well. But now i have rewriten a part of my code which affects one of the threads. But it uses a great part of the well working classes. Now i get a Segmentation Fault on executing execute() or store() (i tried just these two). gdb get me this errormessages: #0 0x00000000 in ?? () #1 0xb7ce1ca8 in mysqlpp::Query::lock (this=0x80b3de4) at query.cpp:137 #2 0xb7ce2ff6 in mysqlpp::Query::store (this=0xb705eeb0, str=0x80b3de4 "??????\v\b??????\v\b??????\v\b") at query.cpp:349 #3 0xb7ce32f0 in mysqlpp::Query::store (this=0xb705eeb0, p=@(protected)) at /usr/include/c++/3.3/bits/basic_string.h:355 #4 0x08057cc7 in mysqlpp::Query::store (this=0xb705eeb0) at /usr/local/include/mysql++/query.h:309 #5 0x08094391 in shark::DownloadCall (this=0x80bfdc0, Slot=0x80b3814) at src/shark.cpp:69 #6 0x080732d3 in swarm::StartSlot (this=0x80bfdc0, Slot=0x80b3814) at src/swarm.cpp:107 #7 0x0805b0ea in slots::SetSlots (this=0x80bfdc0, newSlots=1, maxSlots=10) at src/slots.cpp:73 #8 0x08082955 in seal::SelfControl (this=0x80bfce0) at src/seal.cpp:78 #9 0x0808842d in boost::_mfi::mf0<void, seal>::operator() (this=0x80b30d8, p=0x80bfce0) at /usr/local/include/boost/bind/mem_fn_template.hpp:45 #10 0x080883ac in operator()<boost::_mfi::mf0<void, seal>, boost::_bi::list0> ( this=0x80b30e0, f=@(protected), a=@(protected)) at /usr/local/include/boost/bind.hpp:229 #11 0x0808835c in boost::_bi::bind_t<void, boost::_mfi::mf0<void, seal>, boost::_bi::list1<boost::_bi::value<seal*> > >::operator() (this=0x80b30d8) at /usr/local/include/boost/bind/bind_template.hpp:20 ---Type <return> to continue, or q <return> to quit--- #12 0x0808830f in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, seal>, boost::_bi::list1<boost::_bi::value<seal*> > >, void>::invoke (function_obj_ptr= {obj_ptr = 0x80b30d8, const_obj_ptr = 0x80b30d8, func_ptr = 0x80b30d8, data = "???"}) at /usr/local/include/boost/function/function_template.hpp:136 #13 0xb7cb39c9 in boost::function0<void, std::allocator<boost::function_base> >::operator() () from /usr/local/lib/libboost_thread-gcc-mt-1_33_1.so.1.33.1 #14 0xb7cb35fd in boost::thread_group::size () from /usr/local/lib/libboost_thread-gcc-mt-1_33_1.so.1.33.1 #15 0xb7c09504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #16 0xb7b9d51e in clone () from /lib/tls/i686/cmov/libc.so.6
Even the Query worked in this part of program well. Has someone a idea what about this problem could be? All other MySQL parts work well. Im sorry i cannot post some of my code, this wont help and it is just too big, to help us. if i try connected() on the connections it tells me it is just fine; no exception were thrown either..
Thanks for reading and helping Greetings Manuel Jung
-- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=mysql@(protected)
|
|