Bug 1001689 - multiple magic_load() w/ non-default database segfault
Summary: multiple magic_load() w/ non-default database segfault
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: file
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kaluža
QA Contact: Fedora Extras Quality Assurance
URL: http://bugs.gw.com/view.php?id=248
Whiteboard:
Depends On:
Blocks: 985933 992602
TreeView+ depends on / blocked
 
Reported: 2013-08-27 14:09 UTC by Jitka Plesnikova
Modified: 2013-09-09 05:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-09 05:29:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jitka Plesnikova 2013-08-27 14:09:05 UTC
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.

Comment 1 Jan Kaluža 2013-09-09 05:29:26 UTC
Fixed in file-5.14-13.


Note You need to log in before you can comment on or make changes to this bug.