Re: mysql_real_query and signals
Posted by:
Cheu KUOCH
Date: August 23, 2010 04:18AM
Hello,
On one machine, my application received the signal SIGABRT during the call to mysql_read_query, at sunday 20:00:00, after two days inactivities.
On another machine, the same executable hasn't problem, it reconnectes to the server and it continues to work (MySQL V5 on REd Hat Linux AS release 4 )
Do you know why mysql_real_query delivered SIGABRT signal ?
The following is the back trace, if necessary, I can send you the content of the MYSQL *pstMySqlCtxt ( mysql_real_query's first argument)
#1 <signal handler called>
#2 0x000000385d92e32d in raise () from /lib64/tls/libc.so.6
#3 0x000000385d92fb2e in abort () from /lib64/tls/libc.so.6
#4 0x000000385d963701 in __libc_message () from /lib64/tls/libc.so.6
#5 0x000000385d96949e in _int_free () from /lib64/tls/libc.so.6
#6 0x000000385d969906 in free () from /lib64/tls/libc.so.6
#7 0x00000000005bfc85 in vio_delete (vio=0x9eb380) at vio.c:231
#8 0x00000000005ba597 in end_server (mysql=0x9e8b30) at client.c:890
#9 0x00000000005bdeb2 in cli_advanced_command (mysql=0x9e8b30,command=COM_QUERY,
header=0x0, header_length=0,
arg=0x41e01cf0 "UPDATE RESET SET .....",
arg_length=198, skip_check=1 '\001', stmt=0x0) at client.c:710
#10 0x00000000005bc041 in mysql_send_query (mysql=0x9e8b30,
query=0x41e01cf0 "UPDATE RESET SET ....", length=198) at client.c:2770
#11 0x00000000005bc099 in mysql_real_query (mysql=0x9e8b30,
query=Variable "query" is not available. ) at client.c:2781
#12 0x000000000059bc27 in ID_MYSQL_REQ (pstMySqlCtxt=0x9e8b30,
pszQuery=0x41e01cf0 "UPDATE RESET SET ....",
uiSize=198) at id_mysql.c:52