segfault with rlm_perl
Boian Jordanov
bjordanov at orbitel.bg
Wed Jan 5 10:31:17 CET 2011
On Jan 4, 2011, at 9:59 PM, Anatoly Ivanov wrote:
> Hi,
>
>
>
> I am running freeradius (2.1.8) with rlm_perl (5.10.1, USE_ITHREADS) on a
> Debian-Lenny system.
>
> 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.
This is have to be thread problem. Use CLONE function in your perl code (this is executed per every new thread) to initialize per thread variables and DBI Connections.
>
> It seems that I am running into some kind of memory allocation error.
>
> 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.
If you want to debug - search this list or google using keywords "debug rlm_perl"
>
>
> 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?
>
> Any ideas?
>
>
> Thank you!
>
>
>
Best Regards,
Boian Jordanov
Head of Voice Department
tel. +359 2 4004 723
tel. +359 2 4004 002
More information about the Freeradius-Users
mailing list