Bug 164001
Summary: | nscd is spinning. Cannot debug it due to selinux fault | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Derek Atkins <warlord> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | CC: | jaboutbo |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 2.3.90-8 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-08-09 07:53:51 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Derek Atkins
2005-07-22 19:29:31 UTC
Does this happen when you boot with SELinux turned off? If so, can you try getting some information from gdb at that point? Yes, it still happens without SELinux. Here's the backtrace. Not very useful with the -debuginfo I'm afraid: (gdb) attach 4036 Attaching to process 4036 warning: The current VSYSCALL page code requires an existing execuitable. Use "add-symbol-file-from-memory" to load the VSYSCALL page by hand Reading symbols from /usr/sbin/nscd...(no debugging symbols found)...done. Using host libthread_db library "/lib/tls/libthread_db.so.1". (no debugging symbols found)...Loaded symbols for /usr/sbin/nscd Reading symbols from /lib/tls/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/tls/librt.so.1 Reading symbols from /lib/tls/libpthread.so.0...(no debugging symbols found)...done. [Thread debugging using libthread_db enabled] [New Thread -1210603840 (LWP 4036)] [New Thread -1218663504 (LWP 4078)] [New Thread -1217610832 (LWP 4077)] [New Thread -1216558160 (LWP 4076)] [New Thread -1215505488 (LWP 4075)] [New Thread -1214452816 (LWP 4074)] [New Thread -1213400144 (LWP 4073)] Loaded symbols for /lib/tls/libpthread.so.0 Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libselinux.so.1...(no debugging symbols found)...done.Loaded symbols for /lib/libselinux.so.1 Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/tls/libc.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libnss_files.so.2 0xb7f1a402 in ?? () (gdb) t a a bt Thread 7 (Thread -1213400144 (LWP 4073)): #0 0xb7f1a402 in ?? () #1 0xb7ed1cfc in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 #2 0xb7f21b4b in main () from /usr/sbin/nscd Thread 6 (Thread -1214452816 (LWP 4074)): #0 0xb7f27d53 in gethostbyname2_r () from /usr/sbin/nscd #1 0xb7f21ba7 in main () from /usr/sbin/nscd Thread 5 (Thread -1215505488 (LWP 4075)): #0 0xb7f1a402 in ?? () #1 0xb7ed1cfc in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 #2 0xb7f21b4b in main () from /usr/sbin/nscd Thread 4 (Thread -1216558160 (LWP 4076)): #0 0xb7f1a402 in ?? () #1 0xb7ed1a86 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 #2 0xb7f21a28 in main () from /usr/sbin/nscd ---Type <return> to continue, or q <return> to quit--- Thread 3 (Thread -1217610832 (LWP 4077)): #0 0xb7f1a402 in ?? () #1 0xb7ed1a86 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 #2 0xb7f21a28 in main () from /usr/sbin/nscd Thread 2 (Thread -1218663504 (LWP 4078)): #0 0xb7f1a402 in ?? () #1 0xb7ed1a86 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 #2 0xb7f21a28 in main () from /usr/sbin/nscd Thread 1 (Thread -1210603840 (LWP 4036)): #0 0xb7f1a402 in ?? () #1 0xb7e4361e in epoll_wait () from /lib/tls/libc.so.6 #2 0xb7f22889 in main () from /usr/sbin/nscd (gdb) Can you: a) make a copy of /var/db/nscd b) remove all 3 files in it c) restart nscd? The most likely reason in this case would be an unclean shutdown leaving the persistent database in an inconsistent state. I just renamed all the files in the directory from foo -> foo.bak and restarted nscd. It is no longer spinning. Thank you. rawhide glibc (2.3.90-8) includes a nscd persistent database verified, which is run on nscd startup. If the database is corrupted, nscd will remove it and recreate it from scratch. If this works well in rawhide, it will be eventually backported to FC4 and maybe FC3 as well. |