Bug #42504 *** glibc detected *** /usr/sbin/mysqld: double free or corruption (!prev): 0x00
Submitted: 31 Jan 2009 22:39 Modified: 2 Mar 2009 8:18
Reporter: Knut Müller Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: General Severity:S1 (Critical)
Version:5.0.25 OS:Linux (opensuse 10,3)
Assigned to: CPU Architecture:Any

[31 Jan 2009 22:39] Knut Müller
Description:
 *** glibc detected *** /usr/sbin/mysqld: double free or corruption (!prev): 0x00000000013e29c0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x7f7153c0021d]
/lib64/libc.so.6(cfree+0x76)[0x7f7153c01f76]
/usr/sbin/mysqld(_ZN18QUICK_RANGE_SELECTD0Ev+0x65)[0x61dc25]
/usr/sbin/mysqld[0x5d39dc]
/usr/sbin/mysqld[0x5d3ba6]
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x484)[0x5dc4f4]
/usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP13st_table_listjR4ListIS1_ES2_jP8st_orderSB_S2_SB_mP13select_resultP18st_select_lex_unitP13st_select_lex+0x188)[0x5de478]
/usr/sbin/mysqld(_Z13handle_selectP3THDP6st_lexP13select_resultm+0x153)[0x5dee53]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x13d3)[0x58bf33]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPKcjPS2_+0x19d)[0x59020d]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xcf3)[0x591003]
/usr/sbin/mysqld(_Z10do_commandP3THD+0xb6)[0x591a66]
/usr/sbin/mysqld(handle_one_connection+0x653)[0x592203]
/lib64/libpthread.so.0[0x7f7154a97020]
/lib64/libc.so.6(clone+0x6d)[0x7f7153c5728d]
======= Memory map: ========
00400000-009b6000 r-xp 00000000 08:05 9139057                            /usr/sbin/mysqld
00bb5000-00c07000 r--p 005b5000 08:05 9139057                            /usr/sbin/mysqld
00c07000-00c5f000 rw-p 00607000 08:05 9139057                            /usr/sbin/mysqld
00c5f000-01838000 rw-p 00c5f000 00:00 0                                  [heap]
401f8000-401f9000 ---p 401f8000 00:00 0
401f9000-40239000 rw-p 401f9000 00:00 0
405d1000-405d2000 ---p 405d1000 00:00 0
405d2000-40612000 rw-p 405d2000 00:00 0
40646000-40647000 ---p 40646000 00:00 0
40647000-40687000 rw-p 40647000 00:00 0
41447000-41448000 ---p 41447000 00:00 0
41448000-41488000 rw-p 41448000 00:00 0
417fa000-417fb000 ---p 417fa000 00:00 0
417fb000-4183b000 rw-p 417fb000 00:00 0
4183b000-4183c000 ---p 4183b000 00:00 0
4183c000-4187c000 rw-p 4183c000 00:00 0
41b5c000-41b5d000 ---p 41b5c000 00:00 0
41b5d000-4235d000 rw-p 41b5d000 00:00 0
4235d000-4235e000 ---p 4235d000 00:00 0
4235e000-42b5e000 rw-p 4235e000 00:00 0
42b5e000-42b5f000 ---p 42b5e000 00:00 0
42b5f000-4335f000 rw-p 42b5f000 00:00 0
4335f000-43360000 ---p 4335f000 00:00 0
43360000-43b60000 rw-p 43360000 00:00 0
43b60000-43b61000 ---p 43b60000 00:00 0
43b61000-44361000 rw-p 43b61000 00:00 0
44361000-44362000 ---p 44361000 00:00 0
44362000-44b62000 rw-p 44362000 00:00 0
44b62000-44b63000 ---p 44b62000 00:00 0
44b63000-45363000 rw-p 44b63000 00:00 0
45363000-45364000 ---p 45363000 00:00 0
45364000-45b64000 rw-p 45364000 00:00 0
7f711b49f000-7f714d6a5000 rw-p 7f711b49f000 00:00 0
7f714d9b5000-7f7153574000 rw-p 7f714d9b5000 00:00 0
7f7153574000-7f715357e000 r-xp 00000000 08:01 62048                      /lib64/libnss_files-2.6.1.so
7f715357e000-7f715377d000 ---p 0000a000 08:01 62048                      /lib64/libnss_files-2.6.1.so
7f715377d000-7f715377f000 rw-p 00009000 08:01 62048                      /lib64/libnss_files-2.6.1.so
7f715377f000-7f7153788000 r-xp 00000000 08:01 62141                      /lib64/libnss_nis-2.6.1.so
7f7153788000-7f7153988000 ---p 00009000 08:01 62141                      /lib64/libnss_nis-2.6.1.so
7f7153988000-7f715398a000 rw-p 00009000 08:01 62141                      /lib64/libnss_nis-2.6.1.so
7f715398a000-7f7153991000 r-xp 00000000 08:01 62144                      /lib64/libnss_compat-2.6.1.so
7f7153991000-7f7153b90000 ---p 00007000 08:01 62144                      /lib64/libnss_compat-2.6.1.so
7f7153b90000-7f7153b92000 rw-p 00006000 08:01 62144                      /lib64/libnss_compat-2.6.1.so
7f7153b92000-7f7153cce000 r-xp 00000000 08:01 62177                      /lib64/libc-2.6.1.so
7f7153cce000-7f7153ece000 ---p 0013c000 08:01 62177                      /lib64/libc-2.6.1.so
7f7153ece000-7f7153ed1000 r--p 0013c000 08:01 62177                      /lib64/libc-2.6.1.so
7f7153ed1000-7f7153ed3000 rw-p 0013f000 08:01 62177                      /lib64/libc-2.6.1.so
7f7153ed3000-7f7153ed8000 rw-p 7f7153ed3000 00:00 0
7f7153ed8000-7f7153ee5000 r-xp 00000000 08:01 62200                      /lib64/libgcc_s.so.1
7f7153ee5000-7f71540e4000 ---p 0000d000 08:01 62200                      /lib64/libgcc_s.so.1
7f71540e4000-7f71540e6000 rw-p 0000c000 08:01 62200                      /lib64/libgcc_s.so.1
7f71540e6000-7f7154138000 r-xp 00000000 08:01 62046                      /lib64/libm-2.6.1.so
7f7154138000-7f7154337000 ---p 00052000 08:01 62046                      /lib64/libm-2.6.1.so
7f7154337000-7f7154339000 rw-p 00051000 08:01 62046                      /lib64/libm-2.6.1.so
7f7154339000-7f7154425000 r-xp 00000000 08:05 13250799                   /usr/lib64/libstdc++.so.6.0.9
7f7154425000-7f7154625000 ---p 000ec000 08:05 13250799                   /usr/lib64/libstdc++.so.6.0.9
7f7154625000-7f715462b000 r--p 000ec000 08:05 13250799                   /usr/lib64/libstdc++.so.6.0.9
7f715462b000-7f715462e000 rw-p 000f2000 08:05 13250799                   /usr/lib64/libstdc++.so.6.0.9
7f715462e000-7f7154641000 rw-p 7f715462e000 00:00 0
7f7154641000-7f7154655000 r-xp 00000000 08:01 62129                      /lib64/libnsl-2.6.1.so
7f7154655000-7f7154854000 ---p 00014000 08:01 62129                      /lib64/libnsl-2.6.1.so
7f7154854000-7f7154856000 rw-p 00013000 08:01 62129                      /lib64/libnsl-2.6.1.so
7f7154856000-7f7154858000 rw-p 7f7154856000 00:00 0
7f7154858000-7f7154860000 r-xp 00000000 08:01 62140                      /lib64/libcrypt-2.6.1.so
7f7154860000-7f7154a60000 ---p 00008000 08:01 62140                      /lib64/libcrypt-2.6.1.so
7f7154a60000-7f7154a63000 rw-p 00008000 08:01 62140                      /lib64/libcrypt-2.6.1.so
7f7154a63000-7f7154a91000 rw-p 7f7154a63000 00:00 0
7f7154a91000-7f7154aa6000 r-xp 00000000 08:01 62146                      /lib64/libpthread-2.6.1.so
7f7154aa6000-7f7154ca6000 ---p 00015000 08:01 62146                      /lib64/libpthread-2.6.1.so
7f7154ca6000-7f7154ca8000 rw-p 00015000 08:01 62146                      /lib64/libpthread-2.6.1.so
7f7154ca8000-7f7154cac000 rw-p 7f7154ca8000 00:00 0
7f7154cac000-7f7154cae000 r-xp 00000000 08:01 62160                      /lib64/libdl-2.6.1.so
7f7154cae000-7f7154eae000 ---p 00002000 08:01 62160                      /lib64/libdl-2.6.1.so
7f7154eae000-7f7154eb0000 rw-p 00002000 08:01 62160                      /lib64/libdl-2.6.1.so
7f7154eb0000-7f7154eb8000 r-xp 00000000 08:01 62172                      /lib64/libwrap.so.0.7.6
7f7154eb8000-7f71550b7000 ---p 00008000 08:01 62172                      /lib64/libwrap.so.0.7.6
7f71550b7000-7f71550b9000 rw-p 00007000 08:01 62172                      /lib64/libwrap.so.0.7.6
7f71550b9000-7f71550ba000 rw-p 7f71550b9000 00:00 0
7f71550ba000-7f71550ce000 r-xp 00000000 08:01 62053                      /lib64/libz.so.1.2.3
7f71550ce000-7f71552cd000 ---p 00014000 08:01 62053                      /lib64/libz.so.1.2.3
7f71552cd000-7f71552cf000 rw-p 00013000 08:01 62053                      /lib64/libz.so.1.2.3
7f71552cf000-7f71552d7000 r-xp 00000000 08:01 62176                      /lib64/librt-2.6.1.so
7f71552d7000-7f71554d6000 ---p 00008000 08:01 62176                      /lib64/librt-2.6.1.so
7f71554d6000-7f71554d8000 rw-p 00007000 08:01 62176                      /lib64/librt-2.6.1.so
7f71554d8000-7f71554f4000 r-xp 00000000 08:01 62204                      /lib64/ld-2.6.1.so
7f71555c9000-7f71556eb000 rw-p 7f71555c9000 00:00 0
7f71556f1000-7f71556f3000 rw-p 7f71556f1000 00:00 0
7f71556f3000-7f71556f5000 rw-p 0001b000 08:01 62204                      /lib64/ld-2.6.1.so
7fff5d6e0000-7fff5d6f5000 rw-p 7ffffffea000 00:00 0                      [stack]
7fff5d7ff000-7fff5d800000 r-xp 7fff5d7ff000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Mysql Server crashes all couple of minutes. What can be teh reason of that? 
I have an freshly installed system an copied the database from another version 5 of mysql.

mysql cant be stopped afterwards, just by using kill -9

Reagrds, Knut

How to repeat:
I have no idea
[1 Feb 2009 1:29] Knut Müller
more error messages

Attachment: error-mysql (application/octet-stream, text), 9.87 KiB.

[2 Feb 2009 8:18] Sveta Smirnova
Thank you for the report.

But version 5.0.25 is very old. Please upgrade to current version 5.0.75 (or at least 5.0.67 binaries we provide for), try with it and inform us if problem still exists.
[3 Mar 2009 0: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".