Project

General

Profile

Bug #11851

rb_profile_frames() causes segmentation fault

Added by rhenium (Kazuki Yamaguchi) almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-12-20 trunk 53215) [x86_64-linux]
[ruby-core:72409]

Description

When the control frame stack contains an ifunc-frame, calling rb_profile_frames() causes a segmentation fault.

I've attached a patch that changes it to ignore ifunc frames as it did previously.


Files

Associated revisions

Revision cc52f511
Added by nobu (Nobuyoshi Nakada) almost 4 years ago

vm_backtrace.c: ignore ifunc frames

  • vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it did before. [ruby-core:72409] [Bug #11851]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 53225
Added by nobu (Nobuyoshi Nakada) almost 4 years ago

vm_backtrace.c: ignore ifunc frames

  • vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it did before. [ruby-core:72409] [Bug #11851]

Revision 53225
Added by nobu (Nobuyoshi Nakada) almost 4 years ago

vm_backtrace.c: ignore ifunc frames

  • vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it did before. [ruby-core:72409] [Bug #11851]

Revision 53225
Added by nobu (Nobuyoshi Nakada) almost 4 years ago

vm_backtrace.c: ignore ifunc frames

  • vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it did before. [ruby-core:72409] [Bug #11851]

Revision 53225
Added by nobu (Nobuyoshi Nakada) almost 4 years ago

vm_backtrace.c: ignore ifunc frames

  • vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it did before. [ruby-core:72409] [Bug #11851]

Revision 53225
Added by nobu (Nobuyoshi Nakada) almost 4 years ago

vm_backtrace.c: ignore ifunc frames

  • vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it did before. [ruby-core:72409] [Bug #11851]

History

#1

Updated by nobu (Nobuyoshi Nakada) almost 4 years ago

Could you show reproducible code or add a test?

Updated by rhenium (Kazuki Yamaguchi) almost 4 years ago

Uploaded reproducible code to Gist: https://gist.github.com/rhenium/e3a179b0cac87606c183

This runs on Ruby 2.2.4 and patched trunk but segfaults on trunk.

#3

Updated by nobu (Nobuyoshi Nakada) almost 4 years ago

  • Status changed from Open to Closed

Applied in changeset r53225.


vm_backtrace.c: ignore ifunc frames

  • vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it did before. [ruby-core:72409] [Bug #11851]

Updated by usa (Usaku NAKAMURA) almost 4 years ago

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED

Also available in: Atom PDF