public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Alexander V. Lukyanov" <lav@netis.ru>
To: linux-kernel@vger.kernel.org
Subject: unkillable process during core dump
Date: Tue, 6 May 2008 08:58:11 +0400	[thread overview]
Message-ID: <20080506045811.GA23821@night.netis.ru> (raw)

Hello!

I have noticed that a process doing a core dump is unkillable.
Now imagine that there are many such processes and they are large.
An example:

#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
int main() {
        calloc(1000000000,1);
        signal(SIGCLD,SIG_IGN);
        while(1) {
                if(fork()==0) {
                        raise(SIGABRT);
                        _exit(0);
                }
                sleep(10);
        }
        return 0;
}

Try with large enough ulimit -c and with sysctl kernel.core_uses_pid=0.
You kill the parent, but the children are still doing their core dumps.

-- 
   Alexander.

                 reply	other threads:[~2008-05-06  5:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080506045811.GA23821@night.netis.ru \
    --to=lav@netis.ru \
    --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