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

Also available in: Atom PDF

Like0
Like0Like0Like0