[krbdev.mit.edu #6702] KDC Crash with MIT Kerberos 1.8

Brian Almeida via RT rt-comment at krbdev.mit.edu
Tue Apr 20 15:05:25 EDT 2010


Hello,

We have been getting pretty consistent crashes with MIT Kerberos KDCs
1.8 (also occurred under 1.7 betas).
We are using Debian sid/unstable, with the following kerberos packages
installed:

ii  krb5-admin-server                   1.8+dfsg-1
MIT Kerberos master server (kadmind)
ii  krb5-kdc                            1.8+dfsg-1
MIT Kerberos key server (KDC)
ii  krb5-user                           1.8+dfsg-1
Basic programs to authenticate using MIT Ker
ii  libgssapi-krb5-2                    1.8+dfsg-1
MIT Kerberos runtime libraries - krb5 GSS-AP
ii  libk5crypto3                        1.8+dfsg-1
MIT Kerberos runtime libraries - Crypto Libr
ii  libkadm5clnt-mit7                   1.8+dfsg-1
MIT Kerberos runtime libraries - Administrat
ii  libkadm5srv-mit7                    1.8+dfsg-1
MIT Kerberos runtime libraries - KDC and Adm
ii  libkdb5-4                           1.8+dfsg-1
MIT Kerberos runtime libraries - Kerberos da
ii  libkrb5-3                           1.8+dfsg-1
MIT Kerberos runtime libraries
ii  libkrb5support0                     1.8+dfsg-1
MIT Kerberos runtime libraries - Support lib

Below is a backtrace (binary is stripped, I am working on building one
w/ debugging symbols but wanted to see if anyone had any thoughts in
the meantime).
Let me know if any other information would be useful in tracking this down.

gollum:~# gdb /usr/sbin/krb5kdc
GNU gdb (GDB) 7.0-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/krb5kdc...(no debugging symbols found)...done.
(gdb) run -n
Starting program: /usr/sbin/krb5kdc -n
[Thread debugging using libthread_db enabled]
krb5kdc: starting...
*** glibc detected *** krb5kdc: double free or corruption (out):
0x000000000062b690 ***
======= Backtrace: =========
/lib/libc.so.6[0x7ffff6361d56]
/lib/libc.so.6(cfree+0x6c)[0x7ffff63669bc]
/usr/lib/libkrb5.so.3(krb5_free_authdata+0x29)[0x7ffff72eb3b9]
krb5kdc[0x407d6e]
krb5kdc[0x405d4e]
krb5kdc[0x415b8f]
krb5kdc[0x416870]
krb5kdc[0x4140d2]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7ffff630fabd]
krb5kdc[0x405a69]
======= Memory map: ========
00400000-0041d000 r-xp 00000000 fe:00 49069
  /usr/sbin/krb5kdc
0061c000-0061e000 rw-p 0001c000 fe:00 49069
  /usr/sbin/krb5kdc
0061e000-0065e000 rw-p 00000000 00:00 0                                  [heap]
7ffff0000000-7ffff0021000 rw-p 00000000 00:00 0
7ffff0021000-7ffff4000000 ---p 00000000 00:00 0
7ffff5aa5000-7ffff5abb000 r-xp 00000000 68:01 38740
  /lib/libgcc_s.so.1
7ffff5abb000-7ffff5cba000 ---p 00016000 68:01 38740
  /lib/libgcc_s.so.1
7ffff5cba000-7ffff5cbb000 rw-p 00015000 68:01 38740
  /lib/libgcc_s.so.1
7ffff5cbb000-7ffff5cbd000 r-xp 00000000 fe:00 311980
  /usr/lib/krb5/plugins/preauth/encrypted_challenge.so
7ffff5cbd000-7ffff5ebc000 ---p 00002000 fe:00 311980
  /usr/lib/krb5/plugins/preauth/encrypted_challenge.so
7ffff5ebc000-7ffff5ebd000 rw-p 00001000 fe:00 311980
  /usr/lib/krb5/plugins/preauth/encrypted_challenge.so
7ffff5ebd000-7ffff5ed4000 r-xp 00000000 fe:00 318567
  /usr/lib/krb5/plugins/kdb/db2.so
