Storable portable serialization loses MLDBM values and references
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
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- perl
- Ambito
- compilers, testing-qa
Direzione di ricerca
Start by running t/storable.t from MLDBM-2.05 on both PerlOnJava backends and compare the three failures with standard Perl. Then trace the PerlOnJava Storable freeze/thaw entry points used by MLDBM's portable serializer. Done means the upstream suite passes and focused regression coverage verifies scalar, shared, and circular references without changing standard freeze/thaw behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
MLDBM-2.05 fails under PerlOnJava because the bundled Storable implementation loses values when MLDBM switches to portable serialization.
Reproduction
The upstream test t/storable.t uses:
use MLDBM qw(SDBM_File Storable);
...
$obj->DumpMeth('portable');
...
my $d = [17];
$o{g} = $d;
$d = '';
is($o{g}->[0], 17);
PerlOnJava returns undef instead of 17 for the final assertion. The same test also fails the circular/reference comparison assertions at lines 28 and 54.
Evidence
- Distribution:
MLDBM-2.05 - CPAN random tester run:
20260921-102914-97159 - Failing test:
t/storable.t - Standard Perl: PASS, 5 test programs and 19 tests
- PerlOnJava JVM backend: FAIL, 3 of 9 tests in
t/storable.t - PerlOnJava interpreter backend: FAIL, identically, 3 of 9 tests
- The target distribution is pure Perl; this is not an XS/native dependency failure.
Expected behavior
PerlOnJava's Storable::freeze/thaw implementation should preserve circular references, shared references, and scalar values when used as MLDBM's portable serializer.
Acceptance criteria
MLDBM-2.05passes the complete upstream suite on both PerlOnJava backends.t/storable.tpasses the circular/shared-reference comparisons and the final scalar retrieval assertion.- Add focused project-owned regression coverage for portable Storable serialization through MLDBM, including a value whose source reference is subsequently changed.
- Preserve standard Perl behavior for
Storable::freeze/thawandnfreeze/thaw.
- Lingua principale
- Perl
- Stelle
- 64
- Fork
- 6
- Merge medio
- 4h 29m
- PR unite (30g)
- 185
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fglock/PerlOnJava
-
area:cpan-port area:database bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
fglock/PerlOnJava#1605 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cpan-port area:database bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
fglock/PerlOnJava#1604 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fglock/PerlOnJava#1579 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cpan-port area:unicode bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
fglock/PerlOnJava#1341 ·
I maintainer di solito rispondono entro 1 giorno
-
area:runtime bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
fglock/PerlOnJava#1610 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fglock/PerlOnJava
Issue simili
-
language/en needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
kubernetes/website#57846 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
objectionary/eolang.sty#184 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
-
XS::Parse::Infix versions from 0.40 through 0.49 for Perl treat a number as an array referenceAperta1.severity: security
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno