in reply to Core dump while trying to access %Lexicon in Locale::Maketext subclass

Hi,

Nice discovery :)

I get

Faulting application perl.exe, version 5.18.2.2, faulting module perl518.dll, version 0.0.0.0, fault address 0x000d74da.

panic: gv name too long (4294967294) at ...strawberry-perl-5.18.2.2-32bit-portable/perl/lib/Data/Dumper.pm line 587.

which comes from Perl_gv_name_set

If I use

print Dumper( \%{ref($lh)."\::Lexicon" } );
then there is no panic

If I do print keys %Hello::Locale::ru::Lexicon ; it only returns message_code2, but a second time it returns message_code1message_code2

Since lexicon uses perltie/tiehash, I suspect its related to Bug #128588 for perl5: Tied hash magic ignored in references the first time 'round

Replies are listed 'Best First'.
Re^2: Core dump while trying to access %Lexicon in Locale::Maketext subclass
by alexander_lunev (Pilgrim) on Jun 16, 2017 at 06:40 UTC
    Thanks! I'll rewrite the code with \%{ ref($lh)."\::Lexicon" }.