Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finalizer and NoGC #95

Open
wks opened this issue Sep 12, 2024 · 0 comments
Open

Finalizer and NoGC #95

wks opened this issue Sep 12, 2024 · 0 comments

Comments

@wks
Copy link

wks commented Sep 12, 2024

The following error happens during https://github.com/mmtk/ruby/actions/runs/10820356413/job/30039916607, running NoGC.

  [328/915] 17345=test_json_tree
  /home/runner/work/ruby/ruby/src/tool/lib/test/unit/parallel.rb: warning: Exception in finalizer #<Tempfile::FinalizerManager:0x000002000230d740 @open_files={}, @path="/tmp/rubytest.2ihv13/TestRDocParserRuby20240912-17349-rn914l", @pid=17349, @unlinked=true>
  /home/runner/work/ruby/ruby/src/lib/tempfile.rb:387:in 'IO#close': SIGTERM (SignalException)
  	from /home/runner/work/ruby/ruby/src/lib/tempfile.rb:387:in 'Tempfile::FinalizerManager#call'

There may be some subtle interaction between TempFile (which uses ObjectSpace::define_finalizer) that is not handled properly in NoGC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant