FreeRADIUS 3.0: Segfault in rlm_detail

Arran Cudbard-Bell a.cudbardb at freeradius.org
Tue Mar 4 15:50:17 CET 2014


> 
> Interesting part of GDB backtrace:
> 
> #0  0x00007ffff5d891b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
> #1  0x00007ffff5d8bfc0 in *__GI_abort () at abort.c:92
> #2  0x00007ffff71380bc in ?? () from /usr/lib/libtalloc.so.2
> #3  0x00007ffff7138221 in talloc_get_name () from /usr/lib/libtalloc.so.2
> #4  0x00007ffff713b56b in _talloc_get_type_abort () from /usr/lib/libtalloc.so.2
> #5  0x00007ffff79913b8 in vp_prints (out=0x7fffffffa751 "", outlen=1023, vp=0x7fffffffac20) at src/lib/print.c:868
> #6  0x00007ffff799154a in vp_print (fp=0xd31870, vp=0x7fffffffac20) at src/lib/print.c:908
> #7  0x00007ffff3523e7e in detail_write (out=0xd31870, inst=0xd16a50, request=0xd31060, packet=0xd30ee0, compat=false)
>    at src/modules/rlm_detail/rlm_detail.c:249
> #8  0x00007ffff35248c3 in detail_do (instance=0xd16a50, request=0xd31060, packet=0xd30ee0, compat=false)
>    at src/modules/rlm_detail/rlm_detail.c:484
> #9  0x00007ffff3524a5a in mod_authorize (instance=0xd16a50, request=0xd31060) at src/modules/rlm_detail/rlm_detail.c:533
> #10 0x0000000000423915 in call_modsingle (component=RLM_COMPONENT_AUTZ, sp=0xd18bb0, request=0xd31060) at src/main/modcall.c:311
> ...
> 
> The file /server/devel/server/log/client/XXX.XXX.XX.XX/auth-20140304
> is actually being created, but contains only this:
> 
>    2014-03-04 14:41:14
>            Packet-Type = Access-Request
> 
> So presumably FreeRADIUS crashes while trying to print out the
> Packet-Src-IP-Address...?

It shouldn't be trying to print Packet-Src-IP-Address as it isn't a real attribute.

Could you provide the contents of the request, I can't get it to crash on my system, and the backtrace provides no clue about which attribute it's failing at printing.

> make: *** [build/objs/src/lib/cbuff.lo] Error 1

OK, what compiler/OS are you using. It means that the preprocessor macros in ./build.h couldn't figure out the endianess of the system, which is odd as the Macros should cover at least GCC and clang.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140304/ed9bd507/attachment.pgp>


More information about the Freeradius-Users mailing list