Project

General

Profile

Actions

Bug #21259

closed

The Prism compiler wrongly creates a line number of zero

Bug #21259: The Prism compiler wrongly creates a line number of zero

Added by mame (Yusuke Endoh) 7 months ago. Updated 4 months ago.

Status:
Closed
Assignee:
Target version:
-
[ruby-core:121605]

Description

test.rb

TracePoint.new(:line) do |tp| p tp end.enable load "./target.rb" 

target.rb

if true..true end 
$ ~/work/ruby/local/bin/ruby --parser=prism test.rb #<TracePoint:line test.rb:5> #<TracePoint:line /tmp/reproduce-simplecov-ruby34-bug/target.rb:0> # <=== This lineno should be 1 $ ~/work/ruby/local/bin/ruby --parser=parse.y test.rb #<TracePoint:line test.rb:5> #<TracePoint:line /tmp/reproduce-simplecov-ruby34-bug/target.rb:1> 

Related issues 1 (0 open1 closed)

Updated by mame (Yusuke Endoh) 7 months ago Actions #1

  • Related to Bug #21220: Memory corruption in update_line_coverage() [write at index -1] added

Updated by tenderlovemaking (Aaron Patterson) 4 months ago Actions #2 [ruby-core:122810]

  • Status changed from Assigned to Closed
  • Backport changed from 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN to 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: REQUIRED

Fixed in 148db9c80f11af1780f0f3685201f28de8f6b47a

Updated by k0kubun (Takashi Kokubun) 4 months ago Actions #3 [ruby-core:122834]

  • Backport changed from 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: REQUIRED to 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: DONE

ruby_3_4 8b505a286080fead52a603fcd2761c2d6b3e3aec merged revision(s) [ruby-core:121605]" href="/projects/ruby-master/repository/git/revisions/148db9c80f11af1780f0f3685201f28de8f6b47a">148db9c80f11af1780f0f3685201f28de8f6b47a.

Actions

Also available in: PDF Atom