MySQL Forums
Forum List  »  Connector/ODBC

Aborted Connection Errors (Got an error reading communication packets)
Posted by: Aruna Nettem
Date: April 29, 2010 08:18AM

I am testing my code written in C using ODBC api.

My code connects to the database via ODBC api, inserts an entry in a table, closes the connection.
My C program creates 20 Threads and each thread starts inserting rows into database.
After inserting 100000+ or 300000+ rows, core is dumped with segmentation fault.
I am seeing following messages in the error log.
100427 13:49:39 [Warning] Aborted connection 258617 to db: 'XXX' user: 'XXX' host: 'localhost' (Got an error reading communication packets)

Also I am getting the following error message printed on the terminal before core is dumped.
Error in my_thread_global_end(): 74 threads didn't exit
Error in my_thread_global_end(): 76 threads didn't exit
Error in my_thread_global_end(): 77 threads didn't exit
Error in my_thread_global_end(): 78 threads didn't exit

Tried increasing connect timeout, max allowed packet size. No use.
Help Please.

Thanks,
Aruna.



Edited 1 time(s). Last edit at 04/29/2010 12:03PM by Aruna Nettem.

Options: ReplyQuote


Subject
Written By
Posted
Aborted Connection Errors (Got an error reading communication packets)
April 29, 2010 08:18AM


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.