Hi Mateusz

On Tue, 16 Nov 2010 00:49:32 +0000
Mateusz Loskot <[email protected]> wrote:

> Could you please pull the new version and try again?

Sure! Unfortunately it still segfaults on clean up:

0xf529197e in sqloxltc_app () from /opt/ibm/db2/V9.7/lib32/libdb2.so
(gdb) bt
#0  0xf529197e in sqloxltc_app () from /opt/ibm/db2/V9.7/lib32/libdb2.so
#1  0xf53a27d4 in CLI_dstRequestHLatch ()
   from /opt/ibm/db2/V9.7/lib32/libdb2.so
#2  0xf5315e73 in SQLDisconnect ()
from /opt/ibm/db2/V9.7/lib32/libdb2.so #3  0xf641af2f in SQLDisconnect
() from /usr/lib/libodbc.so.1 #4  0xf7670836 in
soci::odbc_session_backend::clean_up ()
from /usr/lib/libsoci_odbc.so.3.1.0 #5  0xf7670c5b in
soci::odbc_session_backend::~odbc_session_backend ()
from /usr/lib/libsoci_odbc.so.3.1.0 #6  0xf7426cff in
soci::session::~session () from /usr/lib/libsoci_core.so.3.1.0
#7  0xf74283b4 in soci::connection_pool::~connection_pool ()
   from /usr/lib/libsoci_core.so.3.1.0
#8  0xf7710896 in boost::checked_delete<soci::connection_pool>
(x=0x8558e08) at /usr/include/boost/checked_delete.hpp:34
#9  0xf77109a2 in
boost::detail::sp_counted_impl_p<soci::connection_pool>::dispose
(this=0x8559110)
at /usr/include/boost/smart_ptr/detail/sp_counted_impl.hpp:78 #10
0x0808cb2c in boost::detail::sp_counted_base::release (this=0x8559110)
at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145
#11 0x0808cb64 in ~shared_count (this=0xf7743f7c)
at /usr/include/boost/smart_ptr/detail/shared_count.hpp:217 #12
0xf7710174 in ~shared_ptr (this=0xf7743f78) ---Type <return> to
continue, or q <return> to quit---
at /usr/include/boost/smart_ptr/shared_ptr.hpp:169 #13 0xf7710581 in
~CMysteryDatabasePoolData (this=0xf7743f78)
at /home/chollya/Mystery/src/libmysterycommon/database.h:19 #14
0xf713bab9 in exit () from /lib/i686/cmov/libc.so.6 #15 0xf712345d in
__libc_start_main () from /lib/i686/cmov/libc.so.6 #16 0x0808b921 in
_start ()


And valgrind output:
==593==  Address 0xc4986e0 is not stack'd, malloc'd or (recently) free'd
==593== 
==593== Process terminating with default action of signal 11 (SIGSEGV)
==593==  Access not within mapped region at address 0xC4986E0
==593==    at 0x9D3597E: sqloxltc_app (in /opt/ibm/db2/V9.7/lib32/libdb2.so.1)
==593==    by 0x9E467D3: CLI_dstRequestHLatch(short, unsigned char, int) (in 
/opt/ibm/db2/V9.7/lib32/libdb2.so.1)
==593==    by 0x9DB9E72: SQLDisconnect (in /opt/ibm/db2/V9.7/lib32/libdb2.so.1)
==593==    by 0x98B2F2E: SQLDisconnect (in /usr/lib/libodbc.so.1.0.0)
==593==    by 0x976C835: soci::odbc_session_backend::clean_up() (in 
/usr/lib/libsoci_odbc.so.3.1.0)
==593==    by 0x976CC5A: soci::odbc_session_backend::~odbc_session_backend() 
(in /usr/lib/libsoci_odbc.so.3.1.0)
==593==    by 0x70EECFE: soci::session::~session() (in 
/usr/lib/libsoci_core.so.3.1.0)
==593==    by 0x70F03B3: soci::connection_pool::~connection_pool() (in 
/usr/lib/libsoci_core.so.3.1.0)
==593==    by 0x486C895: void 
boost::checked_delete<soci::connection_pool>(soci::connection_pool*) 
(checked_delete.hpp:34)
==593==    by 0x486C9A1: 
boost::detail::sp_counted_impl_p<soci::connection_pool>::dispose() 
(sp_counted_impl.hpp:78)
==593==    by 0x808CB2B: boost::detail::sp_counted_base::release() 
(sp_counted_base_gcc_x86.hpp:145)
==593==    by 0x808CB63: boost::detail::shared_count::~shared_count() 
(shared_count.hpp:217)

 
> Thanks for testing!

Thanks for SOCI! :)

-- 
                                                Denis Chapligin

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to