Project

General

Profile

Actions

Bug #11851

closed

rb_profile_frames() causes segmentation fault

Added by rhenium (Kazuki Yamaguchi) over 8 years ago. Updated about 8 years ago.

Status:
Closed
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

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

Could you show reproducible code or add a test?

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

Actions #3

Updated by nobu (Nobuyoshi Nakada) over 8 years ago

  • Status changed from Open to Closed

Applied in changeset r53225.


vm_backtrace.c: ignore ifunc frames

Updated by usa (Usaku NAKAMURA) about 8 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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0