[Bug libgcj/7532] shutdown hooks not run upon abnormal termination
thebohemian at gmx dot net
gcc-bugzilla@gcc.gnu.org
Thu Dec 1 12:46:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list