Bug 168726 - [launcher] Ctrl+Break no longer works
Summary: [launcher] Ctrl+Break no longer works
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.3 M7   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted, polish
Depends on: 167310 168645 168775
Blocks:
  Show dependency tree
 
Reported: 2006-12-20 11:44 EST by Dani Megert CLA
Modified: 2007-05-02 16:06 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2006-12-20 11:44:44 EST
I20061219-1300 (works in 3.3 M4 and all earlier builds)

1. start eclipse.exe using a Windows shortcut, e.g.
C:\eclipse\drops\I20061219-1300\eclipse.exe -data workspace -vm C:\JavaSDKs\jdk1.4.2_12\jre\bin\java.exe

2. wait until the workbench is up
3. hit Ctrl+Break in the windows command console
==> nothing happens

EXPECTED: stack dump of Java VM
Comment 1 Dani Megert CLA 2006-12-20 11:47:16 EST
It depends on bug 168645 because all shortcuts that I have and that do not use 'jre' don't work i.e. unless I go and change all my shortcuts I cannot even launch eclipse.
Comment 2 Andrew Niefer CLA 2006-12-20 16:26:41 EST
There are 2 things here:
1) the old behaviour relied on java.exe to create the console.  The new launcher would want a -debug or -console.
Bug 168775 will address this case.

2) The console is not connected properly when we do specify -debug or -console, see bug 167310.  Even with 1.5.0 vms where the osgi console is working, we still don't get a stack dump.  We still need to figure out what is wrong here.
Comment 3 Markus Keller CLA 2007-01-10 08:17:17 EST
As a workaround, I currently launch with:
C:\java\jdk1.5.0_10\bin\java.exe <vmArgs> -jar <pathToEclipse>\plugins\org.eclipse.equinox.launcher_*.jar <eclipseArgs>
Comment 4 Dani Megert CLA 2007-03-28 05:33:53 EDT
Jeff, this (and its blocking bug 167310) is something we should fix for 3.3.
Comment 5 Andrew Niefer CLA 2007-04-05 12:11:29 EDT
I will investigate more for M7, but I still don't know what is wrong
Comment 6 Andrew Niefer CLA 2007-04-05 12:52:36 EDT
This depends on the VM being used and how the vm is chosen:
1) (JNI invocation) no -vm specified: IBM 1.5 works, Sun 1.6 works
2) -vm pointing at java.exe: all vms work (see bug 168775)

IBM's 1.4 doesn't even work when you launch java.exe directly.

So the outstanding case is running Sun 1.4, 1.5 with JNI launching.
Comment 7 Andrew Niefer CLA 2007-05-02 16:06:46 EDT
As mentioned before, eclipse.exe works or not depending on the vm.

Starting in I20070430-0800, we now have an eclipsec.exe which is a console linked version of the launcher.  All vm stack dumps should work with this launcher.