Skip to content

ZJIT: Flaky TestSetTraceFunc#test_return_value_with_rescue failure #918

@XrXr

Description

@XrXr

Ex. https://github.com/ruby/ruby/actions/runs/20183400846/job/57948592849

--seed=42183

    1) Failure:
  TestSetTraceFunc#test_return_value_with_rescue [/Users/runner/work/ruby/ruby/src/test/ruby/test_settracefunc.rb:2085]:
  [Bug #13369].
  <[[:return, :f_raise, :f_raise_return]]> expected but was
  <[[:return, :f_raise, nil]]>.
  
  Finished tests in 645.727824s, 48.4074 tests/s, 10608.0221 assertions/s.
  31258 tests, 6849895 assertions, 1 failures, 0 errors, 160 skips
  
  ruby -v: ruby 4.0.0dev (2025-12-13T00:05:50Z pull/15534/merge c1873e8a84) +ZJIT dev +PRISM [arm64-darwin23]

I believe this is due to missing handling for the c_return tracepoint. It doesn't fit the mold of a typical patchpoint since it's not at a YARV instruction boundary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions