Bug #1259 MySQL 4.1 client segfault on debian (woody/stable)
Submitted: 12 Sep 2003 5:01 Modified: 4 Jan 2004 14:39
Reporter: Christoffer Landtman Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S2 (Serious)
Version:4.1.0-alpha OS:Linux (Debian 3.0)
Assigned to: Assigned Account CPU Architecture:Any

[12 Sep 2003 5:01] Christoffer Landtman
Description:
I have compiled MySQL 4.1.0-alpha from source using the --prefix=/usr/lib/mysql argument when running ./configure. ./configure && make && make install worked out fine and the server starts fine, however, running /usr/lib/mysql/mysql will result in a segmentation fault:

goofy:~# /usr/lib/mysql/bin/mysql -u root -p
Segmentation fault
goofy:~#

If i try to access the mysqld from an other computer, in the same intranet, it can establish a connection to the mysqld in question.

On the native machine, however e.g. mysqladmin, mysqlshow etc work, only "mysql" fails.

How to repeat:
gcc version 2.95.4
mysql 4.1.0-alpha
debian 3.0 stable

./configure --prefix=/usr/lib/mysql
make
make install
scripts/mysql_install_db
cp support-files/my-medium.cnf /etc/my.cnf
cp support-files/mysql.server /etc/init.d/mysql
/etc/init.d/mysql start

i followed pretty much the install instructions in the mysql documentation section!

Let me know if You need more information on the system!
[12 Sep 2003 6:39] Sergei Golubchik
It may be readline/libedit crash.

Try to build --with-libedit (or --with-readline, if your default build is  with libedit).
[13 Sep 2003 0:08] Christoffer Landtman
Thanks for the swift reply!

I tried these options that You suggested with the following results, none however successful:

--with-libedit:
did not result in any change. Still a clean compile and install, mysqld start but still segmentation fault when running "mysql"

--with-readline:
resulted in the following:

goofy:~/mysql-4.1.0-alpha# ./configure --prefix=/usr/lib/mysql --with-readline
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux

...[stuff]...

config.status: executing default-1 commands
END OF INNODB CONFIGURATION
configure: creating ./config.status
config.status: creating cmd-line-utils/readline/Makefile
config.status: error: cannot find input file: cmd-line-utils/readline/Makefile.in
goofy:~/mysql-4.1.0-alpha#

I will attach the config.log when using --with-readline if it helps.

Another note that could be useful is that when previously installing Debian 3.0 unstable i got a working environment with similar configure command. What I am not 100% sure of is that did I have gcc 3.2 or not, but I am pretty sure that i had it. I cannot verify this since it is the same machine that has been formatted and now installed a "stable" version on!

Please let me know if there is something else I can do to help You guys out!
[13 Sep 2003 0:11] Christoffer Landtman
The config log when using configure commands '--prefix=/usr/lib/mysql --with-readline'

Attachment: config.log (application/octet-stream, text), 144.54 KiB.

[4 Dec 2003 14:39] Dean Ellis
As 4.1.1 was released today, I would like to know if you can try this using this current source release.

Also, you should have had a Makefile.in file in our readline directory, so make sure it is there before you compile.
[14 Feb 2005 22:54] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".