libkrb5 failed to alloc memory

Ming Zhi woodhead99 at gmail.com
Sun Oct 25 01:31:59 EDT 2020


Hi all,
I have encountered a very rare situation, that the libkrb5 raised an
exception with the message "malloc: invalid size (unsorted)", and the host
process quit afterwards. At the same time, sssd_kcm kept at very high CPU
usage till kinit succeeded. Does someone have some hint about this issue?
The version of libkrb5 is krb5-libs-1.18.2-22.fc32.x86_64.
The following is a stack backtrace:
#0  0x00007ffff71d79e5 in raise () from /usr/lib64/libc.so.6
#1  0x00007ffff71c0895 in abort () from /usr/lib64/libc.so.6
#2  0x00007ffff721b857 in __libc_message () from /usr/lib64/libc.so.6
#3  0x00007ffff7222d7c in malloc_printerr () from /usr/lib64/libc.so.6
#4  0x00007ffff7225e6c in _int_malloc () from /usr/lib64/libc.so.6
#5  0x00007ffff7228235 in calloc () from /usr/lib64/libc.so.6
#6  0x00007ffff566346c in decode_atype_to_ptr () from
/usr/lib64/libkrb5.so.3
#7  0x00007ffff5663b67 in k5_asn1_full_decode () from
/usr/lib64/libkrb5.so.3
#8  0x00007ffff5666a72 in decode_krb5_tgs_rep () from
/usr/lib64/libkrb5.so.3
#9  0x00007ffff5682a78 in krb5int_decode_tgs_rep () from
/usr/lib64/libkrb5.so.3
#10 0x00007ffff5685933 in krb5int_process_tgs_reply () from
/usr/lib64/libkrb5.so.3
#11 0x00007ffff5687c83 in krb5_tkt_creds_step () from
/usr/lib64/libkrb5.so.3
#12 0x00007ffff568883f in krb5_tkt_creds_get () from /usr/lib64/libkrb5.so.3
#13 0x00007ffff568892c in try_get_creds () from /usr/lib64/libkrb5.so.3
#14 0x00007ffff56889cf in krb5_get_credentials () from
/usr/lib64/libkrb5.so.3
#15 0x00007ffff57517d8 in get_credentials () from
/usr/lib64/libgssapi_krb5.so.2
#16 0x00007ffff57523fe in krb5_gss_init_sec_context_ext () from
/usr/lib64/libgssapi_krb5.so.2
#17 0x00007ffff5752e04 in krb5_gss_init_sec_context () from
/usr/lib64/libgssapi_krb5.so.2
#18 0x00007ffff573b679 in gss_init_sec_context () from
/usr/lib64/libgssapi_krb5.so.2
#19 0x00007ffff59371d7 in CK5AuthProxy::Krb5Login (this=0x7fffe8065b40,
strUserName="raspbery at rpcfrmwrk.org", strSvcName="rasp1 at rpcfrmwrk.org") at
k5proxy.cpp:1142
#20 0x00007ffff59386a3 in CK5AuthProxy::StartLogin (this=0x7fffe8065b40,
pCallback=0x7fffe8006860) at k5proxy.cpp:1659


More information about the Kerberos mailing list