public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Wolf Geldmacher <wolf.geldmacher@abacus.ch>
To: cygwin@cygwin.com
Subject: Re: untarring symlinks with ../ fails randomly
Date: Thu, 30 Jun 2011 15:28:00 -0000	[thread overview]
Message-ID: <1309447688.12904.21.camel@geldmacher-pc> (raw)
In-Reply-To: <4E0C90B2.2060409@cornell.edu>

[-- Attachment #1: Type: text/plain, Size: 2063 bytes --]

On Thu, 2011-06-30 at 11:05 -0400, Ken Brown wrote:
> On 6/30/2011 9:37 AM, Corinna Vinschen wrote:
> > On Jun 30 14:43, Wolf Geldmacher wrote:
> >> Dear all,
> >>
> >> just joining after being hit by an obviously known issue:
> >>
> >> Running tar (in my case to extract openssl-0.9.8r.tar.gz) results in
> >> symbolic links being randomly substituted by zero length mode 0 files as
> >> described in http://sourceware.org/ml/cygwin/2011-04/msg00299.html.
> >>
> >> For me this happens on both Windows 7 and Windows Server 2008.
> >>
> >> The interesting (new?) tidbit:
> >>
> >> In sheer desparation I downgraded from cygwin1.dll/1.7.9.1 to
> >> cygwin1.ddl/1.7.8.1 via setup.exe and the issue seems to be gone.
> >>
> >> As this is the only change I made: Is it possible that the problem is
> >> not an issue with tar (as discussed on the mailing list) but in fact a
> >> regression in cygwin1.dll?
> >
> > I never saw this happen.  Therefore, somebody actually seeing this
> > problem has to debug it.  The least I need is an strace.
> 
> I'm not sure it needs further debugging.  The patch to tar given in
> 
>    http://cygwin.com/ml/cygwin/2011-04/msg00385.html
> 
> solves the problem.  Eric said (in the next message) that he will apply 
> this to the next release of tar.  In the meantime, it's easy to download 
> the tar source, apply the patch, and rebuild.
I'm afraid this might only solve a symptom and not fix the root cause.

Anyways, pls find attached two (rather big and therefore gzip'd) script
files with:
	- cygcheck -srv output,
	- strace of the tar command (succeeding for 1.7.8, failing
	  for 1.7-9),
	- ls -lR of the resulting directory hierarchy
of a tar archive that has a src directory with 100 files and a tgt
directory with symlinks to the files in ../src. The archive was
created via:

 mkdir symlinks symlinks/src symlinks/tgt
 cd symlinks/src
 let i=0
 while [ $i -lt 100 ]; do
    j=`printf '%03d' $i`; echo $j > $j; let i=$((i+1))
 done
 cd ../tgt
 ln -s ../src/* .
 cd ../..
 tar czvf symlinks.tar.gz symlinks

Regards,
Wolf

[-- Attachment #2: typescript-1.7.8.1.gz --]
[-- Type: application/x-gzip, Size: 232222 bytes --]

[-- Attachment #3: typescript-1.7.9.1.gz --]
[-- Type: application/x-gzip, Size: 150918 bytes --]

[-- Attachment #4: Type: text/plain, Size: 218 bytes --]

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  parent reply	other threads:[~2011-06-30 15:28 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-30 12:43 Wolf Geldmacher
2011-06-30 13:37 ` Corinna Vinschen
2011-06-30 15:05   ` Ken Brown
2011-06-30 15:26     ` Corinna Vinschen
2011-06-30 15:28     ` Wolf Geldmacher [this message]
2011-07-04  9:16       ` untarring symlinks with ../ fails randomly, silghtly OT Wolf Geldmacher
2011-07-04 10:47         ` Corinna Vinschen
2011-07-04 10:56           ` Ryan Johnson
2011-07-04 11:34             ` Corinna Vinschen
2011-07-04 11:55               ` Corinna Vinschen
2011-07-04 12:07               ` Wolf Geldmacher
2011-07-04 12:22               ` Ryan Johnson
2011-07-04 14:21                 ` Corinna Vinschen
2011-07-04 15:13                   ` Corinna Vinschen
2011-07-05 12:12                   ` Corinna Vinschen
2011-07-04 15:05                 ` Ryan Johnson
2011-07-04 21:44                   ` Mark Geisert
2011-07-04 12:00           ` Wolf Geldmacher
2011-07-05 12:12           ` Corinna Vinschen
2011-07-05 12:21             ` Ryan Johnson
2011-07-05 17:02               ` Wolf Geldmacher
2011-07-05 15:53             ` Wolf Geldmacher
     [not found] <BANLkTikh9rCN2GRwY3eW20H0isffN5fMUg@mail.gmail.com>
2011-04-24 13:57 ` untarring symlinks with ../ fails randomly Dima Pasechnik
2011-04-24 16:39   ` Corinna Vinschen
2011-04-26  4:46     ` Lester Ingber
2011-04-26 12:56       ` Dima Pasechnik
2011-04-26 13:21       ` Corinna Vinschen
2011-04-26 15:54         ` Dan Grayson
2011-04-26 16:42           ` Christopher Faylor
2011-04-26 17:33             ` Corinna Vinschen
2011-04-26 17:52               ` Dan Grayson
2011-04-27 16:13               ` Dan Grayson
2011-04-27 16:42                 ` Eric Blake
2011-04-27 18:49                   ` David Boyce
2011-04-27 20:38                     ` Eric Blake
2011-04-28 15:33                       ` Dan Grayson
2011-04-28 16:06                         ` Eric Blake
2011-05-28 22:21                   ` Ken Brown
2011-04-28  4:49                 ` Lester Ingber
2011-04-26 17:58             ` Dan Grayson
  -- strict thread matches above, loose matches on Subject: below --
2011-04-20 16:02 Daniel R. Grayson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1309447688.12904.21.camel@geldmacher-pc \
    --to=wolf.geldmacher@abacus.ch \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).