Fix List::Util::PP fallback failures in List::Util::MaybeXS

Aperta
#2,000 4 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
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, perl
Ambito
backend, testing

Direzione di ricerca

Start with the listed failing tests (t/first.t, t/reduce.t, t/pair.t, t/sum.t, t/product.t, t/uniqnum.t, t/uniqnum-more.t, t/reductions.t, and t/uniq.t) and reproduce them on the JVM and interpreter. Add Perl-validated regression coverage for each fixed behavior and retain the unfixed-parent evidence. Coordinate refcount and destruction cases with #1649; done means independent fixes pass and the full distribution suite is rerun on both backends.

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

Descrizione

area:cpan-port area:runtime bug

Summary

The pure-Perl fallback exercised by List::Util::MaybeXS 1.500015 diverges from standard Perl on both PerlOnJava backends. CPAN run 20261109-091152-39587 reports 13 failed subtests across 9 of 24 test programs; t/uniqnum.t and t/uniqnum-more.t also terminate before producing TAP.

Evidence

  • System Perl 5.42.2: all 24 test programs pass (1,189 tests).
  • PerlOnJava 5.44.1, source commit 43aaefaa9: JVM and interpreter both reproduce the failure set.
  • Environment: macOS arm64, Temurin Java 24.0.2.

Stable failing tests include:

  • t/first.t, t/reduce.t: return from callbacks does not produce the expected result.
  • t/pair.t: scalar pairgrep returns 4 where the expected matching-pair count is 2.
  • t/sum.t, t/product.t: combining Math::BigInt with built-in integers produces incorrect values.
  • t/uniqnum.t, t/uniqnum-more.t: List::Util::PP calls missing B::SVf_IVisUV and aborts.
  • t/first.t, t/reduce.t, t/reductions.t, t/uniq.t: refcount/destruction assertions fail; these ownership-path failures overlap #1649 and should be coordinated with that work.

Acceptance

Add Perl-validated project regression coverage for each fixed behavior, retain the unfixed-parent evidence, and verify the affected cases on JVM and interpreter. Rerun the complete distribution suite after the independent fixes and coordinate the ownership-dependent cases with #1649 before claiming full suite parity.

Lingua principale
Perl
Stelle
67
Fork
8
Merge medio
4h 36m
PR unite (30g)
123

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.