Subject: | Segmentation faults possible |
t/06_compat.t sometimes fails, obviously because of a segmentation fault. See
http://matrix.cpantesters.org/?dist=Text-ClearSilver%200.10.5.4
for an overview of fail/pass reports.
valgrind also shows a problem:
$ valgrind perl5.22.1-RC1 -Mblib t/06_compat.t
...
ok 27
==5986== Invalid read of size 8
==5986== at 0x68CED38: hdf_destroy (in /tmpfs/.cpan-build/2015111118/Text-ClearSilver-0.10.5.4-J_o0mv/blib/arch/auto/Text/ClearSilver/ClearSilver.so)
==5986== by 0x68C1D2F: XS_Text__ClearSilver__HDF_DESTROY (in /tmpfs/.cpan-build/2015111118/Text-ClearSilver-0.10.5.4-J_o0mv/blib/arch/auto/Text/ClearSilver/ClearSilver.so)
==5986== by 0x4B5D77: Perl_pp_entersub (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x44003D: Perl_call_sv (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4BA624: S_curse (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4BAEA6: Perl_sv_clear (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4BB138: Perl_sv_free2 (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4E26CF: Perl_leave_scope (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4AFAE4: Perl_pp_unstack (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4AF0A2: Perl_runops_standard (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x44639F: perl_run (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x424304: main (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== Address 0x6c44298 is 40 bytes inside a block of size 112 free'd
==5986== at 0x4C27D4E: free (vg_replace_malloc.c:427)
==5986== by 0x68CE52D: _dealloc_hdf (in /tmpfs/.cpan-build/2015111118/Text-ClearSilver-0.10.5.4-J_o0mv/blib/arch/auto/Text/ClearSilver/ClearSilver.so)
==5986== by 0x68CE4C9: _dealloc_hdf (in /tmpfs/.cpan-build/2015111118/Text-ClearSilver-0.10.5.4-J_o0mv/blib/arch/auto/Text/ClearSilver/ClearSilver.so)
==5986== by 0x68CE4C9: _dealloc_hdf (in /tmpfs/.cpan-build/2015111118/Text-ClearSilver-0.10.5.4-J_o0mv/blib/arch/auto/Text/ClearSilver/ClearSilver.so)
==5986== by 0x68CE4C9: _dealloc_hdf (in /tmpfs/.cpan-build/2015111118/Text-ClearSilver-0.10.5.4-J_o0mv/blib/arch/auto/Text/ClearSilver/ClearSilver.so)
==5986== by 0x68C1D2F: XS_Text__ClearSilver__HDF_DESTROY (in /tmpfs/.cpan-build/2015111118/Text-ClearSilver-0.10.5.4-J_o0mv/blib/arch/auto/Text/ClearSilver/ClearSilver.so)
==5986== by 0x4B5D77: Perl_pp_entersub (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x44003D: Perl_call_sv (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4BA624: S_curse (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4BAEA6: Perl_sv_clear (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4BB138: Perl_sv_free2 (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986== by 0x4E0B3C: Perl_free_tmps (in /bbbike/perl-5.22.1-RC1/bin/perl)
==5986==
# 2
ok 28 - An object of class 'ClearSilver::HDF' isa 'ClearSilver::HDF'
...