From: nobu@... Date: 2015-07-30T01:44:21+00:00 Subject: [ruby-core:70180] [Ruby trunk - Bug #11404] Segfault when 'throw' occurs while loading a Ruby source file [PATCH] Issue #11404 has been updated by Nobuyoshi Nakada. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED ---------------------------------------- Bug #11404: Segfault when 'throw' occurs while loading a Ruby source file [PATCH] https://bugs.ruby-lang.org/issues/11404#change-53607 * Author: Alex Dowad * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0dev (2015-07-23 trunk 51355) [x86_64-linux] * Backport: 2.0.0: REQUIRED, 2.1: REQUIRED, 2.2: REQUIRED ---------------------------------------- Dear Ruby people, Here is a fix for a segfault which can occur when requiring a Ruby source file inside a Timeout.timeout {} block. This may seem like a strange thing to do, but it can easily happen unintentionally if you use libraries which 'autoload' their source files (like RSpec, Rails, etc). I have observed this segfault in MRI 2.1.2 and 2.3.0. Thanks, Alex Dowad ---Files-------------------------------- 0001-load.c-avoid-segfault-when-throw-occurs-in-the-middl.patch (1.33 KB) test.rb (1.2 KB) blah.rb (14 Bytes) crash-dump.txt (13.2 KB) -- https://bugs.ruby-lang.org/