Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

caller reports void context for scalar eval caller frame

已關閉
#1,859 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

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

研究方向

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 內容生成。

描述

area:runtime bug

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 in t/002_must_be_list.t; actual diagnostic says foo called in non-list (void) context during the scalar eval.
  • Interpreter backend on the same checkout also reports void for 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-14962 passes 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 d5170d2d0 as 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-Context 0.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 範本
  • 閱讀貢獻指南

從這裡開始

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

fglock/PerlOnJava 的其他 Issue

查看 fglock/PerlOnJava 的全部 Issue

相似的 Issue

更多 Perl Issue

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

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