delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/20/15:12:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Subject: Possible globbing error in bash 2.04.7(2)?
To: cygwin AT sources DOT redhat DOT com
From: Brian DOT P DOT Kasper AT aero DOT org
Date: Tue, 20 Mar 2001 12:10:44 -0800
Message-Id: <OFFE43ADE8.7DE677C5-ON88256A15.006E86D3@aero.org>
X-MIMETrack: Serialize by Router on ladir01/AeroNet/Aerospace/US(Release 5.0.5 |September
22, 2000) at 03/20/2001 12:10:47 PM
MIME-Version: 1.0

--0__=88256A15006E86D38f9e8a93df938690918c88256A15006E86D3
Content-type: text/plain; charset=us-ascii

Has anyone else been experiencing problems with how Cygwin's bash
handles command lines?  I'm seeing two intermittant problems:

1) After a command is entered, bash will block until ^C is pressed,
   at which point a Windows error dialog will pop up (I can't get the
   error to occur right now, dammit, or I'd include more details)

2) Commands will segfault and dump core if the command line is long

I'm not sure the problems are related; I saw some references to "bash
pausing" in the mailing list archives, but the posts were for an old
release and Chris Faylor indicated that the bug causing them had been
fixed.

Unfortunately, the problems seem to be intermittant, but I have
developed a test script which will demonstrate problem 2 on my
system:

#!/bin/bash

declare -i a=0

