Project

General

Profile

Actions

Bug #11959

closed

Segfault during `exit' in thread initialize (Extended class).

Added by Zarthus (Jos Ahrens) over 8 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:72732]

Description

https://ideone.com/jluEsq (ruby 2.1.5p273)
https://eval.in/498185 (ruby 2.3.0)

Minimal reproduction:

require 'thread'
 
class A < Thread
	def initialize
		exit
	end
end
 
A.new

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #12727: Segfault when subclassing Thread with bad initializeRejectedActions
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Status changed from Open to Closed

Applied in changeset r53449.


thread.c: interrupt queue on uninitialized thread

  • thread.c (rb_thread_pending_interrupt_p): no pending interrupt
    before initialization.
  • thread.c (thread_raise_m, rb_thread_kill): uninitialized thread
    cannot interrupt. [ruby-core:72732] [Bug #11959]
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Has duplicate Bug #12727: Segfault when subclassing Thread with bad initialize added

Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: DONE

ruby_2_3 r56564 merged revision(s) 53449.

Updated by usa (Usaku NAKAMURA) over 7 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: DONE to 2.1: UNKNOWN, 2.2: DONE, 2.3: DONE

ruby_2_2 r56726 merged revision(s) 53449.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0