>Description:
Crashing after debian cycles logs.
My software accesses a Mysql database and remains open from
day to day. It accesses the database around midnight, and then
again around 8AM next morning. The access is with:
mysql_real_query(db,sqlcmd,strlen(sqlcmd))
where sqlcmd contains
select treename from sms_tree_result where panel_member='1' and
(condition='success' or condition='voice call') order by start desc
limit 1
(the statement is normally successful - I can run it from the
sql shell). I had the process run under GDB. Here is the
post-mortem backtrace:
#0 0x40141b24 in write () from /lib/libc.so.6
#1 0x4006e51c in _no_db_ () from /usr/lib/libmysqlclient.so.10
#2 0x40044f63 in net_real_write () from /usr/lib/libmysqlclient.so.10
#3 0x400457c2 in net_write_command () from /usr/lib/libmysqlclient.so.10
#4 0x40041653 in simple_command () from /usr/lib/libmysqlclient.so.10
#5 0x400446b6 in mysql_real_query () from /usr/lib/libmysqlclient.so.10
#6 0x0804f4d1 in chf_get_last_tree (panelm=0x809bf64) at dblib.c:1414
#7 0x0804a843 in select_tree (panelm=0x809bf64, yr=2001, mn=11, dy=14, cur_min=495,
cur_wk=0)
at chf.c:697
#8 0x08049c0b in main (argc=17, argv=0xbffff874) at chf.c:285
#9 0x4009765f in __libc_start_main () from /lib/libc.so.6
(stack frames 6 to 9 are from my program).
I use the recent Debian package from Sid (3.23.43-3). This has
happened for the last two days. I did not have this error some
times ago...
>How-To-Repeat:
Just a single call to mysql_real_query after Debian has been
cycling the logs.
>Fix:
>Submitter-Id:
>Originator: [EMAIL PROTECTED]
>Organization:
Mine
>MySQL support: none
>Synopsis: Crashing after debian cycles logs.
>Severity: serious
>Priority: high
>Category: mysql
>Class: sw-bug
>Release: mysql-3.23.43 (Source distribution)
>Server: /usr/bin/mysqladmin Ver 8.21 Distrib 3.23.43, for pc-linux-gnu on i686
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Server version 3.23.43-log
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 3 days 23 hours 49 min 30 sec
Threads: 1 Questions: 1610 Slow queries: 0 Opens: 22 Flush tables: 1 Open tables:
16 Queries per second avg: 0.005
>Environment:
System: Linux casa 2.4.13-ac7 #8 Sun Nov 4 11:11:53 CET 2001 i686 unknown
Architecture: i686
Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011006 (Debian prerelease)
Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS='' LDFLAGS=''
LIBC:
lrwxrwxrwx 1 root root 14 Jun 6 08:26 /lib/libc.so.5 ->
libc.so.5.4.46
-rw-r--r-- 1 root root 566004 May 27 21:57 /lib/libc.so.5.4.46
lrwxrwxrwx 1 root root 13 Nov 4 10:19 /lib/libc.so.6 -> libc-2.2.4.so
-rwxr-xr-x 1 root root 1171196 Oct 30 23:44 /lib/libc-2.2.4.so
-rw-r--r-- 1 root root 2669312 Oct 30 23:44 /usr/lib/libc.a
-rw-r--r-- 1 root root 178 Oct 30 23:44 /usr/lib/libc.so
Configure command: ./configure --prefix=/usr --exec-prefix=/usr
--libexecdir=/usr/sbin --datadir=/usr/share --sysconfdir=/etc/mysql
--localstatedir=/var/lib/mysql --includedir=/usr/include --infodir=/usr/share/info
--mandir=/usr/share/man --enable-shared --with-libwrap --enable-assembler
--with-berkeley-db --with-innodb --enable-static --enable-shared --with-raid
--enable-thread-safe-client --without-readline
--with-unix-socket-path=/var/run/mysqld/mysqld.sock --with-mysqld-user=mysql
--without-bench --with-client-ldflags=-lstdc++ --with-mysqld-ldflags=-all-static
--with-extra-charsets=all
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php