This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/7532] shutdown hooks not run upon abnormal termination



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]