Actions
Bug #11959
closedSegfault during `exit' in thread initialize (Extended class).
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
Updated by nobu (Nobuyoshi Nakada) almost 9 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]
Updated by nobu (Nobuyoshi Nakada) about 8 years ago
- Has duplicate Bug #12727: Segfault when subclassing Thread with bad initialize added
Updated by nagachika (Tomoyuki Chikanaga) about 8 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) about 8 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) about 8 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
Like0
Like0Like0Like0Like0Like0