bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] segfault on solaris 11.1 with --remove-files in current direct


From: Thorsten Hirsch
Subject: [Bug-tar] segfault on solaris 11.1 with --remove-files in current directory
Date: Tue, 29 Apr 2014 16:38:08 +0200

Hi,

I'm facing a segmentation fault with tar 1.27.1 on solaris 11.1:

$ ./call_bug.sh
[...current_dir...]/test
./
./bar
./foo
./call_bug.sh: line 5: 15341 Segmentation Fault      (core dumped) tar --remove-files --totals -czvf ../package.tar.gz .

I guess --remove-files cannot be used anymore when the input is the current directory. This issue did not occur with tar 1.15 on solaris 10.

stack trace:

(gdb) bt
#0  0x000346fc in tar_dirname () at misc.c:1008
#1  0x0003ea0c in flush_deferred_unlinks (address@hidden) at unlink.c:92
#2  0x0003eb3c in finish_deferred_unlinks () at unlink.c:147
#3  0x00025b50 in create_archive () at create.c:1410
#4  0x00069624 in main (argc=<optimized out>, argv=<optimized out>) at tar.c:2673

call_bug.sh:

mkdir test
cd test
touch foo
touch bar
tar --remove-files --totals -czvf ../package.tar.gz .

So you see, it's really simple to reproduce. There's an easy workaround, of course (don't use --remove files).

Thorsten


reply via email to

[Prev in Thread] Current Thread [Next in Thread]