Unexpected "Exiting normally" 2.1.8?

Craig Campbell craig at ccraft.ca
Thu Nov 26 13:52:00 CET 2009


With the info you need (I hope)...

[root at radius-a ~]# gdb radiusd
GNU gdb Fedora (6.8-27.el5)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"...
(gdb) break event_loop_exit
Function "event_loop_exit" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (event_loop_exit) pending.
(gdb) break radius_signal_self
Breakpoint 2 at 0x434d9f: file event.c, line 3733.
(gdb) cond 1 (flag == 2)
(gdb) run -f
Starting program: /usr/local/sbin/radiusd -f
Error in re-setting breakpoint 1: Function "event_loop_exit" not defined.
[Thread debugging using libthread_db enabled]
[New Thread 0x2b9e812b4e10 (LWP 5870)]
[New Thread 0x4106d940 (LWP 5878)]
[New Thread 0x41a6e940 (LWP 5879)]
[New Thread 0x4246f940 (LWP 5880)]
[New Thread 0x42e70940 (LWP 5881)]
[New Thread 0x43871940 (LWP 5882)]
Detaching after fork from child process 5884.

<snip>

Detaching after fork from child process 7376.
[New Thread 0x44272940 (LWP 7379)]
[New Thread 0x44c73940 (LWP 7380)]
[New Thread 0x45674940 (LWP 7381)]
Detaching after fork from child process 7382.

<snip>

Detaching after fork from child process 9604.
[Switching to Thread 0x45674940 (LWP 7381)]

Breakpoint 2, radius_signal_self (flag=8) at event.c:3733
3733            rcode = read(self_pipe[0], buffer, sizeof(buffer));
(gdb) bt
#0  radius_signal_self (flag=8) at event.c:3733
#1  0x000000000043d12f in detail_send (listener=0x11534860, 
request=0x2aaaac00f650) at detail.c:119
#2  0x0000000000432902 in request_post_handler (request=0x2aaaac00f650) at 
event.c:2523
#3  0x0000000000435741 in radius_handle_request (request=0x2aaaac00f650, 
fun=0x408108 <rad_accounting>) at event.c:4092
#4  0x0000000000426bd6 in request_handler_thread (arg=0x2aaaac001420) at 
threads.c:492
#5  0x0000003ad0006367 in start_thread () from /lib64/libpthread.so.0
#6  0x0000003acf4d30ad in clone () from /lib64/libc.so.6
(gdb) thread apply all bt full

Thread 9 (Thread 0x45674940 (LWP 7381)):
#0  radius_signal_self (flag=8) at event.c:3733
        rcode = 0
        buffer = "@<gE\000\000\000\000²(\001Ï:\000\000"
#1  0x000000000043d12f in detail_send (listener=0x11534860, 
request=0x2aaaac00f650) at detail.c:119
        rtt = 0
        now = {tv_sec = 290127440, tv_usec = 0}
        data = (listen_detail_t *) 0x115348f0
#2  0x0000000000432902 in request_post_handler (request=0x2aaaac00f650) at 
event.c:2523
        child_state = 6
        when = {tv_sec = 8589934594, tv_usec = 46912518551120}
        vp = (VALUE_PAIR *) 0x0
#3  0x0000000000435741 in radius_handle_request (request=0x2aaaac00f650, 
fun=0x408108 <rad_accounting>) at event.c:4092
No locals.
#4  0x0000000000426bd6 in request_handler_thread (arg=0x2aaaac001420) at 
threads.c:492
        fun = (RAD_REQUEST_FUNP) 0x408108 <rad_accounting>
        self = (THREAD_HANDLE *) 0x2aaaac001420
#5  0x0000003ad0006367 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#6  0x0000003acf4d30ad in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 8 (Thread 0x44c73940 (LWP 7380)):
#0  0x0000003ad000c6b1 in sem_wait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x0000000000426abb in request_handler_thread (arg=0x2aaaac002580) at 
threads.c:453
        fun = (RAD_REQUEST_FUNP) 0x408108 <rad_accounting>
        self = (THREAD_HANDLE *) 0x2aaaac002580
#2  0x0000003ad0006367 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#3  0x0000003acf4d30ad in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 7 (Thread 0x44272940 (LWP 7379)):
#0  0x0000003ad000c6b1 in sem_wait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x0000000000426abb in request_handler_thread (arg=0x2aaaac001140) at 
threads.c:453
        fun = (RAD_REQUEST_FUNP) 0x408108 <rad_accounting>
        self = (THREAD_HANDLE *) 0x2aaaac001140
