dbTalk Databases Forums  

Can some help me with this gdb output with mysql and string core

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Can some help me with this gdb output with mysql and string core in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ankur G35 Saxena
 
Posts: n/a

Default Can some help me with this gdb output with mysql and string core - 11-21-2006 , 11:53 AM






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_ite rator<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_i nfo const*,
std::vector<mysqlpp::mysql_type_info,
std::allocator<mysqlpp::mysql_type_info>
Quote:
, 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:rocess_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:rocess_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();

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #2  
Old   
Ankur G35 Saxena
 
Posts: n/a

Default Re: Can some help me with this gdb output with mysql and string core - 11-21-2006 , 11:54 AM






On 11/21/06, Ankur G35 Saxena <g35rider (AT) gmail (DOT) com> wrote:
Quote:
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_ite rator<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_i nfo 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:rocess_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:rocess_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();





I found another scenario in which it crashed, can someone please help...

Thanks

Ankur




[ankur@lemko252 aaa-logs]$ more Crash3.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 0x400752e6 in my_snprintf () from /usr/lib/libmysqlpp.so
(gdb)
#3 0x4007671c in my_scan_8bit () from /usr/lib/libmysqlpp.so
(gdb)
#4 0x40089b28 in typeinfo name for mysqlpp::Null<double,
mysqlpp::NullisNull> () from /usr/lib/libmysqlpp.so
(gdb)
#5 0x4008b9ef in sha_const_key () from /usr/lib/libmysqlpp.so
(gdb)
#6 0x4008bbaf in sha_const_key () from /usr/lib/libmysqlpp.so
(gdb)
#7 0x4006f8d7 in mysql_stmt_store_result () from /usr/lib/libmysqlpp.so
(gdb)
#8 0x4005da56 in mysqlpp::ResUse::copy(mysqlpp::ResUse const&) ()
from /usr/lib/libmysqlpp.so
(gdb)
#9 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)
#10 0x080a1f9e in DBAccess::runGetSql(char*, mysqlpp::Result*,
LogEntry*) (this=0x81097b4,
querystr=0x412acf1c "SELECT * FROM CommunityInfo.CLR,
CommunityInfo.dMARCList WHERE CommunityInfo.CLR.dmaID =
CommunityInfo.dMARCList.dmaID and CommunityInfo.CLR.MDN='7476100
052'", resSet=0x412ad14c, Log=0x412ad52c) at query.h:309
309 Result store() { return store(def); }
(gdb)
#11 0x080a66f6 in DBAccess::findNumberCLR(char*, char, char*,
mysqlpp::Result*, char, LogEntry*) (this=0x81097b4,
search_str=0x81d4548 "7476100052", field_type=2 '\002',
equip_id=0x81d4568 "", devRegRes=0x412ad14c, run_mask=5 '\005',
Log=0x412ad52c) at FindNumber.cpp:363
363 if(runGetSql(querystr_get, devRegRes, Log) > 0)
(gdb)
#12 0x080a50be in DBAccess::findNumber(char*, char, char*,
RegisteredMS*, char, LogEntry*) (this=0x81097b4, search_str=0x81d4548
"7476100052", field_type=2 '\002',
equip_id=0x81d4568 "", regMS=0x41b143a8, run_mask=108 'l',
Log=0x412ad52c) at FindNumber.cpp:100
100 if(findNumberCLR(search_str,
field_type, equip_id, &devRegRes, run_mask, Log) == RET_IN_CLR)
(gdb)
#13 0x08078db0 in MsgProcessor:rocess_MSC_Auth_Req(CcAAAAuthReqMsg *,
sockaddr_in*) (this=0x81097b4, msg=0x81d4540, replyTo=0x815fae0) at
MsgProcessor-Recv-MSC.cpp:588
588 int findRes = db.findNumber(msg->calleeID,
FIELD_TYPE_MDN,
(gdb)
#14 0x0805ee31 in InSysController::handleRequest(char*, int,
sockaddr_in*) (this=0x81097b4, m=0x81d4540 "\f\016,\001\001", len=1,
fromwho=0x815fae0) at InSysController.cpp:58
58 msgProc.process_MSC_Auth_Req(msg, fromwho);
(gdb)
#15 0x0805ebd3 in InSysController::OnThreadMessage(int, int, void*)
(this=0x8109650, id=0, wParam=0, lParam=0x815fad8) at
InSysController.cpp:18
18 handleRequest((char *)p->msg, p->len,
&(p->fromwho));
(gdb)
#16 0x0809becd in ZThread::Run() (this=0x8109650) at zthread.cc:239
239 OnThreadMessage(msg.m_nMsg_Id, msg.m_nParam,
msg.m_pParam);
(gdb)
#17 0x0809b659 in Thread_Entry_Func(void*) (arg=0x8109650) at zthread.cc:22
22 pThread->Run();

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Warren Young
 
Posts: n/a

Default Re: Can some help me with this gdb output with mysql and string core - 11-21-2006 , 06:12 PM



Ankur G35 Saxena wrote:
Quote:
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.
You're going to have to boil this down to a simpler example, and provide
test code, if anyone is likely to be able to help you. A crash log
without the source code that produced it isn't very helpful at all.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.