Freeradius crashes with SIGABRT

Daniel Feuchtinger daniel.feuchtinger at lrz.de
Wed Dec 4 17:45:15 CET 2019


Am 04.12.19 um 17:35 schrieb Alan DeKok:
> On Dec 4, 2019, at 11:31 AM, Daniel Feuchtinger <daniel.feuchtinger at lrz.de> wrote:
>>
>> I tried the Patch in commit 36656cc39f52dbc79f8b373d313281144eef205b
>> with the 3.0.20 code, that resulted in a lot of
>> memory leaks (109 of them within a few minutes): 
> 
>   That patch shouldn't cause memory leaks.
You're right, that was the systemd trying to restart, 
running the config check, sorry about the confusion. 
freeradius -Cm causes that memory leak and lets the
config checkfail, freeradius -C does not. 


The crash problem remains the same, some code lines
shifted in process.c by 10 after the patch:
=================================================================
==36658==ERROR: AddressSanitizer: attempting double-free on 0x60b0054c1fd0 in thread T0:
    #0 0x7f5cc0a0ffb0 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe8fb0)
    #1 0x7f5cc041a5d2 in _tc_free_internal ../talloc.c:1201
    #2 0x7f5cc041a43f in _tc_free_children_internal ../talloc.c:1646
    #3 0x7f5cc041a43f in _tc_free_internal ../talloc.c:1163
    #4 0x7f5cc041a43f in _tc_free_children_internal ../talloc.c:1646
    #5 0x7f5cc041a43f in _tc_free_internal ../talloc.c:1163
    #6 0x7f5cc0415347 in _tc_free_children_internal ../talloc.c:1646
    #7 0x7f5cc0415347 in _tc_free_internal ../talloc.c:1163
    #8 0x7f5cc0415347 in _talloc_free_internal ../talloc.c:1227
    #9 0x7f5cc0415347 in _talloc_free ../talloc.c:1769
    #10 0x55abd09923cd in request_free src/main/process.c:602
    #11 0x55abd09923cd in request_free src/main/process.c:587
    #12 0x55abd09986fc in request_done src/main/process.c:897
    #13 0x55abd099cb56 in request_receive src/main/process.c:1775
    #14 0x55abd095fc3b in auth_socket_recv src/main/listen.c:1597
    #15 0x55abd0992775 in event_socket_handler src/main/process.c:4879
    #16 0x7f5cc0849988 in fr_event_loop src/lib/event.c:649
    #17 0x55abd09a97b4 in radius_event_process src/main/process.c:5964
    #18 0x55abd093fd33 in main src/main/radiusd.c:626
    #19 0x7f5cbff0a09a in __libc_start_main ../csu/libc-start.c:308
    #20 0x55abd0940979 in _start (/usr/sbin/freeradius+0x57979)


I'll try the current code tomorrow,
but it may have the same results. 



-- 
Daniel Feuchtinger
Leibniz-Rechenzentrum
Boltzmannstraße 1
D-85748 Garching b. München
Tel. 089 35831 8820

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6026 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20191204/271bda03/attachment.bin>


More information about the Freeradius-Users mailing list