$ ln -s test_1.zip test.zip $ gdb perl (gdb) run test.pl Starting program: /usr/bin/perl test.pl [Thread debugging using libthread_db enabled] Processing XML: ltupl_hoteldetails. Out of memory! *** glibc detected *** /usr/bin/perl: free(): invalid next size (normal): 0x08555040 *** ======= Backtrace: ========= /lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x6aac1)[0xb7e9bac1] /lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x6c328)[0xb7e9d328] /lib/i386-linux-gnu/i686/cmov/libc.so.6(cfree+0x6d)[0xb7ea03dd] /usr/lib/perl5/auto/XML/Parser/Expat/Expat.so(+0xc64b)[0xb7acf64b] ======= Memory map: ======== 08048000-081a5000 r-xp 00000000 08:02 1367075 /usr/bin/perl 081a5000-081a7000 rwxp 0015c000 08:02 1367075 /usr/bin/perl 081a7000-08586000 rwxp 00000000 00:00 0 [heap] b7900000-b7921000 rwxp 00000000 00:00 0 b7921000-b7a00000 ---p 00000000 00:00 0 b7a2b000-b7a47000 r-xp 00000000 08:02 25501410 /lib/i386-linux-gnu/libgcc_s.so.1 b7a47000-b7a48000 rwxp 0001b000 08:02 25501410 /lib/i386-linux-gnu/libgcc_s.so.1 b7a59000-b7a6c000 r-xp 00000000 08:02 20972117 /usr/lib/libz.so.1.2.3.4 b7a6c000-b7a6d000 rwxp 00013000 08:02 20972117 /usr/lib/libz.so.1.2.3.4 b7a74000-b7a7d000 r-xp 00000000 08:02 21252556 /usr/lib/perl/5.12.4/auto/List/Util/Util.so b7a7d000-b7a7e000 rwxp 00008000 08:02 21252556 /usr/lib/perl/5.12.4/auto/List/Util/Util.so b7a7e000-b7a98000 r-xp 00000000 08:02 21018843 /usr/lib/perl5/auto/Compress/Raw/Zlib/Zlib.so b7a98000-b7a99000 rwxp 00019000 08:02 21018843 /usr/lib/perl5/auto/Compress/Raw/Zlib/Zlib.so b7a99000-b7abf000 r-xp 00000000 08:02 25506669 /lib/i386-linux-gnu/libexpat.so.1.6.0 b7abf000-b7ac0000 ---p 00026000 08:02 25506669 /lib/i386-linux-gnu/libexpat.so.1.6.0 b7ac0000-b7ac2000 r-xp 00026000 08:02 25506669 /lib/i386-linux-gnu/libexpat.so.1.6.0 b7ac2000-b7ac3000 rwxp 00028000 08:02 25506669 /lib/i386-linux-gnu/libexpat.so.1.6.0 b7ac3000-b7add000 r-xp 00000000 08:02 4278609 /usr/lib/perl5/auto/XML/Parser/Expat/Expat.so b7add000-b7ade000 rwxp 00019000 08:02 4278609 /usr/lib/perl5/auto/XML/Parser/Expat/Expat.so b7ade000-b7adf000 r-xp 011a5000 08:02 1420342 /usr/lib/locale/locale-archive b7adf000-b7bfe000 r-xp 0019b000 08:02 1420342 /usr/lib/locale/locale-archive b7bfe000-b7dfe000 r-xp 00000000 08:02 1420342 /usr/lib/locale/locale-archive b7dfe000-b7dff000 rwxp 00000000 00:00 0 b7dff000-b7e08000 r-xp 00000000 08:02 17095076 /lib/i386-linux-gnu/i686/cmov/libcrypt-2.13.so b7e08000-b7e09000 r-xp 00008000 08:02 17095076 /lib/i386-linux-gnu/i686/cmov/libcrypt-2.13.so b7e09000-b7e0a000 rwxp 00009000 08:02 17095076 /lib/i386-linux-gnu/i686/cmov/libcrypt-2.13.so b7e0a000-b7e31000 rwxp 00000000 00:00 0 b7e31000-b7f84000 r-xp 00000000 08:02 17140622 /lib/i386-linux-gnu/i686/cmov/libc-2.13.so b7f84000-b7f85000 ---p 00153000 08:02 17140622 /lib/i386-linux-gnu/i686/cmov/libc-2.13.so b7f85000-b7f87000 r-xp 00153000 08:02 17140622 /lib/i386-linux-gnu/i686/cmov/libc-2.13.so b7f87000-b7f88000 rwxp 00155000 08:02 17140622 /lib/i386-linux-gnu/i686/cmov/libc-2.13.so b7f88000-b7f8b000 rwxp 00000000 00:00 0 b7f8b000-b7fa0000 r-xp 00000000 08:02 17095074 /lib/i386-linux-gnu/i686/cmov/libpthread-2.13.so b7fa0000-b7fa1000 r-xp 00014000 08:02 17095074 /lib/i386-linux-gnu/i686/cmov/libpthread-2.13.so b7fa1000-b7fa2000 rwxp 00015000 08:02 17095074 /lib/i386-linux-gnu/i686/cmov/libpthread-2.13.so b7fa2000-b7fa5000 rwxp 00000000 00:00 0 b7fa5000-b7fc9000 r-xp 00000000 08:02 17140617 /lib/i386-linux-gnu/i686/cmov/libm-2.13.so b7fc9000-b7fca000 r-xp 00023000 08:02 17140617 /lib/i386-linux-gnu/i686/cmov/libm-2.13.so b7fca000-b7fcb000 rwxp 00024000 08:02 17140617 /lib/i386-linux-gnu/i686/cmov/libm-2.13.so b7fcb000-b7fcd000 r-xp 00000000 08:02 17095077 /lib/i386-linux-gnu/i686/cmov/libdl-2.13.so b7fcd000-b7fce000 r-xp 00001000 08:02 17095077 /lib/i386-linux-gnu/i686/cmov/libdl-2.13.so b7fce000-b7fcf000 rwxp 00002000 08:02 17095077 /lib/i386-linux-gnu/i686/cmov/libdl-2.13.so b7fd3000-b7fd6000 r-xp 00000000 08:02 8457622 /usr/lib/perl/5.12.4/auto/Fcntl/Fcntl.so b7fd6000-b7fd7000 rwxp 00002000 08:02 8457622 /usr/lib/perl/5.12.4/auto/Fcntl/Fcntl.so b7fd7000-b7fdb000 r-xp 00000000 08:02 12648551 /usr/lib/perl/5.12.4/auto/IO/IO.so b7fdb000-b7fdc000 rwxp 00004000 08:02 12648551 /usr/lib/perl/5.12.4/auto/IO/IO.so b7fdc000-b7fdf000 r-xp 00000000 08:02 21252555 /usr/lib/perl/5.12.4/auto/Cwd/Cwd.so b7fdf000-b7fe0000 rwxp 00002000 08:02 21252555 /usr/lib/perl/5.12.4/auto/Cwd/Cwd.so b7fe0000-b7fe2000 rwxp 00000000 00:00 0 b7fe2000-b7fe3000 r-xp 00000000 00:00 0 [vdso] b7fe3000-b7ffe000 r-xp 00000000 08:02 25540569 /lib/i386-linux-gnu/ld-2.13.so b7ffe000-b7fff000 r-xp 0001b000 08:02 25540569 /lib/i386-linux-gnu/ld-2.13.so b7fff000-b8000000 rwxp 0001c000 08:02 25540569 /lib/i386-linux-gnu/ld-2.13.so bffeb000-c0000000 rw-p 00000000 00:00 0 [stack] Program received signal SIGABRT, Aborted. 0xb7fe2424 in __kernel_vsyscall () (gdb) bt #0 0xb7fe2424 in __kernel_vsyscall () #1 0xb7e5b911 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 #2 0xb7e5ed42 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 #3 0xb7e919d5 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 #4 0xb7e9bac1 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 #5 0xb7e9d328 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 #6 0xb7ea03dd in free () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 #7 0xb7acf64b in ?? () from /usr/lib/perl5/auto/XML/Parser/Expat/Expat.so #8 0xb7aa385d in XML_ParserFree () from /lib/i386-linux-gnu/libexpat.so.1 #9 0xb7ad7017 in XS_XML__Parser__Expat_ParserFree () from /usr/lib/perl5/auto/XML/Parser/Expat/Expat.so #10 0x080e3c63 in Perl_pp_entersub () #11 0x080db232 in Perl_runops_standard () #12 0x0807b6ed in Perl_call_sv () #13 0x080e94cf in Perl_sv_clear () #14 0x080e9cbb in Perl_sv_free2 () #15 0x080e51e1 in ?? () #16 0x080e56b7 in Perl_sv_clean_objs () #17 0x0807d719 in perl_destruct () #18 0x0806576b in main () (gdb) $ ln -sf test_2.zip test.zip $ gdb perl (gdb) run test.pl Starting program: /usr/bin/perl test.pl [Thread debugging using libthread_db enabled] Processing XML: ltupl_hoteldetails. Program received signal SIGSEGV, Segmentation fault. 0xb7ea5486 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 (gdb) bt #0 0xb7ea5486 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 #1 0x00000000 in ?? () $ dpkg -l | egrep 'ii (perl|libxml|libarchive|libglib|libc6)' ii perl 5.12.4-2 Larry Wall's Practical Extraction and Report Language ii libxml++2.6-2 2.34.1-1 C++ interface to the GNOME XML library (libxml2) ii libxml-dom-perl 1.44-1 Perl module for building DOM Level 1 compliant doc structures ii libxml-parser-perl 2.41-1 Perl module for parsing XML files ii libxml-perl 0.08-2 Perl modules for working with XML ii libxml2 2.7.8.dfsg-7 GNOME XML library ii libarchive-zip-perl 1.30-4 Perl module for manipulation of ZIP archives ii libglib2.0-0 2.32.0-4 GLib library of C routines ii libc6 2.13-13 Embedded GNU C Library: Shared libraries