Project

General

Profile

Actions

Backport #4009

closed

Segfault with combination of threads and condition variables

Added by nanodeath (Max Aller) over 13 years ago. Updated over 12 years ago.

Status:
Closed
[ruby-core:32982]

Description

=begin
When running the attached program, I get a segfault. When changing some of the values inside what I've designated as the "delayed adder" thread (namely, the number of jobs that get added, or the duration that the sleep occurs for), I get "fatal: deadlock detected" -- which is fine. But with the given settings on my laptop, it segfaults routinely.

I've already trimmed down the example as much as I could, but I realize it's a bit long, still. It's apparently important that the "delayed adder" thread exists at all, potentially "putting off" the deadlock detection somehow.
=end


Files

proof_of_segfault.rb (955 Bytes) proof_of_segfault.rb program that segfaults nanodeath (Max Aller), 11/01/2010 02:43 AM
proof_of_segfault_output (12.9 KB) proof_of_segfault_output output from stack trace nanodeath (Max Aller), 11/01/2010 02:43 AM
proof_of_segfault_small.rb (427 Bytes) proof_of_segfault_small.rb nanodeath (Max Aller), 01/18/2011 01:11 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0