Skip Menu |

This queue is for tickets about the File-MMagic-XS CPAN distribution.

Report information
The Basics
Id: 35269
Status: new
Priority: 0/
Queue: File-MMagic-XS

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.09003
Fixed in: (no value)



Subject: Double free or corruption error under Debian Linux
When running the attached test file under Debian Linux (perl 5.8.8-12), then a memory corruption report shows up. This problem does not seem to happen under a FreeBSD 6.1 system with maintperl. Regards, Slaven *** glibc detected *** perl: double free or corruption (!prev): 0x081ac808 *** ======= Backtrace: ========= /lib/i686/cmov/libc.so.6[0xb7e61735] /lib/i686/cmov/libc.so.6(cfree+0x90)[0xb7e651a0] perl(Perl_sv_clear+0x575)[0x80cceb5] perl(Perl_sv_free+0x102)[0x80cd242] perl(Perl_pad_swipe+0x6f)[0x809cb6f] perl(Perl_op_clear+0x251)[0x808dce1] perl(Perl_op_free+0x9e)[0x809068e] perl(Perl_op_free+0x6f)[0x809065f] perl(Perl_op_free+0x6f)[0x809065f] perl(perl_destruct+0xc1)[0x806aa31] perl(main+0xc6)[0x8063706] /lib/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7e0c450] perl[0x80635d1] ======= Memory map: ======== 08048000-0814a000 r-xp 00000000 03:06 1103039 /usr/bin/perl 0814a000-0814e000 rw-p 00101000 03:06 1103039 /usr/bin/perl 0814e000-081d4000 rw-p 0814e000 00:00 0 [heap] b7900000-b7921000 rw-p b7900000 00:00 0 b7921000-b7a00000 ---p b7921000 00:00 0 b7aa1000-b7aad000 r-xp 00000000 03:06 1949966 /lib/libgcc_s.so.1 b7aad000-b7aae000 rw-p 0000b000 03:06 1949966 /lib/libgcc_s.so.1 b7abf000-b7ae0000 rw-p b7abf000 00:00 0 b7ae0000-b7bc3000 r--p 002d0000 03:06 1128563 /usr/lib/locale/locale-archive b7bc3000-b7dc3000 r--p 00000000 03:06 1128563 /usr/lib/locale/locale-archive b7dc3000-b7dc4000 rw-p b7dc3000 00:00 0 b7dc4000-b7dcd000 r-xp 00000000 03:06 2013053 /lib/i686/cmov/libcrypt-2.7.so b7dcd000-b7dcf000 rw-p 00008000 03:06 2013053 /lib/i686/cmov/libcrypt-2.7.so b7dcf000-b7df6000 rw-p b7dcf000 00:00 0 b7df6000-b7f3d000 r-xp 00000000 03:06 2013020 /lib/i686/cmov/libc-2.7.so b7f3d000-b7f3e000 r--p 00147000 03:06 2013020 /lib/i686/cmov/libc-2.7.so b7f3e000-b7f40000 rw-p 00148000 03:06 2013020 /lib/i686/cmov/libc-2.7.so b7f40000-b7f43000 rw-p b7f40000 00:00 0 b7f43000-b7f57000 r-xp 00000000 03:06 2013176 /lib/i686/cmov/libpthread-2.7.so b7f57000-b7f59000 rw-p 00013000 03:06 2013176 /lib/i686/cmov/libpthread-2.7.so b7f59000-b7f5c000 rw-p b7f59000 00:00 0 b7f5c000-b7f7f000 r-xp 00000000 03:06 2013066 /lib/i686/cmov/libm-2.7.so b7f7f000-b7f81000 rw-p 00023000 03:06 2013066 /lib/i686/cmov/libm-2.7.so b7f81000-b7f83000 r-xp 00000000 03:06 2013064 /lib/i686/cmov/libdl-2.7.so b7f83000-b7f85000 rw-p 00001000 03:06 2013064 /lib/i686/cmov/libdl-2.7.so b7f8d000-b7f95000 r-xp 00000000 03:06 1815787 /usr/local/lib/perl/5.8.8/auto/File/MMagic/XS/XS.so b7f95000-b7f96000 rw-p 00008000 03:06 1815787 /usr/local/lib/perl/5.8.8/auto/File/MMagic/XS/XS.so b7f96000-b7f98000 rw-p b7f96000 00:00 0 b7f98000-b7f99000 r-xp b7f98000 00:00 0 [vdso] b7f99000-b7fb5000 r-xp 00000000 03:06 1950480 /lib/ld-2.7.so b7fb5000-b7fb7000 rw-p 0001b000 03:06 1950480 /lib/ld-2.7.so bfbdf000-bfbf6000 rw-p bfbdf000 00:00 0 [stack]
Subject: test.pl
#!/usr/bin/perl use File::MMagic::XS; my $magic = File::MMagic::XS->new; $magic->add_file_ext('pl', 'audio/foo'); warn $magic->get_mime(__FILE__);