Please excuse my delay in debugging this:

On Tue, 3 Feb 2004, Thomas L Roche wrote:
>> However I'm also, again only since upgrading [cygwin, from
>> 1.5.5-1], having problems with unzip, e.g.

>> >   inflating:
>> 
/d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class

>> >     735 [main] unzip 1820 cmalloc: cmalloc returned NULL
>> > error:  zipfile probably corrupt (segmentation violation)

>> which I get even unzip'ing a known-good file (i.e. one that I
>> unzip'ed successfully before upgrading from 1.5.5-1).

Igor Pechtchanski Wed, 4 Feb 2004 16:21:29 -0500 (EST)
> I'd suspect the unzip issue has to do with the path length to the
> file. 

Hmm: then why could I unzip the same file before upgrading, but not
after?

> You can try confirming it by creating a file in a deeply nested
> directory, putting that one file in a .zip, and then trying to unzip
> it into some place even deeper in the directory hierarchy.

OK, using the same path alleged to break above:

bash-2.05b$ pushd /d/temp

bash-2.05b$ mkdir -p qwer/asdf/zxcv

bash-2.05b$ mkdir -p 
d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation

bash-2.05b$ echo 'Foo! Bar! Baz!' > 
d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class

bash-2.05b$ cat 
d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class
Foo! Bar! Baz!

bash-2.05b$ zip foo.zip 
d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class
  adding: 
d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class
 
(deflated 7%)

bash-2.05b$ unzip foo.zip -d qwer/asdf/zxcv/
Archive:  foo.zip
  inflating: 
qwer/asdf/zxcv/d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class
 
 

bash-2.05b$ cat 
qwer/asdf/zxcv/d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class
 

Foo! Bar! Baz!

as script:

pushd /d/temp
mkdir -p qwer/asdf/zxcv
mkdir -p 
d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation
echo 'Foo! Bar! Baz!' > 
d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class
cat 
d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class
zip foo.zip 
d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class
unzip foo.zip -d qwer/asdf/zxcv/
cat 
qwer/asdf/zxcv/d/eclipse/builds/20040121_1953-WB213-AD-V512D-00/eclipse/plugins/com.ibm.etools.j2ee.ui/build/pluginBuild/commonbld/com/ibm/etools/ejb/ui/presentation/EJBEditorOutlineContentProvider.class
 


This works on my box, which is presently up-to-date. Are there other
hypotheses? If so, please let me know (and if possible, please reply
directly to me as well as to the list.)

If not: ISTM that something "down deep" in the base broke after 1.5.5-1:

0 both character-mode (e.g. unzip) and X (e.g. emacs) apps are broken

1 inputs that worked in 1.5.5-1 don't work now

2 failures are intermittent and apparently random

3 some error messages suggest malloc problems 

Am I missing something?


--
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/

Reply via email to