Skip Menu |

This queue is for tickets about the Archive-Tar CPAN distribution.

Report information
The Basics
Id: 104087
Status: new
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: khandebharad.sushant [...] gmail.com
Cc:
AdminCc:

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



Subject: Archive::Tar giving Out Of Memory error on 32 bit perl
I am trying to use Archive::Tar to extract one .tar.gz file. It is giving out of memory error. The issue occurs only on 32 bit Perl. I tried with following versions- 1. 32 bit ActiveState Perl v5.20.2 => Out Of Memory 2. 64 bit ActiveState Perl v5.20.2 => Completes successfully. 3. 32 bit Strawberry Perl v5.20.2 => Out of Memory 4. 64 bit Strawberry Perl v5.20.2 => Completes successfully. 5. 32 bit Perl built from source code using VS2010 => Out of Memory So, it looks like it is giving out of memory error only on 32 bit Perl. Size of the tar.gz file 31 MB without extraction. And after extraction size of its contents is 289 MB. I am using 'Archive::Tar->new()' and there it is giving error. I have attached my sample program(Arhive_Tar_OOM.pl) and output of executing this program on 32 and 64 bit perl of ActiveState and Strawberry distribution. I also tried with Archive::Tar version 1.96 and 2.04 but for both version facing same issue. I need to use Archive::Tar on 32 bit Perl. Can you please take a look ?
From: khandebharad.sushant [...] gmail.com
On Wed Apr 29 04:56:00 2015, khandebharad.sushant@gmail.com wrote: Show quoted text
> I am trying to use Archive::Tar to extract one .tar.gz file. It is > giving out of memory error. The issue occurs only on 32 bit Perl. I > tried with following versions- > 1. 32 bit ActiveState Perl v5.20.2 => Out Of Memory > 2. 64 bit ActiveState Perl v5.20.2 => Completes successfully. > 3. 32 bit Strawberry Perl v5.20.2 => Out of Memory > 4. 64 bit Strawberry Perl v5.20.2 => Completes successfully. > 5. 32 bit Perl built from source code using VS2010 => Out of Memory > > So, it looks like it is giving out of memory error only on 32 bit > Perl. > > Size of the tar.gz file 31 MB without extraction. And after extraction > size of its contents is 289 MB. > > I am using 'Archive::Tar->new()' and there it is giving error. > I have attached my sample program(Arhive_Tar_OOM.pl) and output of > executing this program on 32 and 64 bit perl of ActiveState and > Strawberry distribution. > > I also tried with Archive::Tar version 1.96 and 2.04 but for both > version facing same issue. > I need to use Archive::Tar on 32 bit Perl. > > Can you please take a look ? >
From: khandebharad.sushant [...] gmail.com
Added attachment files again. I was not able to see attachment files earlier. For quick reference pasting the contents of attached file here- 1. Archive_Tar_OOM.pl- =============================================================== use Archive::Tar; my $bundle = "C:\\Archive_Tar_Example\\My_Sample.tar.gz"; my $tar_engine = Archive::Tar->new($bundle, 1); print "\nCreated Tar object."; my @filelist = $tar_engine->list_files(); if(!$tar_engine->extract(@filelist)) { print "\nError in extraction."; } else { print "\nExtracted Successfully."; } print "\nReached at end"; =============================================================== 2. Tar_Example_Result.out- =============================================================== C:\>F:\Perl_ActiveState_5.20.2_32bit\bin\perl.exe -v This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x86-multi-thread-64int (with 1 registered patch, see perl -V for more detail) Copyright 1987-2015, Larry Wall Binary build 2001 [298913] provided by ActiveState http://www.ActiveState.com Built Mar 19 2015 15:26:52 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. C:\>F:\Perl_ActiveState_5.20.2_32bit\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl Out of memory! C:\> C:\>F:\Perl_ActiveState_5.20.2_64bit\bin\perl.exe -v This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x64-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2015, Larry Wall Binary build 2001 [298913] provided by ActiveState http://www.ActiveState.com Built Mar 24 2015 12:09:44 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. C:\>F:\Perl_ActiveState_5.20.2_64bit\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl Created Tar object. Extracted Successfully. Reached at end C:\> C:\>F:\Perl_Strawberry_5.20.2.1_32bit\perl\bin\perl.exe -v This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x86-multi-thread-64int Copyright 1987-2015, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. C:\>F:\Perl_Strawberry_5.20.2.1_32bit\perl\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl Out of memory! C:\> C:\>F:\Perl_Straberry_5.20.2.1_64bit\perl\bin\perl.exe -v This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x64-multi-thread Copyright 1987-2015, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. C:\>F:\Perl_Straberry_5.20.2.1_64bit\perl\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl Created Tar object. Extracted Successfully. Reached at end C:\> ===============================================================
From: khandebharad.sushant [...] gmail.com
Added attachment files again. I was not able to see attachment files earlier. For quick reference pasting the contents of attached file here- 1. Archive_Tar_OOM.pl- =============================================================== use Archive::Tar; my $bundle = "C:\\Archive_Tar_Example\\My_Sample.tar.gz"; my $tar_engine = Archive::Tar->new($bundle, 1); print "\nCreated Tar object."; my @filelist = $tar_engine->list_files(); if(!$tar_engine->extract(@filelist)) { print "\nError in extraction."; } else { print "\nExtracted Successfully."; } print "\nReached at end"; =============================================================== 2. Tar_Example_Result.out- =============================================================== C:\>F:\Perl_ActiveState_5.20.2_32bit\bin\perl.exe -v This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x86-multi-thread-64int (with 1 registered patch, see perl -V for more detail) Copyright 1987-2015, Larry Wall Binary build 2001 [298913] provided by ActiveState http://www.ActiveState.com Built Mar 19 2015 15:26:52 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. C:\>F:\Perl_ActiveState_5.20.2_32bit\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl Out of memory! C:\> C:\>F:\Perl_ActiveState_5.20.2_64bit\bin\perl.exe -v This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x64-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2015, Larry Wall Binary build 2001 [298913] provided by ActiveState http://www.ActiveState.com Built Mar 24 2015 12:09:44 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. C:\>F:\Perl_ActiveState_5.20.2_64bit\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl Created Tar object. Extracted Successfully. Reached at end C:\> C:\>F:\Perl_Strawberry_5.20.2.1_32bit\perl\bin\perl.exe -v This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x86-multi-thread-64int Copyright 1987-2015, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. C:\>F:\Perl_Strawberry_5.20.2.1_32bit\perl\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl Out of memory! C:\> C:\>F:\Perl_Straberry_5.20.2.1_64bit\perl\bin\perl.exe -v This is perl 5, version 20, subversion 2 (v5.20.2) built for MSWin32-x64-multi-thread Copyright 1987-2015, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. C:\>F:\Perl_Straberry_5.20.2.1_64bit\perl\bin\perl.exe C:\Archive_Tar_Example\Archive_Tar_OOM.pl Created Tar object. Extracted Successfully. Reached at end C:\> ===============================================================