mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: Force Coredump
Date: Mon, 24 Nov 2003 15:06:28 +0100	[thread overview]
Message-ID: <20031124140627.GY1037@lug-owl.de> (raw)
In-Reply-To: <001001c3b28d$183400e0$34dfa7c8@bsb.virtua.com.br>

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

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));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2003-11-24 14:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-24 13:15 Breno
2003-11-24 13:31 ` tim
2003-11-24 13:48   ` Breno
2003-11-24 15:13     ` Willy Tarreau
2003-11-24 14:06 ` Jan-Benedict Glaw [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031124140627.GY1037@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®