This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/7532] shutdown hooks not run upon abnormal termination
- From: "thebohemian at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 1 Dec 2005 12:46:25 -0000
- Subject: [Bug libgcj/7532] shutdown hooks not run upon abnormal termination
- References: <bug-7532-3243@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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