7ffff5ed4000-7ffff60d4000 ---p 00017000 fe:00 318567
  /usr/lib/krb5/plugins/kdb/db2.so
7ffff60d4000-7ffff60d5000 rw-p 00017000 fe:00 318567
  /usr/lib/krb5/plugins/kdb/db2.so
7ffff60d5000-7ffff60eb000 r-xp 00000000 68:01 39222
  /lib/libpthread-2.10.2.so
7ffff60eb000-7ffff62eb000 ---p 00016000 68:01 39222
  /lib/libpthread-2.10.2.so
7ffff62eb000-7ffff62ec000 r--p 00016000 68:01 39222
  /lib/libpthread-2.10.2.so
7ffff62ec000-7ffff62ed000 rw-p 00017000 68:01 39222
  /lib/libpthread-2.10.2.so
7ffff62ed000-7ffff62f1000 rw-p 00000000 00:00 0
7ffff62f1000-7ffff643b000 r-xp 00000000 68:01 39220
  /lib/libc-2.10.2.so
7ffff643b000-7ffff663b000 ---p 0014a000 68:01 39220
  /lib/libc-2.10.2.so
7ffff663b000-7ffff663f000 r--p 0014a000 68:01 39220
  /lib/libc-2.10.2.so
7ffff663f000-7ffff6640000 rw-p 0014e000 68:01 39220
  /lib/libc-2.10.2.so
7ffff6640000-7ffff6645000 rw-p 00000000 00:00 0
7ffff6645000-7ffff6647000 r-xp 00000000 68:01 39224
  /lib/libdl-2.10.2.so
7ffff6647000-7ffff6847000 ---p 00002000 68:01 39224
  /lib/libdl-2.10.2.so
7ffff6847000-7ffff6848000 r--p 00002000 68:01 39224
  /lib/libdl-2.10.2.so
7ffff6848000-7ffff6849000 rw-p 00003000 68:01 39224
  /lib/libdl-2.10.2.so
7ffff6849000-7ffff685c000 r-xp 00000000 68:01 39211
  /lib/libresolv-2.10.2.so
7ffff685c000-7ffff6a5b000 ---p 00013000 68:01 39211
  /lib/libresolv-2.10.2.so
7ffff6a5b000-7ffff6a5c000 r--p 00012000 68:01 39211
  /lib/libresolv-2.10.2.so
7ffff6a5c000-7ffff6a5d000 rw-p 00013000 68:01 39211
  /lib/libresolv-2.10.2.so
7ffff6a5d000-7ffff6a5f000 rw-p 00000000 00:00 0
7ffff6a5f000-7ffff6a61000 r-xp 00000000 68:01 38756
  /lib/libkeyutils-1.2.so
7ffff6a61000-7ffff6c60000 ---p 00002000 68:01 38756
  /lib/libkeyutils-1.2.so
7ffff6c60000-7ffff6c61000 rw-p 00001000 68:01 38756
  /lib/libkeyutils-1.2.so
7ffff6c61000-7ffff6c68000 r-xp 00000000 fe:00 301455
  /usr/lib/libkrb5support.so.0.1
7ffff6c68000-7ffff6e68000 ---p 00007000 fe:00 301455
  /usr/lib/libkrb5support.so.0.1
7ffff6e68000-7ffff6e69000 rw-p 00007000 fe:00 301455
  /usr/lib/libkrb5support.so.0.1
7ffff6e69000-7ffff6e6c000 r-xp 00000000 68:01 38754
  /lib/libcom_err.so.2.1
7ffff6e6c000-7ffff706b000 ---p 00003000 68:01 38754
  /lib/libcom_err.so.2.1
7ffff706b000-7ffff706c000 rw-p 00002000 68:01 38754
  /lib/libcom_err.so.2.1
7ffff706c000-7ffff7090000 r-xp 00000000 fe:00 301453
  /usr/lib/libk5crypto.so.3.1
7ffff7090000-7ffff7290000 ---p 00024000 fe:00 301453
  /usr/lib/libk5crypto.so.3.1
