X-Spam-Check-By: sourceware.org Date: Fri, 19 May 2006 22:01:27 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: cygwin1-20060519: proc_waiter: unknown value * on proc pipe Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Hi, Found a weird problem with the latest CVS (a regression from end February, but I can track it down further, too, if the testcase doesn't help). Compiling the following program: #include int main() { printf("1\n"); exit(-1); } with "gcc -mno-cygwin" and running it produces the following output: 1 979250836 [proc_waiter] bash 5028 proc_waiter: unknown value 49 on proc pipe 979250894 [proc_waiter] bash 5028 proc_waiter: unknown value 13 on proc pipe 979250920 [proc_waiter] bash 5028 proc_waiter: unknown value 10 on proc pipe 979264978 [proc_waiter] bash 5028 proc_waiter: unknown value 49 on proc pipe 979265034 [proc_waiter] bash 5028 proc_waiter: unknown value 13 on proc pipe 979267613 [proc_waiter] bash 5028 proc_waiter: unknown value 10 on proc pipe 979278806 [proc_waiter] bash 5028 proc_waiter: unknown value 49 on proc pipe 979278860 [proc_waiter] bash 5028 proc_waiter: unknown value 13 on proc pipe 979278886 [proc_waiter] bash 5028 proc_waiter: unknown value 10 on proc pipe 979289509 [proc_waiter] bash 5028 proc_waiter: unknown value 49 on proc pipe 979289568 [proc_waiter] bash 5028 proc_waiter: unknown value 13 on proc pipe 979289595 [proc_waiter] bash 5028 proc_waiter: unknown value 10 on proc pipe 979300049 [proc_waiter] bash 5028 proc_waiter: unknown value 49 on proc pipe 979300106 [proc_waiter] bash 5028 proc_waiter: unknown value 13 on proc pipe 979300411 [proc_waiter] bash 5028 proc_waiter: unknown value 10 on proc pipe but (!) only in an xterm. Try as I might, I couldn't reproduce this in rxvt or bash with CYGWIN=tty. I don't know what the differences are, but there it is. I did reproduce this in an xterm running tcsh and pdksh (and a perl shell, interestingly enough). The above testcase was distilled from a huge Java program that exhibited this behavior. Note that 49 is really the character '1', and 13 and 10 are CRLF. I've also gotten other characters at times, all corresponding to valid messages from the program, printed to either stdout or stderr. The number of times it repeats also seems to vary -- in some cases it's only once, in others more (it's repeated 5 times above). I'm pretty sure this has to do with Cygwin treating the exit code of "-1" specially, but there are real Windows programs that use that value. Is this something that ought to be fixed? "uname -svr" = "CYGWIN_NT-5.1 1.5.20(0.155/4/2) 2006-05-19 21:22" I don't think the cygcheck output matters, as I've reproduced this problem on two wildly different machines (same Cygwin version, though), and with virtually no environment (only SYSTEMDRIVE, SYSTEMROOT, and WINDIR set). But again, I will attach it if the problem cannot be reproduced by others... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- 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/