#2  0x0000003ad0006367 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#3  0x0000003acf4d30ad in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 6 (Thread 0x43871940 (LWP 5882)):
#0  0x0000003ad000c6b1 in sem_wait () from /lib64/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit--- 
#1  0x0000000000426abb in request_handler_thread (arg=0x11533bd0) at 
threads.c:453
        fun = (RAD_REQUEST_FUNP) 0x408108 <rad_accounting>
        self = (THREAD_HANDLE *) 0x11533bd0
#2  0x0000003ad0006367 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#3  0x0000003acf4d30ad in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 5 (Thread 0x42e70940 (LWP 5881)):
#0  0x0000003ad000c6b1 in sem_wait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x0000000000426abb in request_handler_thread (arg=0x11533a50) at 
threads.c:453
        fun = (RAD_REQUEST_FUNP) 0x408108 <rad_accounting>
        self = (THREAD_HANDLE *) 0x11533a50
#2  0x0000003ad0006367 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#3  0x0000003acf4d30ad in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 4 (Thread 0x4246f940 (LWP 5880)):
#0  0x0000003ad000c6b1 in sem_wait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x0000000000426abb in request_handler_thread (arg=0x115338d0) at 
threads.c:453
        fun = (RAD_REQUEST_FUNP) 0x408108 <rad_accounting>
        self = (THREAD_HANDLE *) 0x115338d0
#2  0x0000003ad0006367 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#3  0x0000003acf4d30ad in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 3 (Thread 0x41a6e940 (LWP 5879)):
#0  0x0000003ad000c6b1 in sem_wait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x0000000000426abb in request_handler_thread (arg=0x11533750) at 
threads.c:453
        fun = (RAD_REQUEST_FUNP) 0x408108 <rad_accounting>
        self = (THREAD_HANDLE *) 0x11533750
#2  0x0000003ad0006367 in start_thread () from /lib64/libpthread.so.0
No symbol table info available.
#3  0x0000003acf4d30ad in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x4106d940 (LWP 5878)):
#0  0x0000003ad000c6b1 in sem_wait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x0000000000426abb in request_handler_thread (arg=0x11532620) at 
threads.c:453
        fun = (RAD_REQUEST_FUNP) 0x408108 <rad_accounting>
        self = (THREAD_HANDLE *) 0x11532620
#2  0x0000003ad0006367 in start_thread () from /lib64/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#3  0x0000003acf4d30ad in clone () from /lib64/libc.so.6
No symbol table info available.

Thread 1 (Thread 0x2b9e812b4e10 (LWP 5870)):
#0  0x0000003acf4cc5f2 in select () from /lib64/libc.so.6
No symbol table info available.
#1  0x00002b9e80e7fa4c in fr_event_loop (el=0x1151b7f0) at event.c:379
        i = 5
        rcode = 0
        when = {tv_sec = 0, tv_usec = 617790}
        wake = (struct timeval *) 0x7fff29c4b000
        read_fds = {fds_bits = {122944, 0 <repeats 15 times>}}
#2  0x00000000004355b3 in radius_event_process () at event.c:4072
No locals.
#3  0x0000000000424124 in main (argc=2, argv=0x7fff29c4b248) at 
radiusd.c:398
        rcode = 58
        argval = -1
        spawn_flag = 1
        dont_fork = 1
        flag = 0
        act = {__sigaction_handler = {sa_handler = 0x424349 <sig_fatal>, 
sa_sigaction = 0x424349 <sig_fatal>}, sa_mask = {
    __val = {0 <repeats 16 times>}}, sa_flags = 0, sa_restorer = 0}
3733            rcode = read(self_pipe[0], buffer, sizeof(buffer));
(gdb)

I haven't quit gdb yet, so let me know if you need more...

Thanks,
-craig

----- Original Message ----- 
From: "Alan DeKok" <aland at deployingradius.com>
To: "FreeRadius users mailing list" <freeradius-users at lists.freeradius.org>
Sent: Thursday, November 26, 2009 7:36 AM
Subject: Re: Unexpected "Exiting normally" 2.1.8?


> Bjørn Mork wrote:
>> I don't have that symbol.  Did you mean fr_event_loop_exit?
>
>  Sure.
>
>> Anyway, I ran the server (this time a lab-/test-server with some traffic
>> but nothing near any real load) using
>>
>> Breakpoint 1, radius_signal_self (flag=2) at event.c:3733
>> 3733    event.c: No such file or directory.
>>         in event.c
>> (gdb) cont
>
>  Arg... PLEASE give the stack trace for this!  "bt", or "thread apply
> all bt full".
>
>  Simply continuing means that you've ignored the break point.
>
>> And I got:
>
>  The same stack trace as before, LONG after the useful information has
> been lost.
>
>  Alan DeKok.
>
> -
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html 


__________ Information from ESET Smart Security, version of virus signature database 4636 (20091125) __________

The message was checked by ESET Smart Security.

http://www.eset.com






More information about the Freeradius-Users mailing list