Project

General

Profile

Actions

Bug #12270

closed

2.3.0/2.4.0 で stackprof を実行すると SEGV することがある

Added by hsbt (Hiroshi SHIBATA) about 8 years ago. Updated about 8 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0dev (2016-04-11 trunk 54545) [x86_64-darwin15]
[ruby-dev:49562]

Description

tDiary ( https://github.com/tdiary/tdiary-core )のテストに添付しているパッチを当てて stackprof を有効にして実行すると最後の results を出力する箇所で SEGV となります。

spec/spec_helper.rb:33: [BUG] frame2iseq: unreachable

ruby 2.2.5p292 (2016-03-31 revision 54443) [x86_64-darwin15] では results がダンプされるので 2.3.0 で発生した regression ではないかと思います。


Files

tdiary-stackprof.patch (1.12 KB) tdiary-stackprof.patch hsbt (Hiroshi SHIBATA), 04/12/2016 07:04 AM

Updated by hsbt (Hiroshi SHIBATA) about 8 years ago

  • Description updated (diff)

Updated by naruse (Yui NARUSE) about 8 years ago

  • Status changed from Open to Third Party's Issue

示唆なさってたとおり、 gem 'stackprof', github: 'tmm1/stackprof' で直りますね。

Updated by hsbt (Hiroshi SHIBATA) about 8 years ago

僕も stackprof の master で SEGV が起きないことを確認しました。

参考: https://twitter.com/mametter/status/719795060015898624

Updated by naruse (Yui NARUSE) about 8 years ago

fixed by stackprof v0.2.9.

Updated by naruse (Yui NARUSE) about 8 years ago

  • Backport changed from 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0