Git-v3.0.x FreeRADIUS assertion fails with proxy listener

Julius Plenz plenz at cis.fu-berlin.de
Wed Oct 8 16:19:28 CEST 2014


Hi,

I have a section like this in my FreeRADIUS config:

    listen {
            type = "proxy"
            ipaddr = ...
            port = ...
    }

But the server startup aborts due to a failed assertion:

    Listening on proxy address ... port ...
    ASSERT FAILED src/main/process.c[4355]: sock->home != NULL
    CAUGHT SIGNAL: Aborted 
    Backtrace of last 9 frames: 
    /server/devel/server/lib/libfreeradius-radius.so(fr_fault+0x11c)[0x7f08d91fb287]
    /server/devel/server/lib/libfreeradius-server.so(rad_assert_fail+0x53)[0x7f08d944e108]
    bin/radiusd[0x43f088]
    bin/radiusd(radius_update_listener+0x21)[0x43532f]
    bin/radiusd(listen_init+0x936)[0x41f339]
    bin/radiusd(radius_event_start+0x4db)[0x440092]
    bin/radiusd(main+0x992)[0x42c35a]
    /lib/libc.so.6(__libc_start_main+0xfd)[0x7f08d75e7cad]
    bin/radiusd[0x40e4e9]

It seems that proxy_new_listener() is not being used in
common_socket_parse(), and thus the rad_listen_t's ->data->home field
is zero. I'm not sure what the correct fix is, though.

Removing the assertion in question, the server starts just fine. I
haven't tested proxying, though.

Any help is appreciated,

Julius

P.S. I'm using the current Git v3.0.x branch, f31d0371f8fe.


More information about the Freeradius-Users mailing list