lkml.org 
[lkml]   [2003]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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]
\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.022 / U:0.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site