Re: NSLCD: Resource temporarily unavailable
[Date Prev][Date Next] [Thread Prev][Thread Next]Re: NSLCD: Resource temporarily unavailable
- From: Alexey Tyurikov <alexey.tyurikov [at] gmail.com>
- To: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: Re: NSLCD: Resource temporarily unavailable
- Date: Thu, 23 Jan 2014 16:00:27 +0100
I haven't noticed any special requests but it looks like the daemon crashes if there are two requests on the same gid simultaneously (s. below)
--------------------------------------------------- normal --------------------------------------------------------
nslcd: [f363ee] DEBUG: connection from pid=-1 uid=0 gid=0
nslcd: DEBUG: accept() failed (ignored): Resource temporarily unavailable
nslcd: [f363ee] <passwd=10103> DEBUG: myldap_search(base="dc=,dc=net", filter="(&(&(objectClass=user)(!(objectClass=computer))(uidNumber=*)(unixHomeDirectory=*))(uidNumber=10103))")
nslcd: [f363ee] <passwd=10103> DEBUG: ldap_result(): CN=User,OU=Department,DC=ORGANISATION,DC=NET
nslcd: [f363ee] <passwd=10103> DEBUG: ldap_result(): end of results (1 total)
--------------------------------------------------- abnormal --------------------------------------------------------
nslcd: [20d9e6] DEBUG: connection from pid=-1 uid=0 gid=0
nslcd: [c20946] DEBUG: connection from pid=-1 uid=0 gid=0
nslcd: DEBUG: accept() failed (ignored): Resource temporarily unavailable
nslcd: [20d9e6] <passwd=10153> DEBUG: myldap_search(base="dc=organisation,dc=net", filter="(&(&(objectClass=user)(!(objectClass=computer))(uidNumber=*)(unixHomeDirectory=*))(uidNumber=10153))")
nslcd: [c20946] <passwd=10153> DEBUG: myldap_search(base="dc=organisation,dc=net", filter="(&(&(objectClass=user)(!(objectClass=computer))(uidNumber=*)(unixHomeDirectory=*))(uidNumber=10153))")
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 801c09400 (LWP 102086/nslcd)]
0x0000000801798d7a in SHA1_Init () from /lib/libcrypto.so.6
(gdb) thread apply all bt full
-------------------------------------------------- backtrace --------------------------------------------------------
Thread 7 (Thread 801c09400 (LWP 102086/nslcd)):
#0 0x0000000801798d7a in SHA1_Init () from /lib/libcrypto.so.6
No symbol table info available.
#1 0x0000000801799fd6 in SHA1_Update () from /lib/libcrypto.so.6
No symbol table info available.
#2 0x000000080176300b in RAND_SSLeay () from /lib/libcrypto.so.6
No symbol table info available.
#3 0x0000000804079c30 in krb5_generate_random_block () from /usr/lib/libkrb5.so.10
No symbol table info available.
#4 0x000000080407adc9 in krb5_encrypt_ivec () from /usr/lib/libkrb5.so.10
No symbol table info available.
#5 0x000000080407b1a1 in krb5_encrypt () from /usr/lib/libkrb5.so.10
No symbol table info available.
#6 0x0000000806215a21 in _gssapi_wrap_cfx () from /usr/lib/libgssapi_krb5.so.10
No symbol table info available.
#7 0x000000080620f2c1 in _gsskrb5_wrap () from /usr/lib/libgssapi_krb5.so.10
No symbol table info available.
#8 0x0000000803a18e0e in gssapiv2_client_plug_init () from /usr/local/lib/sasl2/libgssapiv2.so.3
No symbol table info available.
#9 0x0000000801221084 in sasl_done () from /usr/local/lib/libsasl2.so.3
No symbol table info available.
#10 0x00000008012215a1 in sasl_encodev () from /usr/local/lib/libsasl2.so.3
No symbol table info available.
#11 0x000000080122170f in sasl_encode () from /usr/local/lib/libsasl2.so.3
No symbol table info available.
#12 0x0000000800853e45 in sb_sasl_cyrus_encode () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#13 0x00000008008561f9 in sb_sasl_generic_write () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#14 0x000000080100fec4 in sb_debug_write () from /usr/local/lib/liblber-2.4.so.8
No symbol table info available.
#15 0x00000008010101d3 in ber_int_sb_write () from /usr/local/lib/liblber-2.4.so.8
No symbol table info available.
#16 0x000000080100e0f8 in ber_flush2 () from /usr/local/lib/liblber-2.4.so.8
No symbol table info available.
#17 0x0000000800860e9c in ldap_int_flush_request () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#18 0x0000000800861329 in ldap_send_server_request () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#19 0x0000000800861532 in ldap_send_initial_request () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#20 0x0000000800851701 in ldap_pvt_search () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#21 0x0000000800851940 in ldap_search_ext () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#22 0x000000000040754a in ?? ()
No symbol table info available.
#23 0x0000000000408529 in ?? ()
No symbol table info available.
#24 0x00000000004115ea in ?? ()
No symbol table info available.
#25 0x0000000000404eb5 in ?? ()
No symbol table info available.
#26 0x0000000800a91d34 in pthread_getprio () from /lib/libthr.so.3
No symbol table info available.
#27 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 6 (Thread 801c09000 (LWP 102084/nslcd)):
#0 0x0000000800db5a9c in select () from /lib/libc.so.7
No symbol table info available.
#1 0x0000000800a94174 in select () from /lib/libthr.so.3
No symbol table info available.
#2 0x00000000004047b4 in ?? ()
No symbol table info available.
#3 0x0000000800a91d34 in pthread_getprio () from /lib/libthr.so.3
No symbol table info available.
#4 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 5 (Thread 801c08c00 (LWP 102083/nslcd)):
#0 0x0000000800db5a9c in select () from /lib/libc.so.7
No symbol table info available.
#1 0x0000000800a94174 in select () from /lib/libthr.so.3
No symbol table info available.
#2 0x00000000004047b4 in ?? ()
No symbol table info available.
#3 0x0000000800a91d34 in pthread_getprio () from /lib/libthr.so.3
No symbol table info available.
#4 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 4 (Thread 801c08800 (LWP 102059/nslcd)):
#0 0x0000000800db5a9c in select () from /lib/libc.so.7
No symbol table info available.
#1 0x0000000800a94174 in select () from /lib/libthr.so.3
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#2 0x00000000004047b4 in ?? ()
No symbol table info available.
#3 0x0000000800a91d34 in pthread_getprio () from /lib/libthr.so.3
No symbol table info available.
#4 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 3 (Thread 801c08400 (LWP 101016/nslcd)):
#0 0x0000000800db61d0 in memcpy () from /lib/libc.so.7
No symbol table info available.
#1 0x000000080407bb8a in _krb5_n_fold () from /usr/lib/libkrb5.so.10
No symbol table info available.
#2 0x0000000804076d19 in krb5_crypto_destroy () from /usr/lib/libkrb5.so.10
No symbol table info available.
#3 0x000000080407a2d5 in krb5_generate_random_keyblock () from /usr/lib/libkrb5.so.10
No symbol table info available.
#4 0x000000080407b09d in krb5_encrypt_ivec () from /usr/lib/libkrb5.so.10
No symbol table info available.
#5 0x000000080407b1a1 in krb5_encrypt () from /usr/lib/libkrb5.so.10
No symbol table info available.
#6 0x0000000806215a21 in _gssapi_wrap_cfx () from /usr/lib/libgssapi_krb5.so.10
No symbol table info available.
#7 0x000000080620f2c1 in _gsskrb5_wrap () from /usr/lib/libgssapi_krb5.so.10
No symbol table info available.
#8 0x0000000803a18e0e in gssapiv2_client_plug_init () from /usr/local/lib/sasl2/libgssapiv2.so.3
No symbol table info available.
#9 0x0000000801221084 in sasl_done () from /usr/local/lib/libsasl2.so.3
No symbol table info available.
#10 0x00000008012215a1 in sasl_encodev () from /usr/local/lib/libsasl2.so.3
No symbol table info available.
#11 0x000000080122170f in sasl_encode () from /usr/local/lib/libsasl2.so.3
No symbol table info available.
#12 0x0000000800853e45 in sb_sasl_cyrus_encode () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#13 0x00000008008561f9 in sb_sasl_generic_write () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#14 0x000000080100fec4 in sb_debug_write () from /usr/local/lib/liblber-2.4.so.8
No symbol table info available.
#15 0x00000008010101d3 in ber_int_sb_write () from /usr/local/lib/liblber-2.4.so.8
No symbol table info available.
#16 0x000000080100e0f8 in ber_flush2 () from /usr/local/lib/liblber-2.4.so.8
No symbol table info available.
#17 0x0000000800860e9c in ldap_int_flush_request () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#18 0x0000000800861329 in ldap_send_server_request () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#19 0x0000000800861532 in ldap_send_initial_request () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#20 0x0000000800851701 in ldap_pvt_search () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#21 0x0000000800851940 in ldap_search_ext () from /usr/local/lib/libldap_r-2.4.so.8
No symbol table info available.
#22 0x000000000040754a in ?? ()
No symbol table info available.
#23 0x0000000000408529 in ?? ()
No symbol table info available.
#24 0x00000000004115ea in ?? ()
No symbol table info available.
#25 0x0000000000404eb5 in ?? ()
No symbol table info available.
#26 0x0000000800a91d34 in pthread_getprio () from /lib/libthr.so.3
No symbol table info available.
#27 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 2 (Thread 801c07400 (LWP 101198/nslcd)):
#0 0x0000000800d95e2c in nanosleep () from /lib/libc.so.7
No symbol table info available.
#1 0x0000000800d01828 in sleep () from /lib/libc.so.7
No symbol table info available.
#2 0x0000000800a93fe8 in sleep () from /lib/libthr.so.3
No symbol table info available.
#3 0x0000000000404354 in ?? ()
No symbol table info available.
#4 0x0000000000403611 in ?? ()
No symbol table info available.
#5 0x000000080063b000 in ?? ()
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
#0 0x0000000801798d7a in SHA1_Init () from /lib/libcrypto.so.6
2014/1/22 Arthur de Jong <arthur [at] arthurdejong.org>
On Wed, 2014-01-22 at 14:16 +0100, Alexey Tyurikov wrote:
> nslcd: DEBUG: accept() failed (ignored): Resource temporarilyThis message is to be expected and can be safely ignored. It means the
> unavailable
call to accept() was interrupted by a signal and nslcd will retry the
call.
Can you provide a backtrace of these crashes? To run nslcd under gdb:
> Furthermore crashes nslcd after few minutes, sometimes few hours.
# gdb nslcd
...
(gdb) r -d
...
(gdb) thread apply all bt full
Or perhaps run under valgrind (not sure it is available on FreeBSD):
valgrind -v --track-origins=yes --leak-check=full nslcd -d
Are there any special requests that seem to trigger the crash?
Thanks,
--
-- arthur - arthur [at] arthurdejong.org - http://arthurdejong.org/ --
--
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe [at] lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/
-- To unsubscribe send an email to nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see http://lists.arthurdejong.org/nss-pam-ldapd-users/
- Re: NSLCD: Resource temporarily unavailable, (continued)
- Re: NSLCD: Resource temporarily unavailable,
steve
- Re: NSLCD: Resource temporarily unavailable, Alexey Tyurikov
- Re: NSLCD: Resource temporarily unavailable,
Arthur de Jong
- Re: NSLCD: Resource temporarily unavailable, Alexey Tyurikov
- Re: NSLCD: Resource temporarily unavailable, Arthur de Jong
- Re: NSLCD: Resource temporarily unavailable,
steve
- Prev by Date: Re: NSLCD: Resource temporarily unavailable
- Next by Date: Re: NSLCD: Resource temporarily unavailable
- Previous by thread: Re: NSLCD: Resource temporarily unavailable
- Next by thread: Re: NSLCD: Resource temporarily unavailable