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: <40334D23.1000504@decodon.com> Date: Wed, 18 Feb 2004 12:31:47 +0100 From: Frank-Michael Moser Organization: DECODON GmbH User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Java Thread Dump in Bash References: <4031FE0B DOT 3060909 AT decodon DOT com> <6 DOT 0 DOT 1 DOT 1 DOT 2 DOT 20040217072433 DOT 02ae6300 AT pop DOT sonic DOT net> <40327505 DOT 10005 AT decodon DOT com> <6 DOT 0 DOT 1 DOT 1 DOT 2 DOT 20040217155517 DOT 03b5f0a8 AT pop DOT sonic DOT net> In-Reply-To: <6.0.1.1.2.20040217155517.03b5f0a8@pop.sonic.net> X-Enigmail-Version: 0.83.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Source: DECODON X-IsSubscribed: yes Ha, now I saw a thread dump in bash console. Unfortunately it kills immediately the java app. In RXVT I see a single new line with "i" printed and the app is killed. My $CYGWIN is "nontsec nosmbntsec". Java is run from SDK as you do. My cygwin is latest, too (just updated again). Frank-Michael. Randall R Schulz wrote: > Frank-Michael, > > At 12:09 2004-02-17, Frank-Michael Moser wrote: > >> Unfortunately neither Ctrl-Break nor Ctrl-Scroll produce a thread dump >> not in pure bash and not in RXVT for me. I'm using latest cygwin and >> tried JDK 1.4.2_02 and 1.5.0 beta. >> >> Also the java applications I tried do not read from standard input. >> >> What versions (cygwin/java) do you use. > > > Cygwin: Latest "kernel" and latest version of all packages. > Java: Latest (specifically, 1.4.2_03); If it might matter, I generally > use the "java" and "javac" commands from the SDK bin, not the "jre" bin. > That's the directory that includes the compiler and related development > tools, where as the jre bin has only the JVM and other runtime resources. > > By "pure BASH" I take it you mean BASH in a console window, in contrast > to an RXVT window. I do _not_ use the "tty" option in the CYGWIN > environment variable. Do you? > > >> Is it worth to send my cygcheck output attached? Should I really >> expect Ctrl-Break to work - this would be great? > > > I expect it to work because it does work for me... > > Cygcheck output isn't anything I can use for any purpose I can think of > in resolving this discrepancy between how your system and mine behave. > > >> Frank-Michael > > > Randall Schulz > > >> Randall R Schulz wrote: >> >>> Frank-Michael, >>> >>> CTRL-BREAK produces a thread-dump using the latest Sun JVM on my >>> system when launched from BASH. However, if the program is reading >>> standard input from the unredirected console, it receives an >>> end-of-file indication on that stream as well. >>> >>> Randall Schulz >>> >>> At 03:42 2004-02-17, Frank-Michael Moser wrote: >>> >>>> Searching the mailing list archive I found that there is an old >>>> thread from Dec 2000 which exactly describes my problem: >>>> >>>> http://sources.redhat.com/ml/cygwin/2000-12/msg00490.html >>>> >>>> In short: Using Ctrl-Scroll does not cause a Java program to dump >>>> threads as it does in cmd.exe. Unfortunately the thread ended up >>>> with some personal strife. >>>> >>>> I understand that the signal problem could be by design. But now (3 >>>> years later) maybe there are news about this issue? Has someone a >>>> way to work around this problem? >>>> >>>> Frank-Michael > > > > -- > 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/ -- ------------------------------------------------------------ DECODON GmbH phone: +49(0)3834 515231 W.-Rathenau-Str. 49a fax: +49(0)3834 515239 17489 Greifswald email: moser AT decodon DOT com Germany web: www.decodon.com ------------------------------------------------------------ -- 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/