Skip to content

[CI][Ruby][Windows] "Exception in finalizer" warnings #48776

@kou

Description

@kou

Describe the bug, including details regarding any error messages, version, and platform.

https://github.com/apache/arrow/actions/runs/20778700681/job/59670662498#step:13:95

D:/a/_temp/rubyinstaller-4.0.0-1-x64/lib/ruby/gems/4.0.0/gems/gobject-introspection-4.3.4/lib/gobject-introspection/loader.rb:715: warning: Exception in finalizer #<Tempfile::FinalizerManager:0x000001fb3c15ac00 @open_files={}, @path="D:/a/_temp/batch20260107-2120-ddy0e0.arrow", @pid=2120, @unlinked=false>

We use Tempfile in our tests. The associated file with a Tempfile will be deleted by GC. But it's failed when someone opens the associated file on Windows. We can suppress the warnings by ensure closing associated files before a Tempfile is GC-ed.

Component(s)

Continuous Integration, Ruby

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions