2 messages in com.mysql.lists.mysqlmysql client segfaults on interactive...
FromSent OnAttachments
Javier Kohen02 Jun 1999 19:10 
Michael Widenius03 Jun 1999 19:40 
Subject:mysql client segfaults on interactive mode (readline-4.0)
From:Javier Kohen (ro@jkohen.tough.com.ar)
Date:06/02/1999 07:10:08 PM
List:com.mysql.lists.mysql

Description:

Whenever I run mysql client in interactive mode, it segfaults. It does work
normally on non-interactive queries, though. My guess is that there's something
incompatible with the readline library version I'm using (4.0). This is the output for 'ldd /usr/bin/mysql': -- libreadline.so.4.0 => /usr/lib/libreadline.so.4.0 (0x40019000) libncurses.so.4 => /usr/lib/libncurses.so.4 (0x4003d000) libmysqlclient.so.6 => /usr/lib/mysql/libmysqlclient.so.6 (0x4007c000) libnsl.so.1 => /lib/libnsl.so.1 (0x40090000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x400a6000) libpthread.so.0 => /lib/libpthread.so.0 (0x400d3000) libm.so.6 => /lib/libm.so.6 (0x400e4000) libstdc++.so.2.9 => /usr/lib/libstdc++.so.2.9 (0x40102000) libc.so.6 => /lib/libc.so.6 (0x40146000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) -- I can provide the compiled binary or anything from the (unmodified) source tree
I built it.

How-To-Repeat: Just by running mysql from the command line. Fix:

If it's the interface with the readline library that fails, a workaround would
be changing the readline library version, as it isn't the same version number
than the one included in the package, and it's the most obvious difference
between interactive and non-interactive modes. A full fix might need checking
the call to the library functions from the client.

Submitter-Id: <submitter ID> Originator: Javier Kohen Organization:

MySQL support: none Synopsis: mysql client IO bug Severity: serious Priority: high Category: mysql Class: sw-bug Release: mysql-3.22.22 (Source distribution) Server: /usr/bin/mysqladmin Ver 7.11 Distrib 3.22.22, for pc-linux-gnu on i586

TCX Datakonsult AB, by Monty

Server version 3.22.22-log Protocol version 10 Connection Localhost via UNIX socket UNIX socket /tmp/mysql.sock Uptime: 9 min 24 sec

Threads: 1 Questions: 15 Slow queries: 0 Opens: 7 Flush tables: 1 Open
tables: 3

Environment:

System: Linux jkohen.tough.com.ar 2.3.2 #2 mar may 18 16:24:31 ART 1999 i586
unknown Architecture: i586 Libraries: glibc-2.1.1 libstdc++-2.9 libncurses-4.2.990213 libreadline-4.0 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release) Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS='' LDFLAGS='' Configure command: ./configure --libexecdir=/usr/lib/mysql
--enable-thread-safe-client --enable-assembler --with-mysqld-user=mysql
--without-debug --without-readline Perl: This is perl, version 5.005_03 built for i586-linux