List:MySQL++« Previous MessageNext Message »
From:Ankur G35 Saxena Date:November 21 2006 5:23pm
Subject:Can some help me with this gdb output with mysql and string core
View as plain text  
Hi, I dont know what i am doing wrong here, if someone through some
suggestions on this it would be wonderful, give me a little detail as
to why it could happen. I seems to be from a string lib used by mysql
lib.

Thanks

Ankur




[ankur@lemko252 aaa-logs]$ more C*
::::::::::::::
Crash1.gdb
::::::::::::::
Loaded symbols for /lib/libnss_files.so.2
#0  0x420744fe in _int_free () from /lib/tls/libc.so.6
(gdb) up
#1  0x420734d6 in free () from /lib/tls/libc.so.6
(gdb)
#2  0x4026f983 in operator delete(void*) () from /usr/lib/libstdc++.so.5
(gdb)
#3  0x4026332e in std::string::_Rep::_M_destroy(std::allocator<char>
const&) () from /usr/lib/libstdc++.so.5
(gdb)
#4  0x4005dd92 in mysqlpp::mysql_type_info*
std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<mysqlpp::mysql_type_info
const*, std::vector<mysqlpp::mysql_type_info, std:
:allocator<mysqlpp::mysql_type_info> > >,
mysqlpp::mysql_type_info*>(__gnu_cxx::__normal_iterator<mysqlpp::mysql_type_info
const*, std::vector<mysqlpp::mysql_type_info, std::allo
cator<mysqlpp::mysql_type_info> > >,
__gnu_cxx::__normal_iterator<mysqlpp::mysql_type_info const*,
std::vector<mysqlpp::mysql_type_info,
std::allocator<mysqlpp::mysql_type_info>
> >, mysqlpp::mysql_type_info*, __false_type) () from /usr/lib/libmysqlpp.so
(gdb)
#5  0x080a1f9e in DBAccess::runGetSql(char*, mysqlpp::Result*,
LogEntry*) (this=0x81097b4,
    querystr=0x412ad08c "SELECT * FROM SystemConfig.DialingPlan WHERE
total_len='10' and (dialed_pattern like '7%' or dialed_pattern='')
order by last_any", resSet=0x412ad05c, Lo
g=0x412ad52c) at query.h:309
309             Result store() { return store(def); }
(gdb)
#6  0x080a0cdf in DBAccess::analyzeNumber(char*, char*, LogEntry*)
(this=0x81097b4, dialed_num=0x41b79f20 "7476100238",
    true_mdn=0x412ad4ec "", Log=0x412ad52c) at DBAccess.cpp:58
58              if(runGetSql(querystr, &get, Log) > 0)
(gdb)
#7  0x0807912d in MsgProcessor::process_MSC_Auth_Req(CcAAAAuthReqMsg*,
sockaddr_in*) (this=0x81097b4, msg=0x41b79f18,
    replyTo=0x41b28720) at MsgProcessor-Recv-MSC.cpp:514
514                     calleeNumType =
db.analyzeNumber(msg->calleeID, calleeTranslation, &Log);
(gdb)
#8  0x0805ee31 in InSysController::handleRequest(char*, int,
sockaddr_in*) (this=0x81097b4, m=0x41b79f18 "\f\016,\001\001",
    len=1, fromwho=0x41b28720) at InSysController.cpp:58
58                              msgProc.process_MSC_Auth_Req(msg, fromwho);
(gdb)
#9  0x0805ebd3 in InSysController::OnThreadMessage(int, int, void*)
(this=0x8109650, id=0, wParam=0, lParam=0x41b28718)
    at InSysController.cpp:18
18                              handleRequest((char *)p->msg, p->len,
&(p->fromwho));

::::::::::::::
Crash2.gdb
::::::::::::::
Loaded symbols for /lib/libnss_files.so.2
#0  0x42073fc3 in _int_malloc () from /lib/tls/libc.so.6
(gdb) up
#1  0x4207335b in malloc () from /lib/tls/libc.so.6
(gdb)
#2  0x4026fa48 in __cxa_allocate_exception () from /usr/lib/libstdc++.so.5
(gdb)
#3  0x4005db33 in mysqlpp::ResUse::copy(mysqlpp::ResUse const&) ()
from /usr/lib/libmysqlpp.so
(gdb)
#4  0x4005dd32 in std::string*
std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<std::string
const*, std::vector<std::string, std::allocator<std::string> > >,
std::strin
g*>(__gnu_cxx::__normal_iterator<std::string const*,
std::vector<std::string, std::allocator<std::string> > >,
__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::s
tring, std::allocator<std::string> > >, std::string*, __false_type) ()
from /usr/lib/libmysqlpp.so
(gdb)
#5  0x080a1f9e in DBAccess::runGetSql(char*, mysqlpp::Result*,
LogEntry*) (this=0x81097b4,
    querystr=0x412ad08c "SELECT * FROM SystemConfig.DialingPlan WHERE
dialed_pattern='7476100006'", resSet=0x412ad05c,
    Log=0x412ad52c) at query.h:309
309             Result store() { return store(def); }
(gdb)
#6  0x080a0a51 in DBAccess::analyzeNumber(char*, char*, LogEntry*)
(this=0x81097b4, dialed_num=0x81f21f0 "7476100006",
    true_mdn=0x412ad4ec "", Log=0x412ad52c) at DBAccess.cpp:46
46              if(runGetSql(querystr, &get, Log) > 0)
(gdb)
#7  0x0807912d in MsgProcessor::process_MSC_Auth_Req(CcAAAAuthReqMsg*,
sockaddr_in*) (this=0x81097b4, msg=0x81f21e8,
    replyTo=0x81d4278) at MsgProcessor-Recv-MSC.cpp:514
514                     calleeNumType =
db.analyzeNumber(msg->calleeID, calleeTranslation, &Log);
(gdb)
#8  0x0805ee31 in InSysController::handleRequest(char*, int,
sockaddr_in*) (this=0x81097b4, m=0x81f21e8 "\f\016,\001\001",
    len=1, fromwho=0x81d4278) at InSysController.cpp:58
58                              msgProc.process_MSC_Auth_Req(msg, fromwho);
(gdb)
#9  0x0805ebd3 in InSysController::OnThreadMessage(int, int, void*)
(this=0x8109650, id=0, wParam=0, lParam=0x81d4270)
    at InSysController.cpp:18
18                              handleRequest((char *)p->msg, p->len,
&(p->fromwho));
(gdb)
#10 0x0809becd in ZThread::Run() (this=0x8109650) at zthread.cc:239
239                   OnThreadMessage(msg.m_nMsg_Id, msg.m_nParam,
msg.m_pParam);
(gdb)
#11 0x0809b659 in Thread_Entry_Func(void*) (arg=0x8109650) at zthread.cc:22
22            pThread->Run();
Thread
Can some help me with this gdb output with mysql and string coreAnkur G35 Saxena21 Nov
  • Re: Can some help me with this gdb output with mysql and string coreAnkur G35 Saxena21 Nov
  • Re: Can some help me with this gdb output with mysql and string coreWarren Young22 Nov