How to debug rlm_perl in multithread?

Коньков Евгений kes-kes at yandex.ru
Fri Aug 27 19:41:39 CEST 2010


Здравствуйте, Boian.

Вы писали 26 августа 2010 г., 0:41:22:


BJ> On Aug 23, 2010, at 9:36 PM, Eugen Konkov wrote:

>> HI, FreeRadius.
>> 
>> when run radiusd -X it works fine.
>> But when run in multithread (without -X) it core dump after ten or
>> twelve queriest to radiusd.

BJ> Alan maybe it will be useful to add this info to doc/bugs ?

BJ> Eugen Please do the following:

Can you be more specific on these steps please?
BJ> Install or ecompile your libperl with debugging symbols Use "./Configure
BJ> -Doptimize='-g'". Recompile rlm_perl with -g. Recompile FreeRadius with --enable-developer
BJ> Rebuild you rlm_perl with new libperl
BJ> Then start it and attach with gdb


BJ> When problem occurs type bt and then look at the backtrace and find the first
BJ> function which accepts the my_perl argument

BJ> And if the core happens inside Perl post the output of printf "%d:%s\n",
my_perl->>Tcurcop->cop_line, my_perl->Tcurcop->cop_file if your perl version is
BJ> less than 5.10 otherwise use this printf "%d:%s\n", my_perl->Icurcop->cop_line,
my_perl->>Icurcop->cop_file

BJ> This will help us to find where the problem occurs.

BJ> Very Important.

BJ> If you are using DBI and do some queries to DB, please be sure to
BJ> use CLONE function to initialize DBI connection to DB.





>> 
>> please help any.
>> 
>> -- 
>> Eugen Konkov                          mailto:kes-kes at yandex.ru
>> 
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

BJ> Best Regards,
BJ> Boian Jordanov
BJ> Head of Voice Department
BJ> tel. +359 2 4004 723
BJ> tel. +359 2 4004 002







BJ> -
BJ> List info/subscribe/unsubscribe? See
BJ> http://www.freeradius.org/list/users.html



-- 
С уважением,
 Коньков                          mailto:kes-kes at yandex.ru





More information about the Freeradius-Users mailing list