cannot get core dump of crashing freeradius

Alan DeKok aland at deployingradius.com
Tue Apr 20 10:54:47 CEST 2010


Jakob Hirsch wrote:
> So after some debugging I got to the root cause of this:
> The process's dumpable flag is reset every time the UID is changed. FR
> does this several times with fr_suid_up() and fr_suid_down() after
> switch_users() is run, e.g. in listen_bind().
> So I guess we have to change the fr_suid_* functions to always set the
> dumpable flag after setting the uid.

  Ah... OK.  That can be fixed for 2.1.9.

> btw, I wonder why is prctl() is not called when debug_flag is set. I
> would have thought that one would want to get a core dump especially
> when running in debug mode.

  It doesn't switch UIDs when in debug mode.  So it inherits whatever
code dump policy you set in the shell.

  Alan DeKok.



More information about the Freeradius-Users mailing list