FileHandle cannot resolve IO::Seekable::getpos while loading DBG
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the bundled FileHandle.pm, especially the IO::Seekable::getpos lookup near line 72, and trace where the IO::Seekable package is initialized. Reproduce with t/00-compile.t and t/basic.t, then add the focused FileHandle/DBG loading regression test requested in the issue. Verify the test with system Perl first and on both PerlOnJava backends, with Devel::Size available.
由索引模型根据 Issue 内容生成。
描述
Summary
DBG 0.4.1 fails to load under PerlOnJava because bundled FileHandle.pm cannot find IO::Seekable::getpos. This causes both t/00-compile.t and t/basic.t to fail before DBG's tests can run.
Reproduction
Install/run GSG/DBG-v0.4.1.tar.gz through the CPAN tester, including its normal test prerequisites. The failure was recorded in CPAN random tester run 20261022-185222-43282.
The relevant failure is:
# Failed test 'DBG.pm loaded ok'
IO::Seekable::getpos missing at jar:PERL5LIB/FileHandle.pm line 72.
Compilation failed in require
The same diagnostic occurs when t/basic.t loads DBG.pm. The archived PerlOnJava run reports 2 of 6 test programs failed and 1 of 2 executed assertions failed. The three release-only tests are skipped.
Expected: IO::Seekable::getpos is available while FileHandle.pm initializes, and DBG loads.
Actual: loading aborts because the IO::Seekable package has no registered getpos method at that point.
Environment and comparison
- Distribution:
DBG0.4.1 (GSG/DBG-v0.4.1.tar.gz) - PerlOnJava: JVM backend via the CPAN tester; the archived log does not record its source commit. Interpreter backend: not tested.
- Java: OpenJDK 24.0.2, aarch64
- System Perl: 5.42.2
- System Perl
t/basic.t: passes after building the exactDevel::Size0.87 prerequisite locally. - Full system-Perl suite: not confirmed.
t/00-compile.tcould not open DBG's temporary log file in the sandbox (Operation not permitted), so that result is an environment/setup failure rather than evidence of a DBG failure.
The XS prerequisite Devel::Size was missing its native object in the PerlOnJava CPAN build, but the reported failure occurs independently at IO::Seekable::getpos during module loading. The failure points to PerlOnJava's bundled IO module initialization/method availability.
Related issues checked
- #1782 covers
UNIVERSAL::isaignoring theIOparent for IO references; it is closed and describes a different behavior. - #1216 covers
Template::Likefilehandle input and scalar output; it is unrelated.
Acceptance criteria
FileHandle.pmcan resolveIO::Seekable::getposwhen loading on both PerlOnJava backends.- Add a focused project-owned regression test for loading
FileHandle/DBGand verify it with system Perl first. - The
DBG0.4.1 upstream test suite passes on both PerlOnJava backends when its prerequisites are available.
- 主要语言
- Perl
- 星标
- 64
- 派生
- 8
- 平均合并
- 5 小时 47 分钟
- 30 天内合并 PR
- 197
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fglock/PerlOnJava 的其他 Issue
-
area:runtime documentation enhancement
难度 2/5 1-3 小时 新手友好度 72/100
fglock/PerlOnJava#1579 ·
维护者通常 1 天内回复
-
perf: achieve measured 1:1 standard Perl throughput after #1850可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:performance enhancement
难度 5/5 一周以上 新手友好度 20/100
fglock/PerlOnJava#1863 · 1 条评论 ·
维护者通常 1 天内回复
-
area:memory area:performance area:runtime bug
难度 4/5 3-5 天 新手友好度 52/100
fglock/PerlOnJava#1860 · 2 条评论 ·
维护者通常 1 天内回复
-
area:cpan-port area:runtime bug
难度 3/5 1-2 天 新手友好度 56/100
fglock/PerlOnJava#1851 ·
维护者通常 1 天内回复
-
area:performance enhancement
难度 5/5 一周以上 新手友好度 25/100
fglock/PerlOnJava#1846 · 1 条评论 ·
维护者通常 1 天内回复
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
observablt-ci
难度 2/5 1-3 小时 新手友好度 86/100
elastic/golang-crossbuild#840 ·
维护者通常 1 天内回复
-
Sync playback crashes repeatedly in a sync group (v9.1.1)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
LMS-Community/slimserver#1701 · 6 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
RotherOSS/otobo#6286 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
fix(api): API v3 Product Read ignores request language (lc) for sample products and image URLs可能已有人在做 @muntasir-396 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
openfoodfacts/openfoodfacts-server#15042 · 1 条评论 ·
维护者通常 1 天内回复