ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: mbj@schirp-dso.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:90312] [Ruby trunk Bug#15383] Reproducible crash: crash.sh:6: [BUG] unexpected THREAD_KILLED
Date: Wed, 05 Dec 2018 13:40:19 +0000 (UTC)	[thread overview]
Message-ID: <redmine.issue-15383.20181205134017.5604e70fd6331633@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-15383.20181205134017@ruby-lang.org

Issue #15383 has been reported by mbjs (Markus Schirp).

----------------------------------------
Bug #15383: Reproducible crash: crash.sh:6: [BUG] unexpected THREAD_KILLED
https://bugs.ruby-lang.org/issues/15383

* Author: mbjs (Markus Schirp)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
Hi,

I'm reporting a reliable crash of the ruby interpreter on contested mutexeses that are accessed in child processes.

I currently think that this happens as the child processes main thread, may be waiting for a parent process sibling thread that was holding the mutex at the time of the fork. After the fork is done, all sibling threads are dead, and the mutex detects the attempt to wait for a dead thread, bailing out.

This is simular, but not identical to the case here: https://bugs.ruby-lang.org/issues/14578

Here is a gist with some more test results on various platforms: https://gist.github.com/mbj/e6795ee5e0583c5541ee250e9942279a

I'm fine to get my hands dirty, but would need some pointers if my above conclusion points to the right direction.

Best,

Markus

---Files--------------------------------
output.txt (21.3 KB)
crash.rb (200 Bytes)


-- 
https://bugs.ruby-lang.org/

       reply	other threads:[~2018-12-05 13:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-15383.20181205134017@ruby-lang.org>
2018-12-05 13:40 ` mbj [this message]
2018-12-05 19:03   ` [ruby-core:90325] Re: [Ruby trunk Bug#15383] Reproducible crash: crash.sh:6: [BUG] unexpected THREAD_KILLED Eric Wong
2018-12-20  8:36     ` [ruby-core:90631] " Eric Wong
2018-12-05 19:37 ` [ruby-core:90326] [Ruby trunk Bug#15383] Reproducible crash: crash.rb:6: " mbj
2018-12-05 20:16   ` [ruby-core:90328] " Eric Wong

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-list from there: mbox

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

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

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

  git send-email \
    --in-reply-to=redmine.issue-15383.20181205134017.5604e70fd6331633@ruby-lang.org \
    --to=ruby-core@ruby-lang.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).