On 06/20/2011 05:03 PM, Russell Jackson wrote: > On 06/20/2011 04:56 PM, Russell Jackson wrote: >> I'm getting a segfault on exit after logging this to syslog: >> >> Exiting due to internal error: Failed in select: Invalid argument >> kernel: pid 87513 (radiusd), uid 133: exited on signal 11 >> > > Actually, after looking more closely, the segfault seems to happen > whenever the server exits for any reason (including SIGTERM). I'll try > to get a backtrace. >
Here's is the backtrace (attached) I get after starting radiusd up in gdb and sending SIGTERM to it. -- Russell A Jackson <r...@csub.edu> Network Analyst California State University, Bakersfield
Already logging to /tmp/debug.log. Starting program: /usr/local/sbin/radiusd -i 127.0.0.1 -p 10000 -f [New LWP 100925] [New Thread 0x8011020b0 (LWP 100925)] [New Thread 0x801102560 (LWP 100066)] [New Thread 0x8011026f0 (LWP 100104)] [New Thread 0x801102880 (LWP 100614)] [New Thread 0x801102a10 (LWP 100662)] [New Thread 0x801102ba0 (LWP 100720)] Program received signal SIGTERM, Terminated. [Switching to Thread 0x801102ba0 (LWP 100720)] 0x00000008007a532c in __error () from /lib/libthr.so.3 * 7 Thread 0x801102ba0 (LWP 100720) 0x00000008007a532c in __error () from /lib/libthr.so.3 6 Thread 0x801102a10 (LWP 100662) 0x00000008007a532c in __error () from /lib/libthr.so.3 5 Thread 0x801102880 (LWP 100614) 0x00000008007a532c in __error () from /lib/libthr.so.3 4 Thread 0x8011026f0 (LWP 100104) 0x00000008007a532c in __error () from /lib/libthr.so.3 3 Thread 0x801102560 (LWP 100066) 0x00000008007a532c in __error () from /lib/libthr.so.3 2 Thread 0x8011020b0 (LWP 100925) 0x0000000800f9a49c in select () from /lib/libc.so.7 Thread 7 (Thread 0x801102ba0 (LWP 100720)): #0 0x00000008007a532c in __error () from /lib/libthr.so.3 No symbol table info available. #1 0x000000080079aedf in sem_wait () from /lib/libthr.so.3 No symbol table info available. #2 0x000000000041ef73 in request_handler_thread (arg=Variable "arg" is not available. ) at threads.c:486 fun = 0x1 self = (THREAD_HANDLE *) 0x8012aa740 #3 0x000000080079b521 in pthread_getprio () from /lib/libthr.so.3 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available. Error accessing memory address 0x7fffff3fb000: Bad address. Thread 6 (Thread 0x801102a10 (LWP 100662)): #0 0x00000008007a532c in __error () from /lib/libthr.so.3 No symbol table info available. #1 0x000000080079aedf in sem_wait () from /lib/libthr.so.3 No symbol table info available. #2 0x000000000041ef73 in request_handler_thread (arg=Variable "arg" is not available. ) at threads.c:486 fun = 0x1 self = (THREAD_HANDLE *) 0x8012aa700 #3 0x000000080079b521 in pthread_getprio () from /lib/libthr.so.3 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available. Error accessing memory address 0x7fffff5fc000: Bad address. Thread 5 (Thread 0x801102880 (LWP 100614)): #0 0x00000008007a532c in __error () from /lib/libthr.so.3 No symbol table info available. #1 0x000000080079aedf in sem_wait () from /lib/libthr.so.3 No symbol table info available. #2 0x000000000041ef73 in request_handler_thread (arg=Variable "arg" is not available. ) at threads.c:486 fun = 0x1 self = (THREAD_HANDLE *) 0x8012aa6c0 #3 0x000000080079b521 in pthread_getprio () from /lib/libthr.so.3 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available. Error accessing memory address 0x7fffff7fd000: Bad address. Thread 4 (Thread 0x8011026f0 (LWP 100104)): #0 0x00000008007a532c in __error () from /lib/libthr.so.3 No symbol table info available. #1 0x000000080079aedf in sem_wait () from /lib/libthr.so.3 No symbol table info available. #2 0x000000000041ef73 in request_handler_thread (arg=Variable "arg" is not available. ) at threads.c:486 fun = 0x1 self = (THREAD_HANDLE *) 0x8012aa680 #3 0x000000080079b521 in pthread_getprio () from /lib/libthr.so.3 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available. Error accessing memory address 0x7fffff9fe000: Bad address. Thread 3 (Thread 0x801102560 (LWP 100066)): #0 0x00000008007a532c in __error () from /lib/libthr.so.3 No symbol table info available. #1 0x000000080079aedf in sem_wait () from /lib/libthr.so.3 No symbol table info available. #2 0x000000000041ef73 in request_handler_thread (arg=Variable "arg" is not available. ) at threads.c:486 fun = 0x1 self = (THREAD_HANDLE *) 0x8012aa640 #3 0x000000080079b521 in pthread_getprio () from /lib/libthr.so.3 No symbol table info available. #4 0x0000000000000000 in ?? () No symbol table info available. Error accessing memory address 0x7fffffbff000: Bad address. Thread 2 (Thread 0x8011020b0 (LWP 100925)): #0 0x0000000800f9a49c in select () from /lib/libc.so.7 No symbol table info available. #1 0x000000080079d574 in select () from /lib/libthr.so.3 No symbol table info available. #2 0x00000008006899a6 in fr_event_loop (el=0x8012ae000) at event.c:400 i = Variable "i" is not available. #0 0x00000008007a532c in __error () from /lib/libthr.so.3 The program is running. Exit anyway? (y or n)
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html