Project

General

Profile

Bug #11851

rb_profile_frames() causes segmentation fault

Added by rhenium (Kazuki Yamaguchi) over 4 years ago. Updated over 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

#1

Updated by nobu (Nobuyoshi Nakada) over 4 years ago

Could you show reproducible code or add a test?

Updated by rhenium (Kazuki Yamaguchi) over 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) over 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) over 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