X-Spam-Check-By: sourceware.org Message-ID: <43A94EA6.1040907@equate.dyndns.org> Date: Wed, 21 Dec 2005 12:46:30 +0000 From: Chris Taylor Reply-To: cygwin AT cygwin DOT com User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: tar with switches leads to stack dump References: <000001c60608$8ab30190$500210ac AT tcgp DOT dundee DOT ac DOT uk> <20051221113723 DOT GD28865 AT calimero DOT vinschen DOT de> In-Reply-To: <20051221113723.GD28865@calimero.vinschen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Corinna Vinschen wrote: > On Dec 21 08:28, fergus wrote: > >>I'm trying to append several new files to an existing zipped .tar.gz and >>maintain the zipped format. I find that >> tar -vrzf exist.tar.gz *.new >>leads to an >> Aborted (core dumped) >>message. More than likely my syntax is faulty, but maybe not. (Creating a >>.tar.gz from scratch using "tar -vczf .." works fine. Appending new files to >>an existing .tar using "tar -vrf exist.tar *.new" works fine.) This happens >>with 1.5.18 and 1.5.19s 20051220. Please can anybody put me right or confirm >>the core dump? Thank you. >>Fergus > > > Confirmed. Looks like tar is calling abort() at one point, without > printing any error message beforehand. > > > Corinna > Just an FYI, this fails under linux as well, though doesn't core dump. At a guess, it's probably because tar isn't intelligent enough to gunzip the tarfile before attempting to append (or is specifically set not to - which makes sense).. If you gunzip the file, use tar rvf archive.tar new.files, then gzip it, it works fine.. So while the coredump is interesting, this isn't really a variance in standard behaviour for tar AFAICS. Of course, a more informative message than "Aborted" would be nice, but hey, we can't have everything ;) Chris -- Spinning complacently in the darkness, covered and blinded by a blanket of little lives, false security has lulled the madness of this world into a slumber. Wake up! An eye is upon you, staring straight down and keenly through, seeing all that you are and everything that you will never be. Yes, an eye is upon you, an eye ready to blink. So face forward, with arms wide open and mind reeling. Your future has arrived... Are you ready to go? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/