<p class="MsoNormal"></p><p class="MsoNormal">Hi,</p><p class="MsoNormal"> </p><p class="MsoNormal">I am running freeradius (2.1.8) with rlm_perl (5.10.1, USE_ITHREADS) on a Debian-Lenny system.</p><p class="MsoNormal">The problem is radius fails with segfault – periodically and intermittently. I have no way to reliably reproduce the problem – it happens only in production, and it is impossible to reliably predict when or backtrace why.</p>
<p class="MsoNormal">It seems that I am running into some kind of memory allocation error.</p><p class="MsoNormal">Coredump type #3 (see below) is the most "popular" one; coredumps with backtrace going into perl seem to be rather random (it fails in different parts of libperl.so) - again, see below.</p>
<p class="MsoNormal"><br></p><p class="MsoNormal">I understand that freeradius has a newer version available - but I am hesitant to upgrade a production server without a very good reason. And I could not find such reason for an upgrade after reading the CHANGELOG for 2.1.10. But maybe I am wrong?</p>
<p class="MsoNormal">Any ideas?</p><p class="MsoNormal"><br></p><p class="MsoNormal">Thank you!</p><p class="MsoNormal"><br></p><p class="MsoNormal">PS:</p><p class="MsoNormal"><br></p><p class="MsoNormal">bt for coredump #1:</p>
<p class="MsoNormal"><br></p><p class="MsoNormal">#0 0xb47d1ab6 in mysql_st_execute (sth=0xaf13a1a8, imp_sth=0xadf537a8) at dbdimp.c:3209</p><p class="MsoNormal">#1 0xb47da215 in XS_DBD__mysql__st_execute (my_perl=0xb831a08, cv=0xb1e16858) at mysql.xsi:588</p>
<p class="MsoNormal">#2 0xb70740ab in XS_DBI_dispatch () from /opt/server/lib/perl5/i686-linux-thread-multi/auto/DBI/DBI.so</p><p class="MsoNormal">#3 0xb76a841e in Perl_pp_entersub () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#4 0xb76a6841 in Perl_runops_standard () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p><p class="MsoNormal">#5 0xb7641500 in Perl_call_sv () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#6 0xb7642284 in Perl_call_pv () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p><p class="MsoNormal">#7 0xb72026ad in rlmperl_call () from /opt/server/radius/lib/rlm_perl.so</p>
<p class="MsoNormal">#8 0x08063524 in modcall ()</p><p class="MsoNormal">#9 0x0805ffe7 in indexed_modcall ()</p><p class="MsoNormal">#10 0x080602fc in module_accounting ()</p><p class="MsoNormal">#11 0x0804e9d1 in rad_accounting ()</p>
<p class="MsoNormal">#12 0x0806df65 in radius_handle_request ()</p><p class="MsoNormal">#13 0x080661d0 in request_handler_thread ()</p><p class="MsoNormal">#14 0xb759c4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0</p>
<p class="MsoNormal">#15 0xb734384e in clone () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal"><br></p><p class="MsoNormal">bt for coredump #2:</p><p class="MsoNormal">#0 0xb7690c80 in Perl_pad_undef () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#1 0xb764db67 in Perl_cv_undef () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p><p class="MsoNormal">#2 0xb76dcf5a in Perl_sv_clear () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#3 0xb76dd288 in Perl_sv_free2 () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p><p class="MsoNormal">#4 0xb76dd391 in Perl_sv_free () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#5 0xb76dcd57 in Perl_sv_clear () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p><p class="MsoNormal">#6 0xb76dd288 in Perl_sv_free2 () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#7 0xb70af022 in XS_Sys__Syslog_closelog_xs () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/auto/Sys/Syslog/Syslog.so</p><p class="MsoNormal">#8 0xb76c941e in Perl_pp_entersub () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#9 0xb76c7841 in Perl_runops_standard () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p><p class="MsoNormal">#10 0xb7662500 in Perl_call_sv () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#11 0xb7663284 in Perl_call_pv () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p><p class="MsoNormal">#12 0xb72236ad in rlmperl_call () from /opt/server/radius/lib/rlm_perl.so</p>
<p class="MsoNormal">#13 0x08063524 in modcall ()</p><p class="MsoNormal">#14 0x0805ffe7 in indexed_modcall ()</p><p class="MsoNormal">#15 0x0806037c in module_authenticate ()</p><p class="MsoNormal">#16 0x0804f908 in rad_authenticate ()</p>
<p class="MsoNormal">#17 0x0806df65 in radius_handle_request ()</p><p class="MsoNormal">#18 0x080661d0 in request_handler_thread ()</p><p class="MsoNormal">#19 0xb75bd4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0</p>
<p class="MsoNormal">#20 0xb736484e in clone () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal"><br></p><p class="MsoNormal">bt for coredump #3:</p><p class="MsoNormal">#0 0xb77a2424 in __kernel_vsyscall ()</p><p class="MsoNormal">
#1 0xb72d6640 in raise () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">#2 0xb72d8018 in abort () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">#3 0xb731348d in ?? () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">
#4 0x00000005 in ?? ()</p><p class="MsoNormal">#5 0xb583f614 in ?? ()</p><p class="MsoNormal">#6 0x00000400 in ?? ()</p><p class="MsoNormal">#7 0xb73e97c8 in ?? () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">
#8 0x00000017 in ?? ()</p><p class="MsoNormal">#9 0xbfd8b66b in ?? ()</p><p class="MsoNormal">#10 0x00000020 in ?? ()</p><p class="MsoNormal">#11 0xb73e97e1 in ?? () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">
#12 0x00000002 in ?? ()</p><p class="MsoNormal">#13 0xb73e985c in ?? () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">#14 0x00000023 in ?? ()</p><p class="MsoNormal">#15 0xb73e97e5 in ?? () from /lib/i686/cmov/libc.so.6</p>
<p class="MsoNormal">#16 0x00000004 in ?? ()</p><p class="MsoNormal">#17 0xb583fb43 in ?? ()</p><p class="MsoNormal">#18 0x00000008 in ?? ()</p><p class="MsoNormal">#19 0xb73e97eb in ?? () from /lib/i686/cmov/libc.so.6</p>
<p class="MsoNormal">#20 0x00000005 in ?? ()</p><p class="MsoNormal">#21 0xb72eb388 in vfprintf () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">#22 0xb7319764 in ?? () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">
#23 0x00000002 in ?? ()</p><p class="MsoNormal">#24 0xb73e97c8 in ?? () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">#25 0xbfd8b66b in ?? ()</p><p class="MsoNormal">#26 0xb73e985c in ?? () from /lib/i686/cmov/libc.so.6</p>
<p class="MsoNormal">#27 0xb583fb43 in ?? ()</p><p class="MsoNormal">#28 0xb73e985c in ?? () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">#29 0x3079d6d0 in ?? ()</p><p class="MsoNormal">#30 0x61346564 in ?? ()</p>
<p class="MsoNormal">#31 0x00383132 in ?? ()</p><p class="MsoNormal">#32 0xb7401ff4 in ?? () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">#33 0xb7403160 in ?? () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">
#34 0x0de4a218 in ?? ()</p><p class="MsoNormal">#35 0xb583fb78 in ?? ()</p><p class="MsoNormal">#36 0xb731b966 in free () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal">Backtrace stopped: frame did not save the PC</p>
<p class="MsoNormal"><br></p><p class="MsoNormal"><br></p><p class="MsoNormal">bt for coredump #4:</p><p class="MsoNormal">#0 0xb7673132 in Perl_av_fetch () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#1 0xb708c788 in DD_dump () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/auto/Data/Dumper/Dumper.so</p><p class="MsoNormal">#2 0xb708d77f in DD_dump () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/auto/Data/Dumper/Dumper.so</p>
<p class="MsoNormal">#3 0xb7090219 in XS_Data__Dumper_Dumpxs () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/auto/Data/Dumper/Dumper.so</p><p class="MsoNormal">#4 0xb767541e in Perl_pp_entersub () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#5 0xb7673841 in Perl_runops_standard () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p><p class="MsoNormal">#6 0xb760e500 in Perl_call_sv () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p>
<p class="MsoNormal">#7 0xb760f284 in Perl_call_pv () from /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so</p><p class="MsoNormal">#8 0xb71cf6ad in rlmperl_call () from /opt/server/radius/lib/rlm_perl.so</p>
<p class="MsoNormal">#9 0x08063524 in modcall ()</p><p class="MsoNormal">#10 0x0805ffe7 in indexed_modcall ()</p><p class="MsoNormal">#11 0x0806037c in module_authenticate ()</p><p class="MsoNormal">#12 0x0804f908 in rad_authenticate ()</p>
<p class="MsoNormal">#13 0x0806df65 in radius_handle_request ()</p><p class="MsoNormal">#14 0x080661d0 in request_handler_thread ()</p><p class="MsoNormal">#15 0xb75694c0 in start_thread () from /lib/i686/cmov/libpthread.so.0</p>
<p class="MsoNormal">#16 0xb731084e in clone () from /lib/i686/cmov/libc.so.6</p><p class="MsoNormal"><br></p><p></p>