public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@tv-sign.ru>
To: Michael Kerrisk <mtk-lkml@gmx.net>
Cc: dan@debian.org, roland@redhat.com, mingo@elte.hu,
	linux-kernel@vger.kernel.org, michael.kerrisk@gmx.net
Subject: Re: Process with many NPTL threads terminates slowly on core dump signal
Date: Thu, 13 Oct 2005 21:18:50 +0400	[thread overview]
Message-ID: <434E96FA.48CBB6E7@tv-sign.ru> (raw)
In-Reply-To: 18436.1129192898@www29.gmx.net

Michael Kerrisk wrote:
> 
> Thanks.  I've applied it to 2.6.14-rc4: this patch does fix the
> specific behaviour that my program demonstrates.
> 
> What remains to be solved?

The problem remains that all threads spin with TIF_SIGPENDING flag
after the coredumping thread sets SIGNAL_GROUP_EXIT in do_coredump()
and before it kills them in zap_threads(). If one of these threads is
SCHED_FIFO we have a deadlock. Also, the coredumping thread could be
preempted, placed in ->expired array ...

Oleg.

  reply	other threads:[~2005-10-13 17:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-12 17:33 Process with many NPTL threads terminates slowly on core dump signal Oleg Nesterov
2005-10-13  8:41 ` Michael Kerrisk
2005-10-13 17:18   ` Oleg Nesterov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-09-22 12:13 Michael Kerrisk
2005-09-22 13:10 ` Michael Kerrisk
2005-09-24 15:28 ` Daniel Jacobowitz
2005-10-12 13:34 ` Michael Kerrisk

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=434E96FA.48CBB6E7@tv-sign.ru \
    --to=oleg@tv-sign.ru \
    --cc=dan@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael.kerrisk@gmx.net \
    --cc=mingo@elte.hu \
    --cc=mtk-lkml@gmx.net \
    --cc=roland@redhat.com \
    /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