Freeradius crashes with SIGABRT
Alan DeKok
aland at deployingradius.com
Fri Mar 15 16:22:58 CET 2019
On Mar 15, 2019, at 11:19 AM, Daniel Feuchtinger <daniel.feuchtinger at lrz.de> wrote:
>> -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize-address-use-after-scope
>> We get compile errors with those flags in some modules
> using Debian Stretch and Debian Buster (ippool, rlm_mschap, rml_eap,
> sorry for the verbosity, it's just rlm_mschap):
>
> /usr/bin/ld: build/objs/src/modules/rlm_mschap/smbencrypt.o: in function `main':
> ./src/modules/rlm_mschap/smbencrypt.c:63: undefined reference to `__asan_option_detect_stack_use_after_return'
> /usr/bin/ld: ./src/modules/rlm_mschap/smbencrypt.c:63: undefined reference to `__asan_stack_malloc_5'
> /usr/bin/ld: ./src/modules/rlm_mschap/smbencrypt.c:63: undefined reference to `__asan_set_shadow_f8'
It's not linking to the address sanitizer libraries.
Edit the top-level Make.inc. There's an entry:
LIBS = ...
Add "-lasan" to the end, without the quotes. It should build.
Alan DeKok.
More information about the Freeradius-Users
mailing list