Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Syntax::Kamelon t/01-Kamelon.t stalls while enumerating syntaxes

Aperta
#1,370 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
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
java, perl

Direzione di ricerca

Inizia da t/01-Kamelon.t e riproduci il blocco di 30 secondi sia con il comando JVM sia con il comando dell’interprete descritti nell’issue. Confronta i percorsi raggiunti durante l’enumerazione di AvailableSyntaxes e la chiamata a GetLexer, quindi aggiungi un test di regressione mirato dopo aver identificato la causa. Il lavoro è completo quando il test termina rapidamente su entrambi i backend e la suite completa può proseguire.

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

Descrizione

area:backend area:cpan-port area:performance bug

Summary

Syntax::Kamelon v0.26 does not complete t/01-Kamelon.t under PerlOnJava. The test stalls while iterating AvailableSyntaxes and calling GetLexer for each syntax. This affects both execution backends and prevents the CPAN test harness from reaching the remaining test files.

Reproduction

Distribution: Syntax-Kamelon v0.26
CPAN run: 20260913-205737-64746
Test: t/01-Kamelon.t

From the unpacked distribution, with XML::TokeParser v0.05 available:

PERL5LIB="inc:blib/lib:blib/arch:...XML-TokeParser.../blib/lib:...XML-TokeParser.../blib/arch" timeout 30 jperl t/01-Kamelon.t

The JVM backend emits successful checks through the syntax named CubeScript and then does not complete before the 30-second bound. It exits with timeout status 124.

The interpreter backend shows the same behavior, progressing farther to Email before the same 30-second bound:

timeout 30 jperl --interpreter t/01-Kamelon.t

It also exits with timeout status 124.

The archived CPAN run stopped during make test after:

t/00-KamTest.t ....... ok

No subsequent harness summary was produced.

Oracle comparison

After installing the declared Template Toolkit v3.106 prerequisite into an isolated temporary library, system Perl completed t/01-Kamelon.t successfully. The complete system-Perl suite ran all 13 test files; its only failures were two ANSI golden-file comparisons in t/08-Format-ANSI.t, unrelated to t/01-Kamelon.t.

XML::TokeParser v0.05 is pure Perl. The C-file warning emitted by the PerlOnJava build refers to t/Bench/samples/highlight_lpc.c, a benchmark sample rather than module XS code.

Expected behavior

The test should finish promptly and report all syntax checks as it does under system Perl.

Investigation requested

Please investigate the performance or nontermination path reached while Syntax::Kamelon enumerates its syntax definitions and constructs lexers. Compare the JVM and interpreter implementations, and add a focused regression test once the root cause is identified.

Lingua principale
Perl
Stelle
64
Fork
6
Merge medio
4h 34m
PR unite (30g)
181

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.