Project

General

Profile

Actions

Bug #19262

closed

Segmentation fault on RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location

Added by ksss (Yuki Kurihara) almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
[ruby-core:111435]

Description

It seems that RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location gives a Segmentation fault if any argument other than Thread::Backtrace::Location is given.

repro:

$ ruby -e 'RubyVM::AbstractSyntaxTree.node_id_for_backtrace_location(1)'
Actions #1

Updated by yui-knk (Kaneko Yuichiro) almost 2 years ago

  • Status changed from Open to Closed

Applied in changeset git|979dd02e2f0a70f3f30d47c6115780d8fac6147e.


Check if the argument is Thread::Backtrace::Location object

[Bug #19262]

Actions #2

Updated by yui-knk (Kaneko Yuichiro) almost 2 years ago

  • Backport changed from 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN to 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED

Updated by naruse (Yui NARUSE) almost 2 years ago

  • Backport changed from 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED to 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: DONE

ruby_3_2 1a2447ac9925e7794a7c5aa07960ad4de08e6aca merged revision(s) 979dd02e2f0a70f3f30d47c6115780d8fac6147e.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0