7ffff7290000-7ffff7292000 rw-p 00024000 fe:00 301453
  /usr/lib/libk5crypto.so.3.1
7ffff7292000-7ffff7352000 r-xp 00000000 fe:00 301461
  /usr/lib/libkrb5.so.3.3
7ffff7352000-7ffff7551000 ---p 000c0000 fe:00 301461
  /usr/lib/libkrb5.so.3.3
7ffff7551000-7ffff755c000 rw-p 000bf000 fe:00 301461
  /usr/lib/libkrb5.so.3.3
7ffff755c000-7ffff758f000 r-xp 00000000 fe:00 301465
  /usr/lib/libgssapi_krb5.so.2.2
7ffff758f000-7ffff778e000 ---p 00033000 fe:00 301465
  /usr/lib/libgssapi_krb5.so.2.2
7ffff778e000-7ffff7790000 rw-p 00032000 fe:00 301465
  /usr/lib/libgssapi_krb5.so.2.2
7ffff7790000-7ffff77ab000 r-xp 00000000 fe:00 302439
  /usr/lib/libgssrpc.so.4.1
7ffff77ab000-7ffff79aa000 ---p 0001b000 fe:00 302439
  /usr/lib/libgssrpc.so.4.1
7ffff79aa000-7ffff79ac000 rw-p 0001a000 fe:00 302439
  /usr/lib/libgssrpc.so.4.1
7ffff79ac000-7ffff79bc000 r-xp 00000000 fe:00 301451
  /usr/lib/libkdb5.so.4.0
7ffff79bc000-7ffff7bbc000 ---p 00010000 fe:00 301451
  /usr/lib/libkdb5.so.4.0
7ffff7bbc000-7ffff7bbd000 rw-p 00010000 fe:00 301451
  /usr/lib/libkdb5.so.4.0
7ffff7bbd000-7ffff7bd6000 r-xp 00000000 fe:00 301457
  /usr/lib/libkadm5srv_mit.so.7.0
7ffff7bd6000-7ffff7dd5000 ---p 00019000 fe:00 301457
  /usr/lib/libkadm5srv_mit.so.7.0
7ffff7dd5000-7ffff7dd7000 rw-p 00018000 fe:00 301457
  /usr/lib/libkadm5srv_mit.so.7.0
7ffff7dd7000-7ffff7de1000 rw-p 00000000 00:00 0
7ffff7de1000-7ffff7dfe000 r-xp 00000000 68:01 39217
  /lib/ld-2.10.2.so
7ffff7fed000-7ffff7ff4000 rw-p 00000000 00:00 0
7ffff7ff9000-7ffff7ffc000 rw-p 00000000 00:00 0
7ffff7ffc000-7ffff7ffd000 r-xp 00000000 00:00 0                          [vdso]
Program received signal SIGABRT, Aborted.
0x00007ffff6322f55 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff6322f55 in raise () from /lib/libc.so.6
#1  0x00007ffff6325d90 in abort () from /lib/libc.so.6
#2  0x00007ffff635858d in ?? () from /lib/libc.so.6
#3  0x00007ffff6361d56 in ?? () from /lib/libc.so.6
#4  0x00007ffff63669bc in free () from /lib/libc.so.6
#5  0x00007ffff72eb3b9 in krb5_free_authdata () from /usr/lib/libkrb5.so.3
#6  0x0000000000407d6e in ?? ()
#7  0x0000000000405d4e in ?? ()
#8  0x0000000000415b8f in ?? ()
#9  0x0000000000416870 in ?? ()
#10 0x00000000004140d2 in ?? ()
#11 0x00007ffff630fabd in __libc_start_main () from /lib/libc.so.6
#12 0x0000000000405a69 in ?? ()
#13 0x00007fffffffe1c8 in ?? ()
#14 0x000000000000001c in ?? ()
#15 0x0000000000000002 in ?? ()
#16 0x00007fffffffe42c in ?? ()
#17 0x00007fffffffe434 in ?? ()
#18 0x0000000000000000 in ?? ()
(gdb)

Thanks,

Brian




More information about the krb5-bugs mailing list