Does anyone know how the signal handler of a setgid program can
be written to make it dump core? An undocumented "feature" of AIX
4.1.4 appears to be that setgid programs do not dump core, presumably
for the same reason setuid programs do not core -- security. I have
a program that needs to run setgid, and it crashes every two weeks
or so, and I need to find a way to make the signal handler produce
a core file before it exits so I can debug the problem. Doing a
setgid(getgid()) before the abort() does not convince it it's safe.
If nothing else, is there some code around that can be used to
manually write out the process's memory state in core-dump format?
Greg