caller reports void context for scalar eval caller frame
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start with the caller-frame context tracking path used by caller(1)[5] and the existing upstream regression test t/002_must_be_list.t. Reproduce the scalar and void eval cases on both JVM and interpreter backends, then trace how each backend reports the caller context. Done means the project-owned regression coverage passes with system Perl and the upstream suite passes on both PerlOnJava backends.
由索引模型根據 Issue 內容生成。
描述
Summary
caller(1)[5] reports void instead of scalar for the caller frame when a failing call is made through a scalar eval.
Reproducer
Call Call::Context::must_be_list() from foo, where try_it returns foo(), then run:
eval { try_it() };
scalar eval { try_it() };
scalar eval { () = try_it() };
The upstream Call-Context 0.05 test t/002_must_be_list.t expects the second call's exception to identify scalar context and the third call to succeed.
Evidence
- PerlOnJava
b8e16493d, JVM backend, Java 24.0.2, macOS arm64: 1/6 assertions failed int/002_must_be_list.t; actual diagnostic saysfoo called in non-list (void) contextduring the scalar eval. - Interpreter backend on the same checkout also reports
voidfor the scalar case and has an additional failure in the list case. - System Perl 5.42.2 passes all 6 assertions; the archived CPAN oracle for run
20261021-223510-14962passes all 13 tests across all three test files. - The same CPAN run records the PerlOnJava failure as 12/13 tests, with test 5 failing in
t/002_must_be_list.t. - The archived regression record identifies
d5170d2d0as the last-known-working version.
The distribution is pure Perl. This appears to be a PerlOnJava caller-frame context tracking issue; the JVM and interpreter backends are both affected.
Acceptance criteria
caller(1)[5]reports scalar for the scalar-eval call and undef for the void call.- The upstream
Call-Context0.05 test suite passes on both PerlOnJava backends. - Add permanent project-owned regression coverage and validate it with system Perl.
- 主要語言
- 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 天內回覆
-
FileHandle cannot resolve IO::Seekable::getpos while loading DBG可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉area:io area:runtime bug
難度 3/5 1-2 天 新手友好度 55/100
fglock/PerlOnJava#1873 ·
維護者通常 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 天內回覆
查看 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 天內回覆