public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/7532] shutdown hooks not run upon abnormal termination
[not found] <bug-7532-3243@http.gcc.gnu.org/bugzilla/>
@ 2005-12-01 12:46 ` thebohemian at gmx dot net
2005-12-01 14:05 ` thebohemian at gmx dot net
1 sibling, 0 replies; 3+ messages in thread
From: thebohemian at gmx dot net @ 2005-12-01 12:46 UTC (permalink / raw)
To: java-prs
------- Comment #8 from thebohemian at gmx dot net 2005-12-01 12:46 -------
Created an attachment (id=10378)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10378&action=view)
a test for the shutdown situation
Here is another small test case.
Output on another free VM looks like this:
jamvm test.shutdownhook.Test
waiting ...
Shutting down!
Exception in thread "Thread-3" java.lang.Error
at test.shutdownhook.Test$3.run (Test.java:26)
at java.lang.Thread.run (Thread.java:674)
Exception in thread "Thread-2" java.lang.NullPointerException
at test.shutdownhook.Test$2.run (Test.java:19)
at java.lang.Thread.run (Thread.java:674)
On gcj the shutdown hooks are not called when stopping it via ctrl-c.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7532
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcj/7532] shutdown hooks not run upon abnormal termination
[not found] <bug-7532-3243@http.gcc.gnu.org/bugzilla/>
2005-12-01 12:46 ` [Bug libgcj/7532] shutdown hooks not run upon abnormal termination thebohemian at gmx dot net
@ 2005-12-01 14:05 ` thebohemian at gmx dot net
1 sibling, 0 replies; 3+ messages in thread
From: thebohemian at gmx dot net @ 2005-12-01 14:05 UTC (permalink / raw)
To: java-prs
------- Comment #9 from thebohemian at gmx dot net 2005-12-01 14:05 -------
The Sun JVM does not run shutdown hooks and similar stuff when running with
-Xrs[0].
[0] -
http://www-inf.int-evry.fr/cours/java/jdk1.4docs/tooldocs/solaris/java.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7532
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libgcj/7532] shutdown hooks not run upon abnormal termination
[not found] <20020807153600.7532.jmr@fulcrummicro.com>
@ 2004-09-23 7:50 ` aph at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-09-23 7:50 UTC (permalink / raw)
To: java-prs
------- Additional Comments From aph at gcc dot gnu dot org 2004-09-23 07:49 -------
The signal handler (here called "shutdown()") can't legally be unwound if
::java::lang::System::exit throws an exception. Studying the libgcj runtime
code, I'm not sure if this might happen. The Java class lib spec says "This
method never returns normally", suggesting that an exceptional return is possible.
We could simply catch everything in shutdown() and then call exit(). With that
and the removal of ::gcj::reduceSignalUsage this patch would be fine for POSIXy
systems.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-08-27 04:05:12 |2004-09-23 07:50:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7532
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-01 14:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-7532-3243@http.gcc.gnu.org/bugzilla/>
2005-12-01 12:46 ` [Bug libgcj/7532] shutdown hooks not run upon abnormal termination thebohemian at gmx dot net
2005-12-01 14:05 ` thebohemian at gmx dot net
[not found] <20020807153600.7532.jmr@fulcrummicro.com>
2004-09-23 7:50 ` aph 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).