Signal 10

Martin Pauly pauly at hrz.uni-marburg.de
Wed Dec 7 09:24:00 CET 2005


Hi,

> shows there either.  I suspect its a request from somewhere.  I am  
> going to enable tcpdump on the secondary server but am at a loss to  
> figure out how to get a core dump.  I don't see any place in the code  
> where signal 10 is redirected.  Any other ideas on how to diagnose  
> this problem?  Thanks.
I don't think Signal 10 is supposed to be handled by freeradius in some
way -- it just crashes. Producing a core dump proved surprisingly tricky
for me. 

Citing Alan's posting from Oct 11:
>   If you've set "user" or "group" in radiusd.conf, you won't get a
> core file.
> 
>   I'd suggest running the server in debugging mode, and redirecting
> the output to /dev/null.  That way you control which directory it runs
> in, and you're guaranteed to get a core file (assuming ulimit is set)

There's one more point at least: The core dump will always be created in
the Current working Directory of the respective process. On Linux, look at
/proc/<pid>/cwd. To my surprise, it turned out to be / (root dir).
(Hey, is this a bug or a feature?)
So somehow freeradius must be able to write to a core file there. 
I succeeded by pre-creating a file named /core and chown'ing it 
to the freerad user, but not before getting the ulimit business straight.

Good Luck
Martin

-- 
  Dr. Martin Pauly     Fax:    49-6421-28-26994            
  HRZ Univ. Marburg    Phone:  49-6421-28-23527
  Hans-Meerwein-Str.   E-Mail: pauly at HRZ.Uni-Marburg.DE  
  D-35032 Marburg                                                           



More information about the Freeradius-Users mailing list