public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window
@ 2003-09-10  5:07 rmathew at hotmail dot com
  2003-09-10  5:44 ` [Bug libgcj/12231] [win32] " bryce at mckinlay dot net dot nz
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: rmathew at hotmail dot com @ 2003-09-10  5:07 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12231

           Summary: Console applications spawned via Runtime.exec( ) in a
                    GUI application flash console window
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rmathew at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-mingw32
GCC target triplet: i386-pc-mingw32

When a GUI application built using GCJ spawns
a "console" application on Windows, a new "Command
Prompt" window pops up that runs the application
and then disappears one the program exits.

This effect becomes particularly pronounced when
the application throws an exception, since the
current stack trace printing mechanism in libgcj
spawns addr2line and c++filt from binutils for
every frame in the call stack.

See this thread on the Java mailing list for the
complete discussion on this problem, including
a possible solution:

http://gcc.gnu.org/ml/java/2003-09/threads.html#00032


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libgcj/12231] [win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window
  2003-09-10  5:07 [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window rmathew at hotmail dot com
@ 2003-09-10  5:44 ` bryce at mckinlay dot net dot nz
  2003-10-11  3:06 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bryce at mckinlay dot net dot nz @ 2003-09-10  5:44 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12231


bryce at mckinlay dot net dot nz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Console applications spawned|[win32] Console applications
                   |via Runtime.exec( ) in a GUI|spawned via Runtime.exec( )
                   |application flash console   |in a GUI application flash
                   |window                      |console window


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libgcj/12231] [win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window
  2003-09-10  5:07 [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window rmathew at hotmail dot com
  2003-09-10  5:44 ` [Bug libgcj/12231] [win32] " bryce at mckinlay dot net dot nz
@ 2003-10-11  3:06 ` pinskia at gcc dot gnu dot org
  2003-10-27  7:19 ` membar at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-11  3:06 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12231


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |enhancement


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libgcj/12231] [win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window
  2003-09-10  5:07 [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window rmathew at hotmail dot com
  2003-09-10  5:44 ` [Bug libgcj/12231] [win32] " bryce at mckinlay dot net dot nz
  2003-10-11  3:06 ` pinskia at gcc dot gnu dot org
@ 2003-10-27  7:19 ` membar at gcc dot gnu dot org
  2003-10-27  7:42 ` membar at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: membar at gcc dot gnu dot org @ 2003-10-27  7:19 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12231


membar at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-10-27 07:18:26
               date|                            |


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libgcj/12231] [win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window
  2003-09-10  5:07 [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window rmathew at hotmail dot com
                   ` (2 preceding siblings ...)
  2003-10-27  7:19 ` membar at gcc dot gnu dot org
@ 2003-10-27  7:42 ` membar at gcc dot gnu dot org
  2003-10-27  9:10 ` membar at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: membar at gcc dot gnu dot org @ 2003-10-27  7:42 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12231


membar at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2003-10-27 07:18:26         |2003-10-27 07:19:05
               date|                            |


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libgcj/12231] [win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window
  2003-09-10  5:07 [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window rmathew at hotmail dot com
                   ` (3 preceding siblings ...)
  2003-10-27  7:42 ` membar at gcc dot gnu dot org
@ 2003-10-27  9:10 ` membar at gcc dot gnu dot org
  2003-11-07  3:16 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: membar at gcc dot gnu dot org @ 2003-10-27  9:10 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12231


membar at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4


------- Additional Comments From membar at gcc dot gnu dot org  2003-10-27 07:42 -------
http://gcc.gnu.org/ml/java-patches/2003-q4/msg00260.html


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libgcj/12231] [win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window
  2003-09-10  5:07 [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window rmathew at hotmail dot com
                   ` (4 preceding siblings ...)
  2003-10-27  9:10 ` membar at gcc dot gnu dot org
@ 2003-11-07  3:16 ` cvs-commit at gcc dot gnu dot org
  2003-11-07  4:54 ` membar at gcc dot gnu dot org
  2003-11-22 10:02 ` membar at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-11-07  3:16 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12231



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-11-07 03:16 -------
Subject: Bug 12231

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	membar@gcc.gnu.org	2003-11-07 03:16:50

Modified files:
	libjava        : ChangeLog 
	libjava/java/lang: Win32Process.java natWin32Process.cc 

Log message:
	PR libgcj/12231
	* java/lang/Win32Process.java (hasExited) Changed from
	public to private.
	(startProcess): Likewise.
	(cleanup): Likewise.
	* java/lang/natWin32Process.cc (cleanup) Don't close
	input, output and error streams.
	(ChildProcessPipe): New helper class.
	(startProcess): Refactored to use ChildProcessPipe.
	Use CREATE_NO_WINDOW when launching child process.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.2320&r2=1.2321
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/lang/Win32Process.java.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/lang/natWin32Process.cc.diff?cvsroot=gcc&r1=1.6&r2=1.7


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libgcj/12231] [win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window
  2003-09-10  5:07 [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window rmathew at hotmail dot com
                   ` (5 preceding siblings ...)
  2003-11-07  3:16 ` cvs-commit at gcc dot gnu dot org
@ 2003-11-07  4:54 ` membar at gcc dot gnu dot org
  2003-11-22 10:02 ` membar at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: membar at gcc dot gnu dot org @ 2003-11-07  4:54 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12231



------- Additional Comments From membar at gcc dot gnu dot org  2003-11-07 04:54 -------
Above patch fixes problem for Win2K, WinXP and above only, not Win9X or WinNT.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libgcj/12231] [win32] Console applications spawned via Runtime.exec( ) in a GUI application flash console window
  2003-09-10  5:07 [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window rmathew at hotmail dot com
                   ` (6 preceding siblings ...)
  2003-11-07  4:54 ` membar at gcc dot gnu dot org
@ 2003-11-22 10:02 ` membar at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: membar at gcc dot gnu dot org @ 2003-11-22 10:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From membar at gcc dot gnu dot org  2003-11-22 10:02 -------
Fixed for executables running on WinNT 4.0 and above.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12231


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-11-22 10:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-10  5:07 [Bug libgcj/12231] New: Console applications spawned via Runtime.exec( ) in a GUI application flash console window rmathew at hotmail dot com
2003-09-10  5:44 ` [Bug libgcj/12231] [win32] " bryce at mckinlay dot net dot nz
2003-10-11  3:06 ` pinskia at gcc dot gnu dot org
2003-10-27  7:19 ` membar at gcc dot gnu dot org
2003-10-27  7:42 ` membar at gcc dot gnu dot org
2003-10-27  9:10 ` membar at gcc dot gnu dot org
2003-11-07  3:16 ` cvs-commit at gcc dot gnu dot org
2003-11-07  4:54 ` membar at gcc dot gnu dot org
2003-11-22 10:02 ` membar at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).