ports/188632: net/freeradius3 does not exit cleanly

Garrett Wollman wollman at csail.mit.edu
Mon Apr 14 22:40:00 UTC 2014


>Number:         188632
>Category:       ports
>Synopsis:       net/freeradius3 does not exit cleanly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 14 22:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Wollman
>Release:        FreeBSD 9.2-RELEASE-p3 amd64
>Organization:
MIT Computer Science & Artificial Intelligence Laboratory
>Environment:
System: FreeBSD truechimer.csail.mit.edu 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #3 r260650M: Tue Jan 14 17:08:30 EST 2014 wollman at xyz.csail.mit.edu:/usr/obj/usr/src/sys/CSAIL amd64

freeradius3-3.0.2_1            A free RADIUS server implementation

>Description:

Attempting to stop radiusd using SIGTERM doesn't work.  The init
script hangs indefinitely waiting for radiusd to exit, which it never
does.  Sending a SIGINT successfully terminates the process.

After radiusd has been sent a SIGTERM, it is in the following state:

# procstat -t 81522
  PID    TID COMM             TDNAME           CPU  PRI STATE   WCHAN    
81522 100229 radiusd          -                  2  152 sleep   usem      
81522 100579 radiusd          -                  1  152 sleep   usem      
81522 100724 radiusd          -                  5  152 sleep   select    
81522 101283 radiusd          -                  4  152 sleep   usem      
81522 101284 radiusd          -                  4  152 sleep   usem      
81522 101285 radiusd          -                  3  120 sleep   usem      

procstat -j reports no signals pending on any thread.  procstat -i
says that SIGINT, SIGHUP, SIGQUIT, SIGABRT, SIGBUS, SIGSEGV, and
SIGTERM are all caught.  Kernel stacks are uninteresting:

# procstat -kk 81522
  PID    TID COMM             TDNAME           KSTACK                       
81522 100229 radiusd          -                mi_switch+0x194 sleepq_catch_signals+0x343 sleepq_wait_sig+0xc _sleep+0x2a5 do_sem_wait+0xa46 __umtx_op_sem_wait+0x5e amd64_syscall+0x5ea Xfast_syscall+0xf7 
81522 100579 radiusd          -                mi_switch+0x194 sleepq_catch_signals+0x343 sleepq_wait_sig+0xc _sleep+0x2a5 do_sem_wait+0xa46 __umtx_op_sem_wait+0x5e amd64_syscall+0x5ea Xfast_syscall+0xf7 
81522 100724 radiusd          -                mi_switch+0x194 sleepq_catch_signals+0x343 sleepq_wait_sig+0xc _cv_wait_sig+0x12a seltdwait+0xf6 kern_select+0x6ef sys_select+0x5d amd64_syscall+0x5ea Xfast_syscall+0xf7 
81522 101283 radiusd          -                mi_switch+0x194 sleepq_catch_signals+0x343 sleepq_wait_sig+0xc _sleep+0x2a5 do_sem_wait+0xa46 __umtx_op_sem_wait+0x5e amd64_syscall+0x5ea Xfast_syscall+0xf7 
81522 101284 radiusd          -                mi_switch+0x194 sleepq_catch_signals+0x343 sleepq_wait_sig+0xc _sleep+0x2a5 do_sem_wait+0xa46 __umtx_op_sem_wait+0x5e amd64_syscall+0x5ea Xfast_syscall+0xf7 
81522 101285 radiusd          -                mi_switch+0x194 sleepq_catch_signals+0x343 sleepq_wait_sig+0xc _sleep+0x2a5 do_sem_wait+0xa46 __umtx_op_sem_wait+0x5e amd64_syscall+0x5ea Xfast_syscall+0xf7 

>How-To-Repeat:

service radiusd stop
wait...wait...wait...give up

>Fix:

unknown
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list