rlm_perl.c questions

Boian Jordanov bjordanov at orbitel.bg
Tue Jan 11 12:23:42 CET 2011


On Jan 8, 2011, at 1:43 AM, Anatoly Ivanov wrote:

> Boian,
> 
>>> 
>>> I have a bunch of backtraces. Please let me know if you see anything
>>> suspicious in there.
>>> bt #1:


in core file using gdb when you are at step 1 try this 

printf "%d:%s\n", my_perl->Icurcop->cop_line, my_perl->Icurcop->cop_file 

this will work only if you have libperl with debugging options compiled and rlm_perl linked to new libperl.so

This way you will find exactly where the error occurs and this could give you more hints to find error.


>>> 
>>> #0  0xb47d1ab6 in mysql_st_execute (sth=0xaf13a1a8, imp_sth=0xadf537a8)
>> at
>>> dbdimp.c:3209
>>> #1  0xb47da215 in XS_DBD__mysql__st_execute (my_perl=0xb831a08,
>>> cv=0xb1e16858) at mysql.xsi:588
>>> #2  0xb70740ab in XS_DBI_dispatch () from
>>> /opt/server/lib/perl5/i686-linux-thread-multi/auto/DBI/DBI.so
>>> #3  0xb76a841e in Perl_pp_entersub () from
>>> /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so
>>> #4  0xb76a6841 in Perl_runops_standard () from
>>> /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so
>>> #5  0xb7641500 in Perl_call_sv () from
>>> /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so
>>> #6  0xb7642284 in Perl_call_pv () from
>>> /opt/server/lib/perl5/5.10.1/i686-linux-thread-multi/CORE/libperl.so
>>> #7  0xb72026ad in rlmperl_call () from /opt/server/radius/lib/rlm_perl.so
>>> #8  0x08063524 in modcall ()
>>> #9  0x0805ffe7 in indexed_modcall ()
>>> #10 0x080602fc in module_accounting ()
>>> #11 0x0804e9d1 in rad_accounting ()
>>> #12 0x0806df65 in radius_handle_request ()
>>> #13 0x080661d0 in request_handler_thread ()
>>> #14 0xb759c4c0 in start_thread () from /lib/i686/cmov/libpthread.so.0
>>> #15 0xb734384e in clone () from /lib/i686/cmov/libc.so.6
>>> 

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










More information about the Freeradius-Devel mailing list