Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 301702 - VM "crashes" on exit if server left running
Summary: VM "crashes" on exit if server left running
Status: RESOLVED WORKSFORME
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Angel Vera CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-03 10:18 EST by David Williams CLA
Modified: 2010-11-02 21:48 EDT (History)
0 users

See Also:


Attachments
core dump from one of the crashes (1.61 MB, text/plain)
2010-02-03 10:31 EST, David Williams CLA
no flags Details
screen captures of VM error dialog (48.79 KB, image/png)
2010-02-03 13:27 EST, David Williams CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2010-02-03 10:18:53 EST
Using 20100202-1656_eclipse-jee-helios-M5-win32.win32.x86_64 

I can create a dynamic web project, run it, debug it, etc., all seems fine. 
Oh, and that's using the built in "preview server" (which uses Jetty under the covers). 

If I then shutdown the workbench, there is a VM "crash", a message pops up that says "no exit data" and a VM dump left in my eclipse directory. Which I'll attach. 

I'll investigate if this happens for 32 bit package as well. and after that, I guess other types of servers. 

If I explicitly "stop" the server first, the workbench shuts down like normal.
Comment 1 David Williams CLA 2010-02-03 10:31:25 EST
Created attachment 158060 [details]
core dump from one of the crashes
Comment 2 David Williams CLA 2010-02-03 13:20:55 EST
I'm moving this to WTP Server Tools, because it also happened using Tomcat 6.0.24 64 bit distribution. 

So ... I'm thinking there is something in servertools shutdown that, somehow, assumes 32 bit VM? 

Angel, do you all ever test using a 64 bit VM and 64 bit version of Eclipse?
Comment 3 David Williams CLA 2010-02-03 13:27:34 EST
Created attachment 158081 [details]
screen captures of VM error dialog

This is a screen capture of the VM's "crash" dialog. Not sure its useful, but just in case. 

Also, I should be explicit, I do not see the problem using a 32 bit VM and the 32 bit version of Eclipse. 

I only tried on a fresh, toy workspace, but if this prevents proper shutdown of the workbench (so that session data is not properly saved) then it would be a 'major' problem, and not just 'normal'. 

I have also tried with only the JEE package ... I have not tried just by "building my own from zip files" so that might be another thing to investigate. 
As far as I know, it could be "package specific" (i.e. something wrong with the JEE package build), but I think best if server tools takes a look.
Comment 4 David Williams CLA 2010-02-03 13:32:52 EST
Oh, and for those that don't keep it book marked, the 64 bit JEE package can be obtained from "nightly" builds on 

http://www.eclipse.org/epp/download.php
Comment 5 Angel Vera CLA 2010-02-03 14:37:00 EST
Hmm interesting. No we don't typically try 64 bits. From the dump thread I don't see anything that give me a clue as to what could be occuring. I wonder if this happens in linux 64 as well?
Comment 6 Angel Vera CLA 2010-11-02 16:29:00 EDT
David,

Have you had this problem happened again? since the dump shows a gpf error, I doubt this is anything regarding our java code. Perhaps try upgrading your JDK, to a more recent, or using a different JDK just to see if we can reproduce the problem.
Comment 7 David Williams CLA 2010-11-02 21:48:13 EDT
I haven't seen again. Not that I've tested it all that much. 
But if no one else sees it, its not a problem. 
(You know .. like a tree that falls in the forest when no one is around makes no sound :)