while [ $a -lt 1000 ]; do
  let a=$a+1
  echo > tt/$a
  if ls tt/* > /dev/null
  then
    echo $a OK
  else
    echo $a Failed
  fi
done

The output of this script looks like

1 OK
2 OK
3 OK
4 OK
5 OK

until ...

509 OK
510 OK
511 Failed
512 OK
513 OK

The failures become more frequent from then on.  I aborted the script
when i = 836; up to that point, I had experienced 45 failures.  At the
times when the failures were really frequent, there appeared to be a
pattern in which alternate attempts failed, but this was not always true.

I believe the problem lies with the way in which bash globs the
command line, because 'ls *' fails when 'ls' succeeds:

tmp 563 $ cd tt<cr>
tt 564 $ ls<cr>
(... file listing displayed ...)
tt 565 $ ls *
  63930 [main] bash 297 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
  65716 [main] bash 297 stackdump: Dumping stack trace to ls.exe.stackdump
Segmentation fault (core dumped)
tt 566 $

I've attached files which might be helpful (all gzipped):

ls-test.gz               My test script
ls-test.output.gz        The full output of my test script
ls.exe.stackdump.gz      The stack dump from the above 'ls *' command
cygcheck.output.gz       Output of 'cygcheck -s -v -r'

I can also send the output of an 'strace ls tt/*' that failed to
anyone who is interested, but it's too big (even gzipped) to send
to the mailing list.

On my system, 'bash --version' reports

GNU bash, version 2.04.7(2)-release (i686-pc-cygwin)
Copyright 1999 Free Software Foundation, Inc.

and 'uname -a' reports

CYGWIN_NT-4.0 ZUUL 1.3.0s(0.36/3/2) 2001-03-16 23:55 i686 unknown

My CYGWIN environment variable contains only 'binmode'.

Thanks in advance for any help anyone can offer.

-Brian Kasper
 kasper AT aero DOT org

(See attached file: cygcheck.output.gz)(See attached file:
ls.exe.stackdump.gz)(See attached file: ls-test.gz)(See attached file:
ls-test.output.gz)
--0__=88256A15006E86D38f9e8a93df938690918c88256A15006E86D3
Content-type: application/octet-stream; 
	name="cygcheck.output.gz"
Content-Disposition: attachment; filename="cygcheck.output.gz"
Content-transfer-encoding: base64

H4sICLurtzoAA2N5Z2NoZWNrLm91dHB1dADFWmlzm0ga/jz8is7Ubmm3ZiwuoQNXPsgI2dpIQiPw
NcuUBqG2hI2ABaTY+fX7dnMI0JFESSoktsV79PPezSFGeVt6mwjdO15HYscGUnzvyVluQit2fA/1
HGvp+VHs2BGjbMIQezHS36IYr5HhrLGMjA1GIytEAod4XuYFWWrCZ45nGFgRlrvDIWrUOTTfOO4C
8WKbRzoOt46N0cSyX1CTYSZWvJJ/YeeOx/z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mW9RveQtACIPpbY4jMgX5xzvyZfzRQny2nr24baZ5+ij0gLd8QidKxFx
4NtwX8d3StS5tUCRs/Qsslr0QvgcfXC4E/HdBSLfL3F8uG+TKga4rm8j7G1lJLRzlhU4mW1cmZgY
JjZzKv1mxAKR+1iglxZ3FtiDPnUwaKRxy/n04RyCIQLXyeEbgOccO3m8l7GQZ5HvFO69BS6Ikzjv
i5P3vplQkL6L8ZN3MalQ9Q1NZcmyialO8bVwLl14BSxXzvfFghA/Oa9ylbAvmD6yzBVyieR7kxBx
sEe3YvpdSxi6nAC1JwstpOpG8n3LPEeeFUQrP051CO+CEy/45gXUqyRdgEI1n84iz5kuXuQaKQrD
3EYYXaxQ7KMIY7TCboCsub+JEbbsFdBsElLm/yYe+L1KKgAA

--0__=88256A15006E86D38f9e8a93df938690918c88256A15006E86D3
Content-type: application/octet-stream; 
	name="ls.exe.stackdump.gz"
Content-Disposition: attachment; filename="ls.exe.stackdump.gz"
Content-transfer-encoding: base64

H4sICDeptzoAA2xzLmV4ZS5zdGFja2R1bXAAjZRLi9swEMfvgXyHOe5CKXpadsAHSZZhoXQPSXta
WBJHCaHNgzil2W9fyXokaTdlBUZ/j/SbkUYjmXNnD6fNfjeB6UzOvk1fpdZmOn39/vT8Rc6enr/C
/AR2c6gLjITmAo1Hdn6uBROVQFyDXZxrJBEpW4zAdtcjy+ufflMj3wR305abwAjt3S0ONSJMGOI9
9PGHKQSH4359nG/rbvLSva1/b3YvC/f97D/bsx2Put55xAqWvifUoaFf+Z4qWPdDROiDfTyanubd
Dzgd552djEet82zBt/bXrvMpAJDHdT8e5cVA2jPAA4rtE/xPPUaamfKGdrJUbstuZth36ZSb2Brp
lBAtVRVjieYo0KSUGPvYF8YpURKn3HBV0QpdVKZJosuG3dI+Im+SqprghymmZKS9EYJRFOp23xJh
Tpq0CoSjcniZaIkjrRkq3ssafc9PplmgUUuFCCu/GzF5xCzTRcw5Edp8kM4n1ioaYxu3jA/QjBSt
ybHd6YE3YtwYlGlV3tTIYPPn0MaWaI0TTXkVT4wP1ZJmXqu/V65FoJEpWBtjG9XcxP7XT6Z1pJuW
36OHiQ1iw74RFSRXizNCNEqe6pyaXN1Flf2wodaG0UzTSOOKmEu14JAr7Ao4KGdLHhueaaPCDUVU
S3nvhjKuDK6GO6aZS5HPmtktYb+C/vIcwMN2f7TRsvIPQw/b+RssrHuDbG93p8c/keYAUSkFAAA=

--0__=88256A15006E86D38f9e8a93df938690918c88256A15006E86D3
Content-type: application/octet-stream; 
	name="ls-test.gz"
Content-Disposition: attachment; filename="ls-test.gz"
Content-transfer-encoding: base64

H4sICP6htzoAA2xzLXRlc3QAVY6xDsIwDERnIuUfDtEJVCWdEYwsDHwAYnAbV4lkJRIJ8Ps4bEzW
vfP5vNu6OWU3U43WWBN4EXoyxgQ6+U4+MQnjjoEwSsPkvcfjiFCsAYSb7g10mKzZ8BILzmjNDaQy
rZDa1V6hC/x2+SWiRoucdQC/gN69XXtaKv/RC2lxULQm/atkdb/R5dU2rQAAAA==

--0__=88256A15006E86D38f9e8a93df938690918c88256A15006E86D3
Content-type: application/octet-stream; 
	name="ls-test.output.gz"
Content-Disposition: attachment; filename="ls-test.output.gz"
Content-transfer-encoding: base64

H4sICM2ktzoAA2xzLXRlc3Qub3V0cHV0AEXYuY0sRxCEYZ1WPBMm72oHqFCgDQRIgQD9lzmTf+yU
0lg0ELHv+LqOtF9//vGbfx7xeeTnUZ9Hfx7zeZzP4/k87LVP2+eGbFO2MducbdA2aRu1zfpmfbO+
Wd+sb9Y365v1zfpmfbOx2dhs8IfdbGw2Nhubjc3GZmOzudncbG42+ZtuNjebm83N5mZzs7XZ2mxt
tjZb/DNttjZbm63N1mZ7s73Z3mxvtjfb/Btvtjfbm+3NzmZns7PZ2exsdjY7/AdtdjY7mz2bPZs9
mz2bPZs9mz2bPfzvbvZs9tnss9lns89mn80+m302+2z2gYZsgOOFjhc8Xvh4AeSFkBdEXhh5geRF
yw8xWoRMysRMzgRN0kQNawY2c0mlBW8G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7xta355/3mC64jaHLkO3GdsVtxnfFbcZ4xW3GeeVtxnrlbcZ74X3wnvh
vfBeuq3puqb7mi5surH9XNlo0aVNtzZd2/BeeC+8F94L74X3at38aMF74b3wXngvvBfeC++F98J7
jS6QtOC98F54L7wX3gvvhffCe+G9ju6htOC98F54L7wX3gvvhffCe+G9Hl1ndZ/lQov3xnvjvfHe
eG+8N94b7433Nl2LacF6Y72x3lhvrDfWG+uN9cZ6u27XtLBWN8abtbrx3azVje1mrW5cN2t1hy7p
tOC5Wasby81a3Thu1urGcLNWN347ddenBbuN3cZuY7ex29ht7DZ2G7tdGhnQgt3GbmO3NXPQ0EFT
B40dNHfQ4OFn8kCLZg8aPmC3sdvYbew2dhu7jd0eDTBowW5jt7Hb2G3sNnYbu43dxm4fzUFowW5j
t7Hb2G3sNnYbu43dxm4/GqdonsJABbuD3cHuYHewO9gd7A52B7tjGsvQgt3B7mB3sDvYHewOdge7
g91xTXdowe5gd7A72B3sDnYHu4Pdwe6EhkS0YHewO9gd7A52B7uD3cHuYHdSsyZasDvYHewOdge7
g93B7mB3sDulkRUt2B3sDnYHu4Pdwe5gd7A72J3W5IsW7A52R5Mzjc40O9PwTNMzjc80P3vb1RYz
mqK9/X7f0PY2/PMGx/N2/H1DK5YHy3Nu69Fs7rZiejA9mJ7nNuJ63q6/b2h9biu+57mtj+Z+3z/r
edn90e+PzAFfed8wDXz1fTP3x3N//O7Yx+5v4Ts4dn8D38Kx+xv4Ho7d38A3cey2810cv82u6eVt
5vs4fpv5Ro7fZr6T47eZb+XEbeZ7OXGb+WZO3Ga+mxPf5v8BINZxwyQXAAA=


--0__=88256A15006E86D38f9e8a93df938690918c88256A15006E86D3
Content-Type: text/plain; charset=us-ascii

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
--0__=88256A15006E86D38f9e8a93df938690918c88256A15006E86D3--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019