Class::Throwable interpreter reports source line one too late

Aperta
#2,042 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
perl
Ambito
compilers

Direzione di ricerca

Start with assertion 29 in the Class::Throwable 0.13 interpreter test and compare its source-line result under system Perl and the PerlOnJava interpreter. Trace which eval/caller frame accounts for the 107-versus-108 difference, using the context in #1548 and #1945. Add a project-owned regression and confirm the focused test on both PerlOnJava backends.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

The Class::Throwable 0.13 interpreter test has one remaining source-line mismatch in assertion 29: PerlOnJava reports line 108, while system Perl expects line 107.

Evidence

  • Reported during the work tracked by #1548.
  • System Perl focused regression passes.
  • The JVM Class::Throwable 0.13 run passed 30/30.
  • The interpreter run still differed at assertion 29 (actual 108, expected 107).
  • PR #1945 separately fixed eval-frame caller()[4] behavior; this one-line source-location discrepancy remained afterward.
  • The caller metadata work in #1548 was merged in #2036, but this mismatch is a separate follow-up.

Expected behavior

The interpreter backend should report the same source line as standard Perl for the assertion 29 stack/source-location case (107 rather than 108).

Next steps

Reproduce the assertion under system Perl and PerlOnJava interpreter, identify which eval/caller frame contributes the off-by-one line, and add a project-owned regression validated on standard Perl before changing runtime behavior. Confirm the focused test on both PerlOnJava backends after the fix.

Related: #1548 (closed after the broader caller metadata fix in #2036); #1945 (eval-frame caller()[4] fix).

Lingua principale
Perl
Stelle
67
Fork
8
Merge medio
5h 12m
PR unite (30g)
131

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fglock/PerlOnJava

Tutte le issue di fglock/PerlOnJava

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.