Bug 11574 - Random crash in libsmbclient library with kerberos authentication
Summary: Random crash in libsmbclient library with kerberos authentication
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: libsmbclient (show other bugs)
Version: 4.1.12
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2015-10-26 06:03 UTC by hargagan
Modified: 2016-05-18 10:03 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description hargagan 2015-10-26 06:03:29 UTC
Seeing this crash randomly in libsmbclient library, kindly have a look.

#0  0x00007f146ea641a8 in _hc_rijndaelEncrypt () from /usr/lib64/samba/libhcrypto-samba4.so.5
#1  0x00007f146ea68d00 in encrypt_counter () from /usr/lib64/samba/libhcrypto-samba4.so.5
#2  0x00007f146ea6961d in fortuna_bytes () from /usr/lib64/samba/libhcrypto-samba4.so.5
#3  0x00007f1471ade26c in krb5_generate_random_block () from /usr/lib64/samba/libkrb5-samba4.so.26
#4  0x00007f1471ae822d in krb5_init_creds_init () from /usr/lib64/samba/libkrb5-samba4.so.26
#5  0x00007f1471ae9dfb in krb5_get_init_creds_password () from /usr/lib64/samba/libkrb5-samba4.so.26
#6  0x00007f14770acae4 in kerberos_kinit_password_ext () from /usr/lib64/samba/libgse.so
#7  0x00007f14770acdf2 in kerberos_kinit_password () from /usr/lib64/samba/libgse.so
#8  0x00007f1477c64d93 in cli_session_setup_spnego_send () from /usr/lib64/samba/liblibsmb.so
#9  0x00007f1477c66ef1 in cli_session_setup_send () from /usr/lib64/samba/liblibsmb.so
#10 0x00007f1477c673db in cli_session_setup () from /usr/lib64/samba/liblibsmb.so
#11 0x00007f1478719ead in SMBC_server_internal () from /usr/lib64/libsmbclient.so.0
#12 0x00007f147871a796 in SMBC_server () from /usr/lib64/libsmbclient.so.0
#13 0x00007f1478714812 in SMBC_opendir_ctx () from /usr/lib64/libsmbclient.so.0
#14 0x00007f147a8d865d in clone () from /lib64/libc.so.6
#15 0x0000000000000000 in ?? ()
Comment 1 Jeremy Allison 2015-10-26 16:42:29 UTC
Are you still using libsmbclient from multi-threaded code ? If so, then this kind of crash will be expected. If not, I need the back-trace with line numbers.