Messages in this thread | ![/](/images/icornerl.gif) | | Date | Mon, 24 Nov 2003 15:06:28 +0100 | From | Jan-Benedict Glaw <> | Subject | Re: Force Coredump |
| |
On Mon, 2003-11-24 11:15:51 -0200, Breno <brenosp@brasilsec.com.br> wrote in message <001001c3b28d$183400e0$34dfa7c8@bsb.virtua.com.br>: > Hi all, > > I need force a coredump file. So i tryed : > > int *i = 0; > if(*i) > exit(1); > > tryed to kill -11 'pid' > ... > but i just received a seg. fault message, and doesn´t create coredump file.
That's correct - "kill -l" lists signal no. 11 as SIGSEGV. Most probably, you'd try SIGABRT which is ment for this purpose. But remember, you'll need write permissions on the directory as well as a matching ulimit.
MfG, JBG
-- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)); [unhandled content-type:application/pgp-signature] | ![\](/images/icornerr.gif) |