Hi,

when using rlm_perl with a very simple Perl script that does *not* use
DynaLoader to load some *.so files, upon thread exit, FreeRADIUS
(current v2.x.x branch) throws errors:

    Error: Could not get @DynaLoader::dl_librefs for unloading.

The errors originate from rlm_perl_get_handles(), which is invoked via
pthread_key_create(key, rlm_destroy_perl):
https://github.com/FreeRADIUS/freeradius-server/blob/v2.x.x/src/modules/rlm_perl/rlm_perl.c#L154

Adding an (otherwise useless) 'require DynaLoader;' to the Perl script
fixes the errors.

Why is this an error case, rather than "no libs, no unloading
necessary"?

Thanks,

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

Reply via email to