Bug #60585 mysql client crashing right after successful login (segmentation fault)
Submitted: 22 Mar 2011 12:26 Modified: 25 Mar 2012 13:31
Reporter: Sebastian Pape Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S1 (Critical)
Version:5.5.10, 5.5.13 OS:Linux (2.6.18-028stab070.14 #1 SMP Thu Nov 18 16:04:02 MSK 2010 x86_64 GNU/Linux)
Assigned to: CPU Architecture:Any
Tags: cli crash login segmentation fault

[22 Mar 2011 12:26] Sebastian Pape
Description:
I compiled MySQL 5.5.10 on a Debian VPS by myself.

When starting mysql (command-line utility) I have to login using valid credentials. After I've done this I get the following output:

~/mysql-5.5.10# mysql --debug=d:t:O,/tmp/client.trace -u root -p
Enter password: 

-------------------------------------------------------
MYSQL_DEBUG found. libmysql started with the following:
d:t:O,/tmp/client.trace
-------------------------------------------------------

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.5.10-log Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Segmentation fault (core dumped)

How to repeat:
After I got that error not using the debug flag I recompiled MySQL with debug flags. The error persists.
[22 Mar 2011 12:27] Sebastian Pape
Trace - Core dump

Attachment: client.trace (application/octet-stream, text), 10.38 KiB.

[22 Mar 2011 12:30] Valeriy Kravchuk
What exact commands you had used to build it?
[22 Mar 2011 16:34] Sebastian Pape
To build MySQL I issued:

cmake .
make
make install

And then I had to correct permissions, create the mysql database and copy the my.cnf to /etc/
That was basically my install process. Nothing special I think.
[23 Mar 2011 17:30] Valeriy Kravchuk
Please, send the output of:

mysql --version

I want to check if readline library is used. Also, please, send your my.cnf used.
[24 Mar 2011 8:15] Sebastian Pape
~# mysql --version
mysql  Ver 14.14 Distrib 5.5.10, for Linux (x86_64) using  EditLine wrapper
[24 Mar 2011 8:16] Sebastian Pape
my.cnf, which I am using. It's just a copy oh my-medium.cnf

Attachment: my.cnf (application/octet-stream, text), 4.55 KiB.

[14 Apr 2011 11:17] Valeriy Kravchuk
So you use EditLine (libedit), not readline library. What version of libedit do you have there?
[14 Apr 2011 15:33] Sebastian Pape
It's the most up to date Debian Lenny version of libedit

Version: libedit2 (2.11~20080614-1)
[21 Jun 2011 22:43] Martin Caine
Did you ever resolve this issue? I've just replaced mysql-server-5.1 with a source build of 5.5.13 on Debian and I get the same behaviour when running the mysql client.
[20 Jul 2011 9:04] Sebastian Pape
No, the issue was never resolved. Nobody at MySQL seems to care.
[24 Feb 2012 9:30] Georgi Kodinov
Can you please try with the binaries from http://www.mysql.com/downloads/ and see if your problem persists ?
[26 Mar 2012 1:00] 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".