connect using mysql client gives a segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Expired
|
Undecided
|
Unassigned | ||
5.6 |
Expired
|
Undecided
|
Unassigned |
Bug Description
OS: CentOS release 6.4 (Final)
Kernel: 2.6.32-
PS version: Percona-
I tried to build the source Percona-
However, when I try to run mysql client with,
# mysql -u root
it gives a segmentation fault.
# mysql -u root
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.6.12 Source distribution
Copyright (c) 2009-2013 Percona Ireland Ltd.
Copyright (c) 2000, 2013, 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
Trying to use gdb,
# gdb mysql
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-
For bug reporting instructions, please see:
<http://
Reading symbols from /usr/local/
(gdb) run -uroot
Starting program: /usr/local/
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff6839700 (LWP 24788)]
[Thread 0x7ffff6839700 (LWP 24788) exited]
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 11
Server version: 5.6.12 Source distribution
Copyright (c) 2009-2013 Percona Ireland Ltd.
Copyright (c) 2000, 2013, 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.
Program received signal SIGSEGV, Segmentation fault.
0x00000000004c18f3 in terminal_alloc (el=0xa0fa00, t=<value optimized out>, cap=0xfffffffff
at /home/toytoy/
334 if (cap == NULL || *cap == '\0') {
Missing separate debuginfos, use: debuginfo-install glibc-2.
(gdb) quit
A debugging session is active.
Inferior 1 [process 24785] will be killed.
However, I manage to arrive and give it a fix it as somehow relevant to what other bugs I have found with MySQL server (http://
In file, cmd-line-
So commenting char buf[TC_BUFSIZE]; at line 877, and changing
area = NULL;
in line 887 works fine. Still same approach on the bug link I have pasted above and not sure if this can be a right way to fix it. Running make and make install afterwards makes it running after running gdb. See below,
# gdb mysql
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-
For bug reporting instructions, please see:
<http://
Reading symbols from /usr/local/
(gdb) run -uroot
Starting program: /usr/local/
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff6839700 (LWP 18001)]
[Thread 0x7ffff6839700 (LWP 18001) exited]
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.12 Source distribution
Copyright (c) 2009-2013 Percona Ireland Ltd.
Copyright (c) 2000, 2013, 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.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+------
| Database |
+------
| information_schema |
| mysql |
| performance_schema |
| test |
+------
4 rows in set (0.14 sec)
mysql> quit
Bye
Changed in percona-server: | |
status: | Incomplete → New |
Please, send the output of:
gcc --version
from your system and describe how exactly you've built from sources.
Official binaries works on just upgraded CentOS 6.4:
[root@centos openxs]# uname -a 358.6.2. el6.x86_ 64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Linux centos 2.6.32-
[root@centos openxs]# cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m
[root@centos openxs]# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@centos openxs]# mysql -uroot test mysql/mysql. sock' (2)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/
[root@centos openxs]# ps aux | grep mysqld
root 18065 0.0 0.0 103236 856 pts/0 S+ 19:57 0:00 grep mysqld
[root@centos openxs]# service mysql start
Starting MySQL (Percona Server)... SUCCESS!
[root@centos openxs]# mysql -uroot test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.12-56 Percona Server (GPL), Release rc60.4, Revision 393
Copyright (c) 2009-2013 Percona Ireland Ltd.
Copyright (c) 2000, 2013, 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.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select 2 * 2;
+-------+
| 2 * 2 |
+-------+
| 4 |
+-------+
1 row in set (0.00 sec)
So, it should be something with your build environment or procedure.