This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Call for testing Cygwin snapshot


While I was watching the tumbleweeds blow by, I did some more
investigation on the problems I've been encountering with snapshots. 
First of all, I tested every snapshot (always the FULL snapshot, of
course) from 2006-03-09 onwards with the following results:

20060309 - Last non-problematic snapshot

For the following snapshots, stuck processes are generated by bash
script cron job:
    20060313
    20060322
    20060323
    20060324
    20060326
    20060329
    20060413
    20060417
    20060418
    20060421
    20060424
    20060426

For the following snapshots, the rxvt shell window closes right away (as
reported in http://cygwin.com/ml/cygwin/2006-03/msg00487.html):
    20060314
    20060315
    20060318
    20060319
    20060320
    20060321

20060403 - run.exe does not work properly

20060412 - The login shell window display the following errors:
    mkdir: `': No such file or directory
    Copying skeleton files.
    These files are for the user to personalise
    their cygwin experience.

    These will never be overwritten.

    /usr/bin/install: accessing `//.bashrc': No such host or network
path
    /usr/bin/install: accessing `//.bash_profile': No such host or
network path
    /usr/bin/install: accessing `//.inputrc': No such host or network
path
    bash: /bin/cygwin: No such file or directory
    1 skel > 


Then with the help of Ernie Coskrey (the only person to suggest anything
useful for me to try), I installed the Windows debugger to take a peek
at some of the stuck processes.  (I'm not a Windows programmer - I do
Unix - so I need help with such things.)

In this case, I used the full 20060426 snapshot and generated some stuck
processes.  The output from 'ps' showed the following:

      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
     2944       1    1332      29292    ? 78809 13:54:03 /usr/bin/diff
    32184       1     436       2860    ? 78809 14:00:03 /usr/bin/mv
     1560       1   28372      29084    ? 78809 14:06:05 /usr/bin/diff
     9768       1   23420      24436    ? 78809 14:12:04 /usr/bin/diff

Looking at the Windows Task Manager, those processes were not listed,
but what I suppose to be their shell processes were:

Image Name      PID
bash.exe        2736
bash.exe        9500
bash.exe       29048
bash.exe       30324

Note that no bash processes were listed by Cygwin under 'ps'.  (Is this
a clue?)


Using the Windows debugger, I attached to one of the bash processes and
extracted the following using the '~* kb' command:

   0  Id: ab0.1b0 Suspend: 1 Teb: 7ffde000 Unfrozen
ChildEBP RetAddr  Args to Child              
0022e280 7c59a1af 00000002 0022e2a8 00000001
ntdll!ZwWaitForMultipleObjects+0xb
0022e2d0 7c59a0c2 0022e2a8 00000001 00000000
KERNEL32!WaitForMultipleObjectsEx+0xea
*** ERROR: Symbol file could not be found.  Defaulted to export symbols
for E:\cygwin\bin\cygwin1.dll - 
0022e2e8 610ab884 00000002 0022e400 00000000
KERNEL32!WaitForMultipleObjects+0x17
WARNING: Stack unwind information not available. Following frames may be
wrong.
0022e428 610bf218 00000000 0045f070 00687020 cygwin1!_getreent+0xc64
0022e468 610bf5f5 ffffffff 0022e4c8 00000000 cygwin1!regsub+0x1e8
*** ERROR: Module load completed but symbols could not be loaded for
E:\cygwin\bin\bash.exe
0022e498 0042ee38 00000000 0022e4c0 0022e4b0 cygwin1!regsub+0x5c5
0022e4d8 0041e9b4 00000000 00000001 0022e4f4 bash+0x2ee38
0022e508 0041149c 00000618 00000000 00686fa0 bash+0x1e9b4
0022e5a8 00412c90 00684930 00000000 ffffffff bash+0x1149c
0022e5d8 00410a25 00684930 00000003 00687268 bash+0x12c90
0022e678 00412c90 006864b0 00000000 ffffffff bash+0x10a25
0022e6a8 00410a59 006864b0 00000003 00687250 bash+0x12c90
0022e748 00412c90 006864c8 00000000 ffffffff bash+0x10a59
0022e778 00410a59 006864c8 00000003 0022e7c8 bash+0x12c90
0022e818 00413e6a 006864f8 00000000 ffffffff bash+0x10a59
0022e868 00410645 ffffffff ffffffff 006871d0 bash+0x13e6a
0022e908 00412c90 00686528 00000000 ffffffff bash+0x10645
0022e938 00413e32 00686528 00000000 ffffffff bash+0x12c90
0022e988 00410645 ffffffff ffffffff 00687230 bash+0x13e32
0022ea28 00412c90 00686380 00000000 ffffffff bash+0x10645

   1  Id: ab0.708 Suspend: 1 Teb: 7ffdd000 Unfrozen
ChildEBP RetAddr  Args to Child              
0067ed14 7c5862e9 00000330 00000000 00000000 ntdll!ZwReadFile+0xb
0067ed88 610973ea 00000330 0067edc0 000000a4 KERNEL32!ReadFile+0x181
WARNING: Stack unwind information not available. Following frames may be
wrong.
0067ee88 61002f52 61101000 00000000 00000000 cygwin1!sigemptyset+0x341a
0067eeb8 61003789 0067ef8c 61018880 00001074 cygwin1!toascii+0xed2
0067ffb4 00000000 00000000 00000000 00000000 cygwin1!toascii+0x1709

   2  Id: ab0.7224 Suspend: 1 Teb: 7ffdc000 Unfrozen
ChildEBP RetAddr  Args to Child              
1912ec54 7c59a1af 00000003 1912ec7c 00000001
ntdll!ZwWaitForMultipleObjects+0xb
1912eca4 7c59a0c2 1912ec7c 00000001 00000000
KERNEL32!WaitForMultipleObjectsEx+0xea
1912ecbc 778322b2 00000003 1912ede4 00000000
KERNEL32!WaitForMultipleObjects+0x17
1912eee8 61004489 00000004 1912ef10 778321fe
RTUTILS!TraceServerThread+0xde
WARNING: Stack unwind information not available. Following frames may be
wrong.
1912ffb4 00000000 00000000 00000000 00000000 cygwin1!toascii+0x2409

   3  Id: ab0.7374 Suspend: 1 Teb: 7ffdb000 Unfrozen
ChildEBP RetAddr  Args to Child              
1934ed04 7c5862e9 0000021c 00000000 00000000 ntdll!ZwReadFile+0xb
1934ed78 61072109 0000021c 1934edab 00000001 KERNEL32!ReadFile+0x181
WARNING: Stack unwind information not available. Following frames may be
wrong.
1934ee88 61002f52 6110367c 61101030 61101030 cygwin1!dirname+0x2499
1934eeb8 61003789 00000238 ffffffff 00000000 cygwin1!toascii+0xed2
1934ffb4 00000000 00000000 00000000 00000000 cygwin1!toascii+0x1709

   4  Id: ab0.7214 Suspend: 1 Teb: 7ffda000 Unfrozen
ChildEBP RetAddr  Args to Child              
1955ee80 7c599fe4 0000024c 00000000 00000000
ntdll!ZwWaitForSingleObject+0xb
1955eea8 7c57b3db 0000024c ffffffff 00000000
KERNEL32!WaitForSingleObjectEx+0x71
1955eeb8 61003761 0000024c ffffffff 00000000
KERNEL32!WaitForSingleObject+0xf
WARNING: Stack unwind information not available. Following frames may be
wrong.
1955ffb4 00000000 00000000 00000000 00000000 cygwin1!toascii+0x16e1

#  5  Id: ab0.70d0 Suspend: 1 Teb: 7ffd9000 Unfrozen
ChildEBP RetAddr  Args to Child              
1959eed8 7c57fe8f 7c57fe66 ffffffff 1959ffb4 ntdll!DbgBreakPoint
1959eee8 61004489 00000000 1959ef10 7c57fe66
KERNEL32!BaseAttachComplete+0x29
WARNING: Stack unwind information not available. Following frames may be
wrong.
1959ffb4 00000000 00000000 00000000 00000000 cygwin1!toascii+0x2409

Does this contain any useful information?


One more piece of information that may be relevant:  I have cron
installed as a service using the -i flag.  As reported in
http://cygwin.com/ml/cygwin/2006-04/msg00175.html there appears to be a
bug associated with this in that 'cygrunsrv -E cron' fails to stop the
cron process when the -i flag is used.  (Without the -i flag it's
fine.)  Can anyone see a connection here, or is this a red herring?

Finally, can anyone (Dave Korn perhaps) suggest something else for me to
try?  Again, while I am a programming professional, my Windows
experience is limited.  If needed, I will learn to compile cygwin.dll
if someone suggests something useful to do in that direction.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]