CPAN: ORLite-Migrate 1.07 fails when IPC::Run3 spools input via File::Temp

未關閉
#2,023 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
45/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
perl
領域
backend

研究方向

Start with t/03_trivial.t and reproduce the failure on both JVM and interpreter backends using the archived CPAN run details. Trace how File::Temp::tempfile handles temporary filenames and IO handles in PerlOnJava, then compare that behavior with system Perl. Done means the migration test completes successfully on both backends while the full ORLite-Migrate test suite still passes.

由索引模型根據 Issue 內容生成。

描述

area:backend area:io area:runtime bug

Summary

The upstream ORLite-Migrate 1.07 test suite fails on PerlOnJava when a migration patch is launched through IPC::Run3. IPC::Run3 tries to spool scalar input through File::Temp::tempfile; PerlOnJava reports an undefined temporary filename, then fails to remove the resulting empty path. The migration subprocess exits with status 255 and ORLite::Migrate aborts.

This is reproducible on both the JVM and interpreter backends. The same unmodified distribution and complete test suite pass under system Perl, so this is a PerlOnJava compatibility failure rather than an upstream test or setup failure.

Evidence

  • Distribution: ORLite-Migrate 1.07; target recorded as ORLite::Migrate::Perl.
  • CPAN tester run: 20261109-091152-39587.
  • System Perl oracle: Perl 5.42.2; all 3 test files and 10 tests pass.
  • PerlOnJava: 5.44.1; t/01_compile.t and t/02_main.t pass, while t/03_trivial.t exits early after its first assertion (4 planned). The failing test reproduces on both JVM and interpreter backends.
  • Failure path: ORLite::Migrate passes migration input to IPC::Run3::run3; IPC::Run3 reaches _spool_data_to_child and calls tempfile. PerlOnJava warns about an uninitialized $fname in File::Temp, reports that removing file '' failed, and then reports Migration patch migrate-1.pl failed, database in unknown state.

Expected behavior

IPC::Run3 should receive a usable temporary file handle for the scalar input, pass the database filename to the migration subprocess, and allow the migration to complete as it does under system Perl.

Related work

Related to #1649, which tracks Perl ownership and resource-lifetime semantics. This CPAN case exercises a temporary IO handle, but the specific File::Temp failure has not yet been proven to share #1649's root cause. Please use it as an acceptance case when assessing that work.

Investigation notes

The CPAN run installed and tested the target's declared Perl dependencies. The failure is in temporary input spooling before the migration script can complete; the evidence does not point to SQLite behavior. The archived run and stable test name are included above so this report does not depend on local log paths.

主要語言
Perl
星號
67
分支
8
平均合併
6 小時 14 分鐘
30 天內合併 PR
143

環境準備

  • 提供 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

fglock/PerlOnJava 的其他 Issue

查看 fglock/PerlOnJava 的全部 Issue

相似的 Issue

更多 Perl Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。