Unable to use debug symbols for mysql 5.6 on RHEL 5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Tomislav Plavcic | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Invalid
|
Undecided
|
Unassigned | ||
5.6 |
Fix Released
|
High
|
Tomislav Plavcic |
Bug Description
The rpm packages provided for el5 has is built using a DWARF format that is not supported in the version of gdb included with CentOS 5.10 (GNU gdb (GDB) CentOS (7.0.1-
After installing:
Percona-
and running gdb on the running mysqld process, the following error is produced:
Reading symbols from /usr/sbin/
done.
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/lib/
This makes gdb unusable. There are no rpm distributions for higher versions of GDB on centos and building and maintaining all the new dependencies is not really a good option. Please build el5 versions of mysql 5.6 packages which don't require a version of GDB which is unavailable on the target OS.
Related branches
- Laurynas Biveinis (community): Approve
-
Diff: 15 lines (+5/-0)1 file modifiedbuild-ps/percona-server.spec (+5/-0)
I was able to verify this bug on CentOS release 5.11 (Final):
$ rpm -qa |grep -i 'percona\|gdb' Server- 56-debuginfo- 5.6.19- rel67.0. el5 release- 0.1-3 Server- client- 56-5.6. 19-rel67. 0.el5 Server- server- 56-5.6. 19-rel67. 0.el5 1-45.el5. centos Server- tokudb- 56-5.6. 19-rel67. 0.el5 Server- shared- 56-5.6. 19-rel67. 0.el5
gdbm-1.8.0-28.el5
Percona-
gdbm-1.8.0-28.el5
percona-
Percona-
Percona-
gdb-7.0.
Percona-
Percona-
$ ps aux |grep mysqld mysqld_ safe --datadir= /var/lib/ mysql --pid-file= /var/lib/ mysql/localhost .localdomain. pid /var/lib/ mysql --plugin- dir=/usr/ lib64/mysql/ plugin --user=mysql --log-error= /var/lib/ mysql/localhost .localdomain. err --pid-file= /var/lib/ mysql/localhost .localdomain. pid
root 2388 0.0 0.1 66120 1364 ? S 09:17 0:00 /bin/sh /usr/bin/
mysql 2483 0.0 44.1 925324 453492 ? Sl 09:17 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=
root 3470 0.0 0.0 63300 796 pts/0 R+ 11:22 0:00 grep mysqld
$ gdb --pid=2483 45.el5. centos) gnu.org/ licenses/ gpl.html> redhat- linux-gnu" . www.gnu. org/software/ gdb/bugs/>. mysqld. ..Reading symbols from /usr/lib/ debug/usr/ sbin/mysqld. debug.. .done. debug/usr/ sbin/mysqld. debug]
GNU gdb (GDB) CentOS (7.0.1-
Copyright (C) 2009 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://
Attaching to process 2483
Reading symbols from /usr/sbin/
done.
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/lib/
(gdb)