bug report: Archive::Tar-0.21 in perl 5.6.0 on i686 RHL6.1 
Author Message
 bug report: Archive::Tar-0.21 in perl 5.6.0 on i686 RHL6.1

I have discovered a very unusual bug in Archive-Tar-0.21 and
Compress-Zlib-1.08 under perl 5.6.0.  The test script below doesn't

not printed, or neither is printed.  Something about including *both*
the file list print statement and the hello print statement causes the
crash on the call to get_content.  I have only tried this on one
system (a RHL6.1 i686; full version info below) and have never seen
another bug like it.

Here's the command that produces the crash and the error:

> testperl test.tar

Can't call method "gzseek" on an undefined value at /usr/local/lib/perl5/site_perl/5.6.0//Archive/Tar.pm line 785.

Here's the 'testperl' script:
#!/usr/local/bin/perl -w
use Archive::Tar;
my $tarfile = shift;
my $tar = Archive::Tar->new($tarfile) or die "can't read tar file: $!";

  print "$_\n";   #comment out this line and the get_content call won't crash!


print "hello \n"; #comment out this line and the get_content call won't crash!
my $content = $tar->get_content("test");
print "$content\n";

Here's a history to make the test.tar file:
    87  15:05   echo 'world' > test
    88  15:05   tar cvf test.tar test

Very bizarre!  
John Hunter

Version info:
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
    osname=linux, osvers=2.2.12-20, archname=i686-linux
    uname='linux video.bsd.uchicago.edu 2.2.12-20 #4 wed mar 29 16:30:17 cst 2000 i686 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
    cc='gcc', optimize='-O2', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/libc-2.1.2.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at Apr 14 2000 17:51:46


Mon, 14 Oct 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Tar'ing files and changing directory in the tar file using Archive::Tar

2. Archive-Tar bug

3. Archive::Tar - tar a directory and sub directories

4. Help with a perl script to creat muliple .tar archives

5. need help with a perl script to add files to a tar archive

6. need help on archiving files using perl and tar

7. Perl and extracting multiple tar archives.

8. BUG REPORT: bug with subroutines an

9. Archive::Tar v0.07 is out

10. Archive::Tar module for win32

11. piping Archive::Tar and Compress::Zlib::memGzip together.

12. New version of Archive::Tar (0.06) available


Powered by phpBB® Forum Software