rlm_python bug

Vladimir Yu. Stepanov vys at renet.ru
Tue Jun 7 15:24:03 CEST 2005


Valts Mazurs wrote:
> Vladimir Yu. Stepanov wrote:
> 
>> Can you try setup from ports collection of libltdl15
>> (/usr/ports/devel/libltdl15) and add some options in configure script
>> for freeradius:
>> --with-ltdl-include="/usr/local/include" \
>> --with-ltdl-lib="/usr/local/lib" \
> 
> 
> It was not helpful.
> Crashed with core dump when I called "killall radiusd".
> 
> gdb bt output:
> (gdb) bt
> #0  0x280f6b0b in PyType_IsSubtype () from /usr/local/lib/libpython2.4.so
> #1  0x2812d800 in PyImport_Cleanup () from /usr/local/lib/libpython2.4.so
> #2  0x2813651c in Py_Finalize () from /usr/local/lib/libpython2.4.so
> #3  0x0805b160 in free_mainconfig ()
> #4  0x08054968 in detach_modules ()
> #5  0x0804e135 in main ()
> 
>> --with-threads \
> 
> 
> enabled by default imho.
> 
>> --with-experimental-modules \
> 
> 
> It is not neccessary. I use --with-static-modules=python
> 
>> --enable-developer
> 
> 
> With --enable-developer freeradius server crashes with core dump when
> received first request.
> 
> gdb bt output:
> (gdb) bt
> #0  0x28668e2c in rad_mangle (data=0x816aec0, request=0x8091f00)
>     at rlm_preprocess.c:186
> #1  0x2866922f in preprocess_authorize (instance=0x816aec0,
> request=0x8091f00)
>     at rlm_preprocess.c:497
> #2  0x08055ac2 in modcall (component=1, c=0x816ae00, request=0x8091f00)
>     at modcall.c:219
> #3  0x08055cbf in modcall (component=1, c=0x816af80, request=0x8091f00)
>     at modcall.c:252
> #4  0x080550fc in indexed_modcall (comp=1, idx=134815488, 
> request=0x8091f00)
>     at modules.c:469
> #5  0x080527c7 in rad_authenticate (request=0x8091f00) at auth.c:578
> #6  0x0804ca26 in rad_respond (request=0x8091f00,
>     fun=0x8052738 <rad_authenticate>) at radiusd.c:1672
> #7  0x0804e0b4 in main (argc=2, argv=0xbfbfe828) at radiusd.c:1457
> 
> NOTE that all these bugs appear only if python module is enabled in
> configuration files.

I tested rlm_python module many times for ia32/amd64 machines on FreeBSD 
5.3-RELEASE with Python 2.4.1. It is worked very well (without any 
memory leaks and crash problems).

I do not have ideas more :(

You can try to test new version:
http://bugtrap.renet.ru/source/freeradius/rlm_python-20050607-1.c

>>>
>>> My environment:
>>>   FreeBSD 5.3-RELEASE
>>>   freeradius-1.0.2
>>>   ./configure --with-static-modules=python && make && make install
>>>   gcc version 3.4.2 [FreeBSD] 20040728
>>>   Python 2.4.1
>>>   GNU gdb 6.1.1 [FreeBSD]
>>>
>>> Valts.
> 
> 
> ------------------------------------------------------------------------
> 
> - 
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vys.vcf
Type: text/x-vcard
Size: 379 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20050607/c52671f0/attachment.vcf>


More information about the Freeradius-Devel mailing list