List:MySQL++« Previous MessageNext Message »
From:Alexander Golec Date:March 27 2010 1:31am
Subject:Connection copy-constructor segfault?
View as plain text  
There seems to be a memory error in the copy-constructor for the Connection class. Here is
a backtrace and an example. 

#0  *__GI___libc_free (mem=0x2f3c6573656e6968) at malloc.c:3687
#1  0x00007ffff6cf6ee1 in mysql_options () from /usr/lib/libmysqlclient.so.15
#2  0x00007ffff7bb9054 in mysqlpp::ReadDefaultFileOption::set(mysqlpp::DBDriver*) () from
/usr/lib/libmysqlpp.so.3
#3  0x00007ffff7bb389f in mysqlpp::DBDriver::set_option(mysqlpp::Option*) () from
/usr/lib/libmysqlpp.so.3
#4  0x00007ffff7bb4598 in mysqlpp::DBDriver::connect(st_mysql const&) () from
/usr/lib/libmysqlpp.so.3
#5  0x00007ffff7bb4756 in mysqlpp::DBDriver::DBDriver(mysqlpp::DBDriver const&) ()
from /usr/lib/libmysqlpp.so.3
#6  0x00007ffff7badab3 in mysqlpp::Connection::Connection(mysqlpp::Connection const&)
() from /usr/lib/libmysqlpp.so.3
#7  0x0000000000400c37 in main ()

What could be causing this? 

Thanks, 
Alex
Attachment: [text/html]
Attachment: [application/octet-stream] Makefile
Attachment: [text/html]
Attachment: [application/octet-stream] test.cpp
Attachment: [text/html]
Attachment: [text/html]
Thread
Connection copy-constructor segfault? Alexander Golec27 Mar
  • Re: Connection copy-constructor segfault?Jonathan Wakely27 Mar
    • Re: Connection copy-constructor segfault?Warren Young27 Mar
      • Re: Connection copy-constructor segfault?Jonathan Wakely27 Mar
        • Re: Connection copy-constructor segfault?Warren Young28 Mar