>Description: in file libmysql.c, function mysql_read_default_options, which is executed at every start of any mySQL client is a string conversion subroutine, which causes stack overflow Line 715 for (end = *option ; (end = strcend(end,'_')); ) *end= '-';
BUT! strcend returns always a valid and non-NULL pointer, stopping value is the ending NULL in its parameter. Infinite loop. >How-To-Repeat: call function mysql_read_default_options >Fix: <how to correct or work around the problem, if known (multiple lines)> for (end = *option ; (end = strcend(end,'_')) && (*end); ) *end= '-'; Add in end loop condition '&& (*end)' >Submitter-Id: [EMAIL PROTECTED] >Originator: Jan Struhar >Organization: >MySQL support: none >Synopsis: crash at read_defaults in libmysql >Severity: serious >Priority: high >Category: mysql >Class: sw-bug >Release: mysql-3.23.49 (Source distribution) >Server: lt-mysqladmin Ver 8.23 Distrib 3.23.49, for pc-linux-gnu on i586 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.22.32 Protocol version 10 Connection Localhost via UNIX socket UNIX socket /tmp/mysql.sock Uptime: 1 hour 47 min 28 sec Threads: 1 Questions: 2 Slow queries: 0 Opens: 6 Flush tables: 1 Open tables: 2 >Environment: System: Linux luthien 2.2.14 #15 Po pro 24 11:58:53 CET 2001 i586 unknown Architecture: i586 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/specs gcc version 2.95.2 19991024 (release) Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS='' LDFLAGS='' LIBC: -rwxr-xr-x 1 root root 4060736 May 30 2000 /lib/libc.so.6 -rw-r--r-- 1 root root 19182014 May 30 2000 /usr/lib/libc.a -rw-r--r-- 1 root root 178 May 30 2000 /usr/lib/libc.so lrwxrwxrwx 1 root root 29 Jul 28 2001 /usr/lib/libc.so.1 -> /usr/i486-sysv4/lib/libc.so.1 Configure command: ./configure --with-pthread --enable-thread-safe-client --without-server Perl: This is perl, version 5.005_03 built for i586-linux --------------------------------------------------------------------- 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