Release of Version 2.2.1

Stefan Winter stefan.winter at restena.lu
Tue Mar 19 10:23:20 CET 2013


Hi,

>   I've added the patch to set rcode=1 on clean exit.
> 
>   The patch to remove free_mainconfig() is made unnecessary by other
> cleanups.  The SEGV was a result of mis-ordered free's.  There was
> conflict between the modules free'ing their data, and the main
> configuration code free'ing its data.  That was fixed.
> 
>   The code was run through valgrind repeatedly until it shows no errors
> on exit.

Well, this morning's GIT doesn't quite agree. Sending a TERM to the 
server running -X:


Listening on authentication address :: port 1812
Listening on accounting address :: port 1813
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on command file /var/run/radiusd/radiusd.sock
Listening on proxy address :: port 1814
Ready to process requests.
Ready to process requests.
Signalled to terminate
Exiting normally.
Speicherzugriffsfehler

Speicherzugriffsfehler is my locale for Segmentation fault.

gdb during termination time shows that there's something wrong inside 
free'ing eap types, it seems:

Listening on authentication address :: port 1812
Listening on accounting address :: port 1813
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on command file /var/run/radiusd/radiusd.sock
Listening on proxy address :: port 1814
Ready to process requests.

Program received signal SIGTERM, Terminated.
0x00007ffff6608623 in select () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff6608623 in select () from /lib64/libc.so.6
#1  0x00007ffff7bca538 in fr_event_loop (el=0x889640) at event.c:391
#2  0x0000000000429f21 in radius_event_process () at event.c:3800
#3  0x0000000000409f7c in main (argc=<optimized out>, argv=<optimized out>) at radiusd.c:421
(gdb) c
Continuing.
Ready to process requests.
Signalled to terminate
Exiting normally.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff65a5634 in free () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff65a5634 in free () from /lib64/libc.so.6
#1  0x000000000040e2c0 in cf_section_parse_free (cs=0x675240, base=0x8209c0) at conffile.c:344
#2  0x00007ffff56e0d31 in eaptype_free (i=0x8247f0) at mem.c:253
#3  0x00007ffff56de877 in eap_detach (instance=0x823ad0) at rlm_eap.c:69
#4  0x000000000041ad31 in module_instance_free (data=0x823990) at modules.c:385
#5  0x00007ffff7bc3dfd in FreeWalker (tree=0x7f8130, X=0x825a70) at rbtree.c:63
#6  0x00007ffff7bc3dee in FreeWalker (tree=0x7f8130, X=0x81a9c0) at rbtree.c:61
#7  0x00007ffff7bc3ddd in FreeWalker (tree=0x7f8130, X=0x7f9f50) at rbtree.c:60
#8  0x00007ffff7bc3ddd in FreeWalker (tree=0x7f8130, X=0x822d30) at rbtree.c:60
#9  0x00007ffff7bc418d in rbtree_free (tree=0x7f8130) at rbtree.c:74
#10 0x000000000041bc40 in detach_modules () at modules.c:441
#11 0x0000000000409fd4 in main (argc=<optimized out>, argv=<optimized out>) at radiusd.c:465
(gdb) 

Greetings,

Stefan Winter

-- 
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg

Tel: +352 424409 1
Fax: +352 422473

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20130319/127ead50/attachment.pgp>


More information about the Freeradius-Devel mailing list