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

Aberta
#2,000 4 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
38/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
java, perl
Domínio
backend, testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Perl
Estrelas
67
Forks
8
Merge médio
4h 36min
PRs com merge (30d)
123

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de fglock/PerlOnJava

Todas as issues de fglock/PerlOnJava

Issues semelhantes

Mais issues de Perl

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.