Hi, all.

Seems a new snapshot file format resulted into a crash of incremental
tar.  Below is a test script which produces segfault on at least 2 i386
machines I tried it on (kernel and linux distro don't make sense, those
machines are SLES 9 and FC 5):

=cut
#!/bin/sh

TESTDIR=test-sna
TAR=/home/tigra/tar-1.15.91-20060523/src/tar

rm -rf $TESTDIR
mkdir $TESTDIR
cd $TESTDIR

mkdir -p a/b

for i in `seq 1 142`; do
        touch a/b/`printf "one_31_chars_long_file_name_%03d" $i`
done

$TAR cf a0.tar -g a.sna a
mv a/b a/c
$TAR cf a1.tar -g a.sna a
=cut

The file name doesn't make big sense.  Initially I tried 600 files with
names "fileXXX".  I suppose the sum of file names lengths should be
slightly more than 4K to trigger the crash.



-- 
Regards,
Sergey



_______________________________________________
Bug-tar mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-tar

Reply via email to