![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Back trace looks like this: #0 0xb73abaaa in _int_malloc () from /lib/tls/libc.so.6 #1 0xb73aadfd in malloc () from /lib/tls/libc.so.6 #2 0xb75943fe in my_malloc () from /usr/lib/mysql/libmysqlclient_r.so.10 #3 0xb7592915 in my_net_init () from /usr/lib/mysql/libmysqlclient_r.so.10 #4 0xb7590228 in mysql_real_connect () from /usr/lib/mysql/libmysqlclient_r.so.10 #5 0xb7590d55 in mysql_real_connect () from /usr/lib/mysql/libmysqlclient_r.so.10 #6 0xb758f148 in simple_command () from /usr/lib/mysql/libmysqlclient_r.so.10 #7 0xb7591450 in mysql_real_query () from /usr/lib/mysql/libmysqlclient_r.so.10 #8 0xb75911e5 in mysql_query () from /usr/lib/mysql/libmysqlclient_r.so.10 #9 0xb7568586 in mysqlpp::Connection::store(std::string const&, bool) (this=0xbfffc6c8, str=@0xbfffc280, throw_excptns=false) at basic_string.h:781 #10 0xb756f816 in mysqlpp::Query::store(mysqlpp::SQLQueryParms&) (this=0x0, p=@0xbfffc50c) at connection.h:142 |
|
#11 0x0804c208 in DnisCacheMgr::cacheData(mysqlpp::Connection*) (this=0x8053300, con=0xbfffc6c8) at query.h:90 #12 0x08050159 in void CacheManager::bla<DnisCacheMgr>(DnisCacheMgr*) (this=0xbfffc680, mgr=0x806bfd8) at CacheManager.h:48 #13 0x0804facf in main (argc=1, argv=0xbfffc964) at CacheManager.h:34 |
#3
| |||
| |||
|
|
Chris, Thanks for a reply. I am not quite sure why "this" is showing as 0x0 in the backtrace below. Query::store is being defined by this complicated macro inside the query.h (query_define1 - I believe). In any case, in my example I print the address of query object being constructed and connection object reference inside query object and both are valid. Also, I don't believe that if connection object is invalid or query object would be invalid, I would get to the next step in the backtrace Connection::store which is being displayed properly in the backtrace. Below are the debugs from my programs: |
#4
| |||
| |||
|
|
Thanks for a reply. I am not quite sure why "this" is showing as 0x0 in the backtrace below. Query::store is being defined by this complicated macro inside the query.h (query_define1 - I believe). In any case, in my example I print the address of query object being constructed and connection object reference inside query object and both are valid. |
![]() |
| Thread Tools | |
| Display Modes | |
| |