AnyEvent::Hiredis module crashes when redis connection failed

Alan DeKok aland at
Fri Sep 23 17:23:08 CEST 2016

On Sep 23, 2016, at 11:19 AM, feroze waris <feroze.chaudhry at> wrote:
> I am using Freeradius 2.2.1

  Don't run 2.2.1.  It's years out of date.

>  server with AnyEvent::Hiredis module to
> connect to redis server.

  Version 3 has native redis support.  Use that.

> When my redis server stops or unreachable
> freeradius crashes with the following error
> rlm_perl: perl_embed:: module = /usr/local/etc/raddb/ , func =
> accounting exit status= ac does not have a struct associated with it at
> /usr/local/share/perl5/AnyEvent/ line 84.
> I also tried exception handling using Trycatch to catch the error but it is
> not working because radius already crashes before replying with error.

  Version 3 has also had fixes in the Perl module.

  Don't waste your time trying to work around issues which were found and fixed years ago.  Upgrade to a new version of the server.

  Alan DeKok.

More information about the Freeradius-Users mailing list