rlm_perl without DynaLoader

Julius Plenz plenz at cis.fu-berlin.de
Thu Nov 22 14:02:33 CET 2012


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


More information about the Freeradius-Users mailing list