perl-File-LibMagic test failed valgrind output: ok 11 - MIME t/samples/foo.c - custom magic file ==5168== Invalid write of size 8 ==5168== at 0x7394D23: ??? (in /usr/lib64/libmagic.so.1.0.0) ==5168== by 0x7395B84: ??? (in /usr/lib64/libmagic.so.1.0.0) ==5168== by 0x73972B4: ??? (in /usr/lib64/libmagic.so.1.0.0) ==5168== by 0x7397EDE: file_apprentice (in /usr/lib64/libmagic.so.1.0.0) ==5168== by 0x718B862: XS_File__LibMagic_magic_load (LibMagic.xs:129) ==5168== by 0x4EF4355: Perl_pp_entersub (in /usr/lib64/libperl.so.5.18.1) ==5168== by 0x4EEC78D: Perl_runops_standard (in /usr/lib64/libperl.so.5.18.1) ==5168== by 0x4E83CBF: perl_run (in /usr/lib64/libperl.so.5.18.1) ==5168== by 0x400D28: ??? (in /usr/bin/perl) ==5168== by 0x617BD64: (below main) (in /usr/lib64/libc-2.18.so) ==5168== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==5168== ==5168== ==5168== Process terminating with default action of signal 11 (SIGSEGV) ==5168== Access not within mapped region at address 0x0 ==5168== at 0x7394D23: ??? (in /usr/lib64/libmagic.so.1.0.0) ==5168== by 0x7395B84: ??? (in /usr/lib64/libmagic.so.1.0.0) ==5168== by 0x73972B4: ??? (in /usr/lib64/libmagic.so.1.0.0) ==5168== by 0x7397EDE: file_apprentice (in /usr/lib64/libmagic.so.1.0.0) ==5168== by 0x718B862: XS_File__LibMagic_magic_load (LibMagic.xs:129) ==5168== by 0x4EF4355: Perl_pp_entersub (in /usr/lib64/libperl.so.5.18.1) ==5168== by 0x4EEC78D: Perl_runops_standard (in /usr/lib64/libperl.so.5.18.1) ==5168== by 0x4E83CBF: perl_run (in /usr/lib64/libperl.so.5.18.1) ==5168== by 0x400D28: ??? (in /usr/bin/perl) ==5168== by 0x617BD64: (below main) (in /usr/lib64/libc-2.18.so) Debian have already found the source of the problem (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708281). It failed due to multiple magic_load() w/ non-default database (http://bugs.gw.com/view.php?id=248). The bug is fixed by upstream.
Fixed in file-5.14-13.