Segfault calling OpenSSL library from Perl

Alan DeKok aland at deployingradius.com
Mon Oct 21 18:15:35 CEST 2013


Caines, Max wrote:
> The reference to the Perl SSLeay stub says to me that this is a conflict over OpenSSL between Perl and FreeRadius.

  Yes.  This sound slike a library conflict problem, and there's really
nothing you can do to fix it.  Perl has OpenSSL X, and FreeRADIUS
OpenSSL Y.  Ensure that they're using the same OpenSSL, or disable one
version of OpenSSL.

>  If I omit the calls to "perl" from the FreeRadius config, all is OK. If I use the Perl module, but don't include calls the ultimately use the IO::Socket::SSL module, all is OK. I've tried a Perl test program that creates a thread and calls Net::SSLeay, and that works too, so it doesn't seem to be an inherent problem with Perl.

  Using the OpenSSL Perl with Perl won't be an issue.

> I've been able to fix this by configuring the FreeRadius build to omit all modules that use SSL, and using -with-openssl=no. This now works, but I'd prefer to get to the bottom of the problem. I can't of course be sure that the home-built version is crashing for the same reason as the package, but I'd settle for a fix to either!  Any thoughts on where I look next?

  There's really little you can do.  This issue doesn't occur on Linux
systems, so it's not an inherent issue with FreeRADIUS and Perl.

  Alan DeKok.


More information about the Freeradius-Users mailing list