Unexpected "Exiting normally" 2.1.8?
Craig Campbell
craig at ccraft.ca
Wed Nov 4 18:26:22 CET 2009
Hi Alexander.
Thanks for the update - I was concluding I'd have to wait for the release
of 2.1.8 to pursue this. I am currently in a situation where I can help
debug 2.1.8, since the 'new' systems aren't yet in production.
Looking at your debug output (and I am in no way an expert at that) it seems
as though the process received a signal?
I am running a 'custom' module (event.c as I recall) from Alan that resolves
an issue with hung children (very exciting!), and I followed Alan's
instructions to get to this point. I would really like to try to 'give
back' if I can and assist in identifying the cause of the program exiting
(assuming it is a new and as of yet unidentified bug).
Would copying the steps you have below on my two redhat systems be a good
way to proceed?
Let me know,
-craig
----- Original Message -----
From: "Alexander Clouter" <alex at digriz.org.uk>
To: <freeradius-users at lists.freeradius.org>
Sent: Wednesday, November 04, 2009 11:43 AM
Subject: Re: Unexpected "Exiting normally" 2.1.8?
> Craig Campbell <craig at ccraft.ca> wrote:
>>
>> I'm running an unreleased '"development?" version of freeradius (2.1.8?).
>>
> "me too", I get exactly what you are getting. If you are always
> fiddling with FreeRADIUS I recommend you always run it in gdb as then
> you can get things fixed easily.
>
> I usually build FreeRADIUS (under Debian stable) with:
> ----
> git clone http://git.freeradius.org/freeradius-server.git
> cd freeradius-server
> git checkout release_2_1_7
> git checkout -b soas
>
> git cherry-pick c7a9d2aa1b3fa91591ce95f19aa5ba42c102f4f7
> git cherry-pick fbdc02ad699b9bc4d410daaa54f76df7141d2f64
> git cherry-pick fa0e98d1056e22fa413078dbd8c3fe0d85532826
> git cherry-pick 92ab5fef40320d1dbc3fe59db82cb20a3ec69249
> git cherry-pick 4ca219b1f1ab68fc8434072e51a8e4b95cf37c16
> git cherry-pick 52880d0020b7b900ae8383b142b08e4e11cde639
> git cherry-pick 137e3759b2ffc0c4f99064dadbd7461d3e86ae2a
> git cherry-pick 9491d6eb7b963532855ccc8a63a523a2a1e3af2b
> git cherry-pick 4baebf8202d7db372a9ad2ce5026ec6c986f0de7
> git cherry-pick 382b6c2223ba1a233ca9f4d248beb888a0123f3e
> git cherry-pick 751e9a39b2221a2623001a4611021a8e01cf4375
> git cherry-pick 1013e94b66064f24170e394e63ba4f093c141d74
> git cherry-pick 1628ef2387d9f7a89b3c2ff8945f49777eb135f1
> git cherry-pick 83c2cd412b1208e67381372baa73c779cd2848f6
> git cherry-pick f6e2dba8a7e4dd31d36d5b8ee434d21600e3f99f
> git cherry-pick 64700e41098a874581d683c8606c94f9ad23079d
> git cherry-pick e69be18535bd8b9a2cfb50a9df7cb44e3129ab4c
> git cherry-pick 9261f3e0026323b2c397af13d02fbc5780908143
>
> DEB_BUILD_OPTIONS='debug nostrip noopt' CFLAGS='-DIE_LIBTOOL_DIE'
> debuild -us -b
> ----
>
>
> It's when I add (I am pretty sure it's the in the first 8 or so
> patches) the following I get the same problem with FreeRADIUS:
> ----
> git cherry-pick 12ead56dffca9b3ecddc8a7860a1ef5b5361b374
> git cherry-pick d711a368ebf0e057e54596d22584ca2ce37e209c
> git cherry-pick 057c7ac764a4639f715edcbde7dc22491b79be62
> git cherry-pick a4202aeb848174ed430fd29573e3dd2db78ae2a1
> git cherry-pick a92700b3fb88239ccb0db9f5ece68dd430937df3
> git cherry-pick b1e815d0b4bec01f9721d4b92786960b2218f149
> git cherry-pick 30adbf8230730a7503f5e3654df90c5c2a38a8ed
> git cherry-pick f2d96581f98990d24991c99a681d018a3df85e92
> git cherry-pick 5aa01c58d91063b5bbbf5aef941137d7cf638bbe
> git cherry-pick 9b70af0c517daad7d374f4cc948488429d3a9cc0
> git cherry-pick 98b22609015439b16cc62cf45e4472a14377da2a
> git cherry-pick 092f0ea30cdfc2d669afe47061fafb9407269641
> git cherry-pick b853a84e6c4ccd5d9e2c4ad9da2c421a234e887f
> git cherry-pick d9dd62aae7baa5346f19236cead4414c03546d45
> git cherry-pick 1700127c8a7150f57056495a2980fd132dafdb92
> git cherry-pick 9dbc8974fdd2300a70293eda9c62bce20a3c9165
> ----
>
> I guess at this point I am going to be told to be a good boy and run off
> and use git bisect? :)
>
> Looking through the patches normally I cannot see what could have caused
> the graceful exit...which is exactly what I am getting:
> ----
> garibaldi:/usr/src# gdb freeradius
> GNU gdb 6.8-debian
> 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-linux-gnu"...
> (gdb) run -f
> Starting program: /usr/sbin/freeradius -f
> [Thread debugging using libthread_db enabled]
> [New Thread 0x7f9ba2eeaae0 (LWP 14420)]
> [New Thread 0x41313950 (LWP 14423)]
> [New Thread 0x4271a950 (LWP 14424)]
> [New Thread 0x42f1b950 (LWP 14425)]
> [New Thread 0x4371c950 (LWP 14426)]
> [New Thread 0x43f1d950 (LWP 14427)]
>
> Program received signal SIGTERM, Terminated.
> [Switching to Thread 0x7f9ba2eeaae0 (LWP 14420)]
> 0x00007f9ba171e1c7 in kill () from /lib/libc.so.6
> (gdb) bt full
> #0 0x00007f9ba171e1c7 in kill () from /lib/libc.so.6
> No symbol table info available.
> #1 0x00000000004228d9 in main (argc=2, argv=0x7fffaaef61c8) at
> radiusd.c:419
> rcode = 0
> argval = -1
> spawn_flag = 1
> dont_fork = 1
> flag = 0
> act = {__sigaction_handler = {sa_handler = 0x422ab0 <sig_fatal>,
> sa_sigaction = 0x422ab0 <sig_fatal>}, sa_mask = {__val = {0 <repeats 16
> times>}}, sa_flags = 0, sa_restorer = 0}
> (gdb) where
> #0 0x00007f9ba171e1c7 in kill () from /lib/libc.so.6
> #1 0x00000000004228d9 in main (argc=2, argv=0x7fffaaef61c8) at
> radiusd.c:419
> (gdb)
>
> (gdb) run -f
> The program being debugged has been started already.
> Start it from the beginning? (y or n) y
> Starting program: /usr/sbin/freeradius -f
> [Thread debugging using libthread_db enabled]
> [New Thread 0x7f0874b2bae0 (LWP 14731)]
> [New Thread 0x40d60950 (LWP 14732)]
> [New Thread 0x41561950 (LWP 14733)]
> [New Thread 0x41d62950 (LWP 14734)]
> [New Thread 0x42563950 (LWP 14735)]
> [New Thread 0x42d64950 (LWP 14736)]
>
> Program received signal SIGTERM, Terminated.
> [Switching to Thread 0x7f0874b2bae0 (LWP 14731)]
> 0x00007f087335f1c7 in kill () from /lib/libc.so.6
> (gdb) bt full
> #0 0x00007f087335f1c7 in kill () from /lib/libc.so.6
> No symbol table info available.
> #1 0x00000000004228d9 in main (argc=2, argv=0x7fff7cb36e08) at
> radiusd.c:419
> rcode = 0
> argval = -1
> spawn_flag = 1
> dont_fork = 1
> flag = 0
> act = {__sigaction_handler = {sa_handler = 0x422ab0 <sig_fatal>,
> sa_sigaction = 0x422ab0 <sig_fatal>}, sa_mask = {__val = {0 <repeats 16
> times>}}, sa_flags = 0, sa_restorer = 0}
> (gdb) where
> #0 0x00007f087335f1c7 in kill () from /lib/libc.so.6
> #1 0x00000000004228d9 in main (argc=2, argv=0x7fff7cb36e08) at
> radiusd.c:419
> ----
>
> Happens about twice a day....completely unrelated to the load on the
> server. Quick 'fix' is to back up to commit
> 9261f3e0026323b2c397af13d02fbc5780908143.
>
> Cheers
>
> --
> Alexander Clouter
> .sigmonster says: You are the only person to ever get this message.
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
> __________ Information from ESET Smart Security, version of virus
> signature database 4573 (20091104) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
>
>
__________ Information from ESET Smart Security, version of virus signature database 4573 (20091104) __________
The message was checked by ESET Smart Security.
http://www.eset.com
More information about the Freeradius-Users
mailing list