MySQL Forums
Forum List  »  Connector/C (libmysql)

Segmentation fault
Posted by: zhang
Date: June 03, 2005 12:34PM

Hi, I got a headache problem with my program:

I set up a connection to mysql.
When I use the connection for my first query, everything was fine. Then when I want to do a second query using the same connection, it shows:

Program received signal SIGSEGV, Segmentation fault.
0xb732f44f in malloc_consolidate () from /lib/tls/

My query was fine. I tried remove the first query and execute the second query directly, it worked.

I checked the contains of the connect object, there are something changed after I did the first connection. Does anyone has the same or similar problem? Do I need to do something to the connection (such as reset) before the second query?

Thank you very much.


Options: ReplyQuote

Written By
Segmentation fault
June 03, 2005 12:34PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.