CVS head bash problem

Rolf Campbell rcampbell@tropicnetworks.com
Thu Apr 24 00:18:00 GMT 2003


Christopher Faylor wrote:
> On Tue, Apr 22, 2003 at 11:00:51PM -0400, Rolf Campbell wrote:
>>Rolf Campbell wrote:
>>>Pierre A. Humblet wrote:
>>>>On Tue, Apr 22, 2003 at 09:27:08PM -0400, Rolf Campbell wrote:
>>>>>I've been using a cvs head cygwin1.dll that I compiled on Friday, and 
>>>>>I've noticed something a little strange.  Occationally, when I run a 
>>>>>bash command, bash runs it in the backgroud (and I didn't have a & at 
>>>>>the end).  And when the sub-process ends, sometimes bash continues to 
>>>>>run correctly, sometimes everything ends (rxvt window exits).
>>>>This sounds a lot like
>>>>http://cygwin.com/ml/cygwin/2003-04/msg00286.html
>>>>What's your system?
>>>Yes, I think that's the exact same problem that I'm having.  I'm running 
>>>Win2000.  So, it looks like bash is getting an EOF (sometimes) when the 
>>>program is run in the background.  You have your's set not to logout on ^D?
>>>-Rolf
>>
>>I just tried a simple test, created about 100 lines of text, all of them 
>>"cat hhhh".  Then copied them into the clipboard and pasted them into an 
>>NT shell running bash.  I've appended the important part of the output. 
>>At the end of this, bash is dead (still shows up in ms-task manager, 
>>but doesn't respond to anything (including ^C).  I was able to reproduce 
>>this in rxvt as well but it took much longer, and ^C sort-of worked. 
>>After the ^C, I got back to a prompt, but then I tried to run "ps" and 
>>rxvt immediately exited.  I have been unable to reproduce using strace.
> Also, send cygcheck output (as an attachment).  I suspect that you may
> be using CYGWIN=tty but we don't know what your setup is.
I was able to reproduce one of the problems in gdb.  This happens when I 
paste a *large* (> 44k) amount of text into an RXVT window.  I pasted 
4900 lines of text into rxvt, all of them "cat hhhh".  Seems to only 
happen sporatically.  I tried it with cygwin1-20030421.dll.bz2, and I 
was able to cause the problem there too, but I wasn't able to run it 
properly under gdb, when I run rxvt under gdb, I can't paste the windows 
clipboard text with (Ctrl+Insert), it only pastes a local clipboard 
(only text copied from itself).

/home/rcampbell> gdb rxvt
GNU gdb 2003-03-03-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...(no debugging symbols 
found)...
(gdb) run
Starting program: /usr/bin/rxvt.exe

Program received signal SIGSEGV, Segmentation fault.
0x61013438 in fhandler_base::puts_readahead(char const*, unsigned) 
(this=0x615f06a0, s=0xa069630 "cat hhhh\n", len=16279315) at 
../../../../src/winsup/cygwin/fhandler.cc:57
57          continue;
Current language:  auto; currently c++
(gdb) bt
#0  0x61013438 in fhandler_base::puts_readahead(char const*, unsigned) 
(this=0x6                    15f06a0, s=0xa069630 "cat hhhh\n", 
len=16279315) at ../../../../src/winsup/cygwi 
n/fhandler.cc:57
#1  0x6102d794 in fhandler_pty_master::accept_input() (this=0x615f06a0) 
at ../..                    /../../src/winsup/cygwin/fhandler_tty.cc:194
#2  0x6102cb88 in fhandler_termios::line_edit(char const*, int, 
termios&) (this=                    0x615f06a0, rptr=0xa06796a "cat 
hhhh\rcat hhhh\rcat hhhh\rcat hhhh\rcat hhhh\rca                    t 
hhhh\rcat hhhh\rcat hhhh\rcat hhhh\rcat hhhh\rcat hhhh\rcat hhhh\rcat 
hhhh\rca                    t hhhh\rcat hhhh\rcat hhhh\rcat hhhh\rcat 
hhhh\rcat hhhh\rcat hhhh\rcat hhhh\rca                    t 
hhhh\rca"..., nread=0, ti=@0x22fba0) at 
../../../../src/winsup/cygwin/fhandler                    _termios.cc:331
#3  0x610303c7 in fhandler_pty_master::write(void const*, unsigned) 
(this=0x615f                    06a0, ptr=0xa067969, len=128) at 
../../../../src/winsup/cygwin/fhandler_tty.cc:1                    128
#4  0x61014cbe in fhandler_base::writev(iovec const*, int, int) 
(this=0x615f06a0                    , iov=0x22fc90, iovcnt=1, tot=128) 
at ../../../../src/winsup/cygwin/fhandler.cc:                    824
#5  0x610700da in writev (fd=4, iov=0x22fc90, iovcnt=1) at 
../../../../src/winsu                    p/cygwin/cygheap.h:252
#6  0x6106f978 in write (fd=4, ptr=0xa067969, len=128) at 
../../../../src/winsup                    /cygwin/syscalls.cc:347
#7  0x0040570b in _size_of_stack_reserve__ ()
#8  0x00401e5e in _size_of_stack_reserve__ ()
#9  0x00405437 in _size_of_stack_reserve__ ()
#10 0x004010cb in _size_of_stack_reserve__ ()
#11 0x6100686a in dll_crt0_1() () at 
../../../../src/winsup/cygwin/dcrt0.cc:781
#12 0x61006af3 in _dll_crt0 () at ../../../../src/winsup/cygwin/dcrt0.cc:911
#13 0x00424c12 in _size_of_stack_reserve__ ()
#14 0x0040103c in _size_of_stack_reserve__ ()
#15 0x77ea847c in ProcessIdToSessionId () from 
/c/WINNT/system32/KERNEL32.DLL
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20030424/c0b52d92/attachment.txt>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list