Debian and RTLD_GLOBAL (again)

Chris Moules chris at gms.lu
Thu Jan 8 09:39:02 CET 2009


Hello Alan,

sorry for not specifying, this is with the 2.1.3 tarball release, build with dpkg-buildpackage on a Debian Lenny (5.0 - testing)
system.

I can re-build with '--enable-developer' and try to get a backtrace if that would help.

The debug output up to the crash is:
----
Login OK: [test/test] (from client 127.0.0.1 port 1)
+- entering group post-auth {...}
rlm_sql (sql): Reserving sql socket id: 4
[sqlippool]     expand: %{Stripped-User-Name} ->
[sqlippool]     expand: %{User-Name} -> test
[sqlippool]     expand: %{%{User-Name}:-DEFAULT} -> test
[sqlippool]     expand: %{%{Stripped-User-Name}:-%{%{User-Name}:-DEFAULT}} -> test
[sqlippool] sql_set_user escaped user --> 'test'
[sqlippool]     expand: START TRANSACTION -> START TRANSACTION
freeradius: symbol lookup error: /usr/lib/freeradius/rlm_sqlippool-2.1.3.so: undefined symbol: rlm_sql_query
----

The original source is from (MD5):
df7a23ec6303a89d014fcc43418ce5e5  freeradius-server-2.1.3.tar.bz2

The linking of the library:
----
radius_test:/usr/lib/freeradius# ldd /usr/lib/freeradius/rlm_sqlippool-2.1.3.so
         linux-gate.so.1 =>  (0xb7f1b000)
         libfreeradius-radius-2.1.3.so => /usr/lib/freeradius/libfreeradius-radius-2.1.3.so (0xb7ef6000)
         libnsl.so.1 => /lib/i686/nosegneg/libnsl.so.1 (0xb7ed9000)
         libresolv.so.2 => /lib/i686/nosegneg/libresolv.so.2 (0xb7ec4000)
         libpthread.so.0 => /lib/i686/nosegneg/libpthread.so.0 (0xb7eab000)
         libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0xb7d4d000)
         /lib/ld-linux.so.2 (0x80000000)
----

Anything I can do?

Regards

Chris

Alan DeKok wrote:
> Chris Moules wrote:
>> There is a sticking point however, on systems that use the sqlippool
>> module there is still the crash due to a symbol lookup error, the known
>> Debian RTLD_GLOBAL (or lack thereof) issue (I have tried resolving some
>> of this myself, but it is beyond my ken). I have seen that there has
>> been work towards resolving this, The last I (productively) saw written
>> on this was:
>> http://lists.freeradius.org/pipermail/freeradius-users/2008-November/msg00110.html
> 
>   This should have been fixed in 2.1.3.  Please try that.
> 
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
> 




More information about the Freeradius-Devel mailing list