Bug #80486 mysql client got segmentation fault
Submitted: 23 Feb 2016 22:48 Modified: 24 Mar 2016 0:13
Reporter: Kemin Zhou Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S1 (Critical)
Version:5.7.10 OS:CentOS (v6.5 2.6.32-573.7.1.el6.x86_64)
Assigned to: CPU Architecture:Any
Tags: BINARY

[23 Feb 2016 22:48] Kemin Zhou
Description:
Combined with cmake from source. Installed and configured. Successfully started the serverd with init system (Centos 6.5) When the first login got segmentation fault.  I can run the mysql program in gdb:

mysql -u root -p
After giving the correct password:
Program received signal SIGSEGV, Segmentation fault.
0x00000000004ca543 in terminal_alloc (el=<value optimized out>, t=<value optimized out>,
    cap=0xffffffffffffd740 <Address 0xffffffffffffd740 out of bounds>)
    at /da/coding/download/mysql-5.7.10/cmd-line-utils/libedit/terminal.c:334
334             if (cap == NULL || *cap == '\0') {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6_7.3.x86_64 libgcc-4.4.7-16.el6.x86_64 libstdc++-4.4.7-16.el6.x86_64
(gdb)

How to repeat:
Don't know.  It just happened to this machine.  Just to document here for that other people may have similar problems.  May be difficult to duplicate this on a different machine.
[24 Feb 2016 0:13] Miguel Solorzano
Please try version 5.7.11. Thanks.
[24 Feb 2016 2:13] Shane Bester
looks like a problem with libedit, see
https://bugs.mysql.com/bug.php?id=76412
[24 Mar 2016 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".
[13 Nov 2018 5:09] Rob Ratcliff
I saw this same problem when compiling mysql 5.7.24 with boost from source on SLES 11.4.
[21 May 16:24] Domas Mituzas
still a problem compiling mysql-8.0.16 on ubuntu LTS 18.04