[interpreter] Capture::Tiny fails when duplicating STDOUT during capture
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 53/100
調査の方向性
Start with the interpreter’s filehandle duplication path used by Capture::Tiny::_capture_tee → _open_std → _open, where dup mode on STDOUT fails with Bad file descriptor; issue #1165 may provide related context. First run the minimal reproducer with system Perl, the JVM backend, and the interpreter, then locate the project-owned regression tests for filehandle duplication. Done means the reproducer and Duadua’s t/50_cli.t pass under both PerlOnJava backends, with the full upstream suite passing under the interpreter.
索引モデルが issue の本文から書いたものです。
説明
Summary
Capture::Tiny output capture fails on the PerlOnJava interpreter. Duadua 0.36's t/50_cli.t uses Capture::Tiny and exits before completing its assertions when run with the interpreter. The same test passes under system Perl and the PerlOnJava JVM backend.
This was found while investigating CPAN random run 20261109-091152-39587. That run's archived default-backend log ends after t/15_reparse.t without a harness summary, so its Unknown test outcome is inconclusive and is not evidence for this interpreter failure. The full Duadua suite passes under system Perl and under the default PerlOnJava launcher/JVM backend (6 files, 490 tests).
Minimal reproducer
use Capture::Tiny qw(capture);
my ($stdout, $stderr) = capture { print "captured\n" };
die "unexpected capture: $stdout" unless $stdout eq "captured\n";
die "unexpected stderr: $stderr" if length $stderr;
print "capture ok\n";
Run the program with system Perl, the PerlOnJava JVM backend, and the PerlOnJava interpreter backend.
Results
- System Perl 5.42.2: prints
capture okand exits 0. - PerlOnJava JVM backend: prints
capture okand exits 0. - PerlOnJava interpreter backend: fails before the capture callback completes with
Bad file descriptorwhileCapture::TinyduplicatesSTDOUT. - Duadua 0.36
t/50_cli.t: passes under system Perl and the JVM backend; under the interpreter it exits with status 255 after 9 assertions, beforedone_testing.
The failing call path is Capture::Tiny::_capture_tee -> _open_std -> _open. _open_std opens STDOUT in dup mode (>&); _open reports the bad descriptor. The reproducer uses the pure-Perl Capture::Tiny 0.50 module.
Environment
- macOS 26.7.1
- OpenJDK 24.0.2 (Temurin)
- PerlOnJava launcher built from local master commit
13db7bd4a0(2026-11-05) - Duadua 0.36;
Capture::Tiny0.50
Related issue
Issue #1165 fixed duplication of a tied filehandle. This reproducer is a separate interpreter failure in Capture::Tiny's ordinary capture path; the JVM backend succeeds.
Acceptance criteria
- The minimal reproducer succeeds on both PerlOnJava backends and system Perl.
- Duadua 0.36
t/50_cli.tand the full upstream suite pass under the interpreter. - Add a focused project-owned regression test validated with system Perl first.
- 主要言語
- Perl
- スター
- 67
- フォーク
- 8
- 平均マージ
- 5時間 12分
- マージ済み PR(30日)
- 131
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fglock/PerlOnJava のほかの issue
-
area:cpan-port bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
fglock/PerlOnJava#2153 ·
メンテナーはふだん 1 日以内に返信
-
area:cpan-port area:parser bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
fglock/PerlOnJava#2137 ·
メンテナーはふだん 1 日以内に返信
-
area:backend area:cpan-port area:runtime bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
fglock/PerlOnJava#2071 ·
メンテナーはふだん 1 日以内に返信
-
area:runtime documentation enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fglock/PerlOnJava#1579 ·
メンテナーはふだん 1 日以内に返信
-
area:cpan-port bug
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
fglock/PerlOnJava#2157 ·
メンテナーはふだん 1 日以内に返信
fglock/PerlOnJava の issue をすべて見る
似ている issue
-
Dev-output directory preparation accepts file-valued lib/include paths and fails on dangling linksオープンteam-cli
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 93/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
inverse-inc/packetfence#9728 ·
メンテナーはふだん 1 日以内に返信
-
fix(char-create): show the real reason a character is refused対応中かも @baphomello が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信