Segfault on CentOS 5.8 with 2.1.12
Hi, We installed FR on one CentOS 5.8 today, and we are running into weird crashing issues. Sometimes RADIUS works fine, sometimes it starts to crash right after the start. We hooked gdb to it, and it appears to be related with the rlm_perl module. We are using an external perl module, but it is running fine on many hundreds of systems. I am wandering if someone have an idea about what can be wrong : [Thread 0xb7da7b90 (LWP 3296) exited] [New process 3298] [Thread debugging using libthread_db enabled] [New Thread 0xb7da7b90 (LWP 3299)] [New Thread 0xb73a6b90 (LWP 3300)] [New Thread 0xb69a5b90 (LWP 3301)] [New Thread 0xb5fa4b90 (LWP 3302)] [New Thread 0xb55a3b90 (LWP 3303)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb69a5b90 (LWP 3301)] 0x0091b70b in Perl_gv_init () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so (gdb) bt #0 0x0091b70b in Perl_gv_init () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #1 0x0091bdd8 in Perl_gv_fetchmeth () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #2 0x0091c6a5 in Perl_gv_fetchmethod_autoload () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #3 0x00982148 in ?? () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #4 0x0097bd90 in ?? () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #5 0x0098f20d in perl_clone () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so #6 0x00f67e90 in rlm_perl_clone (instance=0x84f19a0, request=0x88e3bf8, function_name=0x84d5be0 "authorize") at rlm_perl.c:259 #7 rlmperl_call (instance=0x84f19a0, request=0x88e3bf8, function_name=0x84d5be0 "authorize") at rlm_perl.c:656 #8 0x0806413e in call_modsingle (component=1, c=0x82fbd90, request=0x88e3bf8) at modcall.c:297 #9 modcall (component=1, c=0x82fbd90, request=0x88e3bf8) at modcall.c:670 #10 0x08060ac5 in indexed_modcall (comp=1, idx=0, request=0x88e3bf8) at modules.c:737 #11 0x08060eec in module_authorize (autz_type=0, request=0x88e3bf8) at modules.c:1579 #12 0x0804e7d8 in rad_authenticate (request=0x88e3bf8) at auth.c:579 #13 0x08070fe5 in radius_handle_request (request=0x88e3bf8, fun=0x804e6b0 <rad_authenticate>) at event.c:3780 #14 0x08068763 in request_handler_thread (arg=0x88e2df8) at threads.c:537 #15 0x00c36832 in start_thread () from /lib/libpthread.so.0 #16 0x00b7645e in clone () from /lib/libc.so.6 (gdb) quit I am not aware of the issue for other CentOS 5 version, or CentOS 6. Thanks. -- Francois Gaudreault, ing. jr fgaudreault@inverse.ca :: +1.514.447.4918 (x130) :: www.inverse.ca Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org)
On Sat, Apr 7, 2012 at 5:06 AM, Francois Gaudreault <fgaudreault@inverse.ca> wrote:
Hi,
We installed FR on one CentOS 5.8 today, and we are running into weird crashing issues. Sometimes RADIUS works fine, sometimes it starts to crash right after the start. We hooked gdb to it, and it appears to be related with the rlm_perl module. We are using an external perl module, but it is running fine on many hundreds of systems. I am wandering if someone have an idea about what can be wrong :
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb69a5b90 (LWP 3301)] 0x0091b70b in Perl_gv_init () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so (gdb) bt #0 0x0091b70b in Perl_gv_init () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
I seem to recall something about perl-related fix post 2.1.12, so you might want to try v2.1.x branch from git. -- Fajar
Francois Gaudreault wrote:
We installed FR on one CentOS 5.8 today, and we are running into weird crashing issues. Sometimes RADIUS works fine, sometimes it starts to crash right after the start. We hooked gdb to it, and it appears to be related with the rlm_perl module. We are using an external perl module, but it is running fine on many hundreds of systems. I am wandering if someone have an idea about what can be wrong :
As Fajar said, try the v2.1.x branch from git. It has some fixes to the Perl module. Alan DeKok.
As Fajar said, try the v2.1.x branch from git. It has some fixes to the Perl module.
Francois, Did these suggestions help? We're getting a rlm_perl segfault, very sporadically. All I see in the logs is: radiusd[21706]: segfault at 10 ip 0000003e4bc531b1 sp 00007f1aafffdd70 error 4 in libperl.so[3e4bc00000+162000] I have not yet gotten a core dump, but will look into newer versions from git. Thanks Norman
On 04/20/2012 04:09 PM, Norman Elton wrote:
As Fajar said, try the v2.1.x branch from git. It has some fixes to the Perl module.
Francois,
Did these suggestions help? We're getting a rlm_perl segfault, very sporadically. All I see in the logs is:
radiusd[21706]: segfault at 10 ip 0000003e4bc531b1 sp 00007f1aafffdd70 error 4 in libperl.so[3e4bc00000+162000]
I have not yet gotten a core dump, but will look into newer versions from git.
We recently patched our version of FreeRADIUS for fedora and RHEL6 to include the eerl fix from the 2.1.x git repo You can get the fedora patch from here: https://koji.fedoraproject.org/koji/buildinfo?buildID=314457 For CentOS 5.8 you'll need to grab the srpm for it, and edit that spec file to include the patch you find in the above fedora build. Instructions on how to build an RPM from an SRPM can be found here: http://wiki.freeradius.org/Red_Hat_FAQ -- John Dennis <jdennis@redhat.com> Looking to carve out IT costs? www.redhat.com/carveoutcosts/
Hi Norman, I did not try yet, I am really busy on other concerns. This is still on my short-term todo tho. On 12-04-20 5:05 PM, John Dennis wrote:
On 04/20/2012 04:09 PM, Norman Elton wrote:
As Fajar said, try the v2.1.x branch from git. It has some fixes to the Perl module.
Francois,
Did these suggestions help? We're getting a rlm_perl segfault, very sporadically. All I see in the logs is:
radiusd[21706]: segfault at 10 ip 0000003e4bc531b1 sp 00007f1aafffdd70 error 4 in libperl.so[3e4bc00000+162000]
I have not yet gotten a core dump, but will look into newer versions from git.
We recently patched our version of FreeRADIUS for fedora and RHEL6 to include the eerl fix from the 2.1.x git repo
You can get the fedora patch from here:
https://koji.fedoraproject.org/koji/buildinfo?buildID=314457
For CentOS 5.8 you'll need to grab the srpm for it, and edit that spec file to include the patch you find in the above fedora build.
Instructions on how to build an RPM from an SRPM can be found here:
-- Francois Gaudreault, ing. jr fgaudreault@inverse.ca :: +1.514.447.4918 (x130) :: www.inverse.ca Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org)
participants (5)
-
Alan DeKok -
Fajar A. Nugraha -
Francois Gaudreault -
John Dennis -
Norman Elton