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

Ouverte
#2,000 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
38/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
java, perl
Domaine
backend, testing

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Perl
Étoiles
67
Forks
8
Merge moyen
4 h 36 min
PR mergées (30 j)
123

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de fglock/PerlOnJava

Toutes les issues de fglock/PerlOnJava

Issues similaires

Plus d'issues Perl

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.