List:MySQL++« Previous MessageNext Message »
From:Calin Vaida Date:September 21 2004 3:43pm
Subject:mysql connection close segmentation fault problem
View as plain text  
Hi there,

Can anyone help me in a connection close() problem?
I have an application that use mysql++1.7.9 for connectivity with
database on a box that is running suse 8.1.

 All have worked ok until i switch the sistem and the mysql++ driver
to a new one. So my problem appear for the same application but
running on a suse 9.1 with mysql++1.7.17 and using
mysql-client-4.0.18-32 (that is the default on the suse 9.1 I guess).
The problem appear when the mysql connection is closed and my whole
application crash with SEG fault.
The interesting thing is that on my sistem (suse 8.1) the same
application with the mysql++1.7.17 is working properly.

So, can anybody know what could be the problem. Is it possible to be a
problem with the library?

I suspect that the libmysqlclient is the problem(but i'm not sure),
because in the suse 9.1 i have and in suse
8.1 i have

Here is the gdb results:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1078255296 (LWP 25450)]
0x403581df in _int_free () from /lib/tls/
(gdb) bt
#0  0x403581df in _int_free () from /lib/tls/
#1  0x403585fb in free () from /lib/tls/
#2  0x080c5ac6 in my_no_flags_free ()
#3  0x080c70ec in free_root ()
#4  0x080c1a24 in free_old_query ()
#5  0x080c3b91 in mysql_close ()
#6  0x080c3d07 in mysql_close ()
#7  0x4018559f in ~MysqlConnection (this=0xbfffd8b0) at
#8  0x08068243 in ~MyDbConnect (this=0xbfffd8b0) at mydbconnect.cpp:240
#9  0x080867f4 in IrisRepository::readTable (this=0x80f7b80,
table_id=0) at irisrepository.cpp:260
#10 0x0808e3b2 in IrisRepository::loadFromDB (this=0x80f7b80) at

Any help is appreciated. Thanks in advanced.


P.S: I don't have much time to find the answer, that's why i've asked you guys.

Thanks again.
mysql connection close segmentation fault problemCalin Vaida21 Sep
  • Re: mysql connection close segmentation fault problemChris Frey21 Sep
  • Re: mysql connection close segmentation fault problemWarren Young21 Sep
Re: mysql connection close segmentation fault problemCalin Vaida22 Sep
Re: mysql connection close segmentation fault problemCalin Vaida22 Sep