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.
First two options may be help to fix this bug :)
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.