Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <39020-220033225202543244@M2W052.mail2web.com> X-Priority: 3 Reply-To: lhall AT rfk DOT com X-Originating-IP: 209.113.174.244 From: "lhall AT pop DOT ma DOT ultranet DOT com" To: mw487 AT yahoo DOT com, cygwin AT cygwin DOT com Subject: RE: I can jam cygwin in 2 minutes - can you?- Cannot fork: Permission denied jam Date: Tue, 25 Mar 2003 15:25:43 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 X-OriginalArrivalTime: 25 Mar 2003 20:25:43.0330 (UTC) FILETIME=[B5B21820:01C2F30C] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h2PKPtW29194 Sorry, I've run this here for over 4 hours and not seen a PID break 4000. This is with W2K + SP3 and Cygwin DLL 1.3.20. Looks like you're going to need to dig a little deeper. Larry Original Message: ----------------- From: Mike W. mw487 AT yahoo DOT com Date: Mon, 24 Mar 2003 20:36:54 -0800 (PST) To: cygwin AT cygwin DOT com Subject: I can jam cygwin in 2 minutes - can you?- "Cannot fork: Permission denied" jam This relates to a bug in Win NT 2000 sp3 or cygwin- hard to say which. I can only exercise the bug in cygwin, but I would like to exercise it from command.exe- see below. Another user jammed cygwin in 183 iterations of the loop, after two days without a reboot. I am not alone. This script, "crashme", will jam cygwin even faster than before- jam times are now down to about 2 minutes on my hardware! (less interaction with terminal- ha ha!) Wow. Otherwise, I can run all day unless I try to build some open source software. #! /bin/sh i=1 # 1 Infinite Loop /usr/bin/ps -al |grep PID while test $i != 0 do /usr/bin/ps -al | grep ps #PID value done (I have "grep" for Win NT and pslist (like ps, search for pstools in google), and I would like to run the above type script in command.exe. Can anyone translate the above into something that will run within command.exe? have pity...) Run the script in cygwin like this: ./crashme >r7.txt 2>&1 and after you reboot ;-} or ^C you will have a nice record of the PIDs used preceding the jam or ^C. I am trolling for similar problems on other peoples hardware, so here is some google bait: (email me if you want the whole 151K file) PID PPID PGID WINPID TTY UID STIME COMMAND 2928 2844 2844 2948 con 400 21:57:15 /usr/bin/ps 2920 2844 2844 2972 con 400 21:57:15 /usr/bin/ps 2912 2844 2844 2992 con 400 21:57:16 /usr/bin/ps 2964 2844 2844 3012 con 400 21:57:16 /usr/bin/ps 2968 2844 2844 3032 con 400 21:57:16 /usr/bin/ps 2988 2844 2844 3052 con 400 21:57:16 /usr/bin/ps ... 10900 2844 2844 10964 con 400 21:57:45 /usr/bin/ps 10980 2844 2844 10984 con 400 21:57:45 /usr/bin/ps 9700 2844 2844 11004 con 400 21:57:45 /usr/bin/ps 10960 2844 2844 11024 con 400 21:57:45 /usr/bin/ps 10920 2844 2844 11044 con 400 21:57:45 /usr/bin/ps 11000 2844 2844 11064 con 400 21:57:45 /usr/bin/ps ... 19980 2844 2844 20044 con 400 21:58:19 /usr/bin/ps 20000 2844 2844 20064 con 400 21:58:19 /usr/bin/ps 20072 2844 2844 20084 con 400 21:58:19 /usr/bin/ps 19740 2844 2844 20104 con 400 21:58:19 /usr/bin/ps 20020 2844 2844 20124 con 400 21:58:19 /usr/bin/ps ... 24680 2844 2844 24744 con 400 21:58:36 /usr/bin/ps 24700 2844 2844 24764 con 400 21:58:36 /usr/bin/ps 724 2844 2844 24780 con 400 21:58:36 /usr/bin/ps 24784 2844 2844 2272 con 400 21:58:37 /usr/bin/ps 24792 2844 2844 24812 con 400 21:58:37 /usr/bin/ps 24816 2844 2844 24832 con 400 21:58:37 /usr/bin/ps ... 36792 2844 2844 36856 con 400 21:59:26 /usr/bin/ps 36812 2844 2844 36876 con 400 21:59:26 /usr/bin/ps 6344 [main] ps 36832 winpids::enumNT: error 0xC0000005 reading system process information 6884 [main] ps 36744 winpids::enumNT: error 0xC0000005 reading system process information 6281 [main] ps 36852 winpids::enumNT: error 0xC0000005 reading system process information 2977 [main] ps 36892 winpids::enumNT: error 0xC0000005 reading system process information 6574 [main] ps 36972 winpids::enumNT: error 0xC0000005 reading system process information 6306 [main] ps 36932 winpids::enumNT: error 0xC0000005 reading system process information 2857 [main] ps 36952 winpids::enumNT: error 0xC0000005 reading system process information 2014 [main] ps 37024 winpids::enumNT: error 0xC0000005 reading system process information ./crashme: /usr/bin/ps: permission denied ./crashme: /usr/bin/ps: permission denied ./crashme: /usr/bin/ps: permission denied ./crashme: Cannot fork: Permission denied Notice that the PID and WINPID do not always increase monotonically- but damn close. Any debugging suggestions? This behaviour does not change if the heap_chunk_in_mb is increased to 256. $ regtool -i set /HKEY_LOCAL_MACHINE/SOFTWARE/Cygnus\ Solutions/Cygwin/heap_chunk_in_mb 256 $ regtool -v list /HKEY_LOCAL_MACHINE/SOFTWARE/Cygnus\ Solutions/Cygwin mounts v2\ (Cygwin) Program Options\ (cygnus) heap_chunk_in_mb = 0x00000100 (256) If you encounter this problem on your hardware, please post to the list and send me your cygcheck output and crashme output. If people have had "out of resource" , "failure to fork", or other such problems, this might be related and you can test it in 10 minutes. Then please post to the list. Anyone care to comment if these are related: http://sources.redhat.com/ml/cygwin/2002-02/msg01188.html http://sources.redhat.com/ml/cygwin/2002-07/msg01894.html http://sources.redhat.com/ml/cygwin/2002-05/msg01333.html http://sources.redhat.com/ml/cygwin/2002-02/msg01361.html http://sources.redhat.com/ml/cygwin/2002-02/msg00304.html http://sources.redhat.com/ml/cygwin/2001-07/msg00382.html http://sources.redhat.com/ml/cygwin/2001-07/msg00193.html http://sources.redhat.com/ml/cygwin/2002-11/msg01796.html http://cygwin.com/ml/cygwin/2003-03/msg01393.html --- "Mike W." wrote: > This relates to a bug in my copy of cygwin, which > jams > when the PID goes over about 36800. With a script, > this can easily happen in less than 10 minutes, like > during a build. > > How high can your PID go before you jam cygwin? You > will have to reboot to use cygwin after jamming it. > > Please run this script until your cygwin jams, and > report the highest PID found: > > > #! /bin/sh > i=1 # 1 Infinite Loop a script called "crashme" > > while test $i != 0 > do > echo "$i" > /usr/bin/ps -afl | grep PID # header row > /usr/bin/ps -afl | grep ps #PID value > i=`expr $i + 1` > done > > > > Why do I care to jam cygwin? Actually, I am > incompetent to stop it, so I would like some help in > preparing a bug report. > > I have a Dell laptop running Win2000, and updated > cygwin yesterday. My related posts: > > http://cygwin.com/ml/cygwin/2003-03/msg01350.html > http://cygwin.com/ml/cygwin/2003-03/msg01393.html > > Here is when it crashes for me: > > (You can exit from the script with ^C occasionally > when you am getting close... then run it some more. > A > rest break does not fix the problem in my > experience...) > > $ ./crashme > 1 > UID PID PPID TTY STIME COMMAND > WESTMWJ 2936 2916 con 14:55:02 /usr/bin/ps > 2 > UID PID PPID TTY STIME COMMAND > WESTMWJ 2980 2916 con 14:55:03 /usr/bin/ps > 3 > UID PID PPID TTY STIME COMMAND > WESTMWJ 3016 2916 con 14:55:03 /usr/bin/ps > 4 > > ... about 8 minutes pass... > > 930 > UID PID PPID TTY STIME COMMAND > WESTMWJ 36768 2948 con 15:03:14 /usr/bin/ps > 931 > UID PID PPID TTY STIME COMMAND > WESTMWJ 36788 2948 con 15:03:15 /usr/bin/ps > 932 > 2404 [main] ps 36848 winpids::enumNT: error > 0xC0000005 reading system process > information > UID PID PPID TTY STIME COMMAND > 2461 [main] ps 36868 winpids::enumNT: error > 0xC0000005 reading system process > information > 933 > 2921 [main] ps 36824 winpids::enumNT: error > 0xC0000005 reading system process > information > UID PID PPID TTY STIME COMMAND > 2643 [main] ps 36904 winpids::enumNT: error > 0xC0000005 reading system process > information > 934 > 2627 [main] ps 36796 winpids::enumNT: error > 0xC0000005 reading system process > information > UID PID PPID TTY STIME COMMAND > 2684 [main] ps 36940 winpids::enumNT: error > 0xC0000005 reading system process > information > 935 > 2179 [main] ps 36892 winpids::enumNT: error > 0xC0000005 reading system process > information > ./crashme: grep: permission denied > 2562 [main] ps 36932 winpids::enumNT: error > 0xC0000005 reading system process > information > ./crashme: grep: permission denied > 936 > 2569 [main] ps 36980 winpids::enumNT: error > 0xC0000005 reading system process > information > ./crashme: grep: permission denied > ./crashme: /usr/bin/ps: permission denied > 937 > ./crashme: /usr/bin/ps: permission denied > ./crashme: /usr/bin/ps: permission denied > 938 > ./crashme: /usr/bin/ps: permission denied > ./crashme: Cannot fork: Permission denied > $ > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, > live on your desktop! > http://platinum.yahoo.com > > -- > Unsubscribe info: > http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/