Debuggee exit code is -18; expected 238.
looks like a sign extension problem; 238 is 0xEE, -18 is 0xFFFF...EE.
Don't confuse this with 4509019 which is about a return
code getting truncated to 8 bits in test nsk/jdi/VirtualMachine/exit/exit002.
This bug is a case where the
return code is 8 bits in JDWP, ie, 0xEE but it comes out of JDI
as 0xFFFF...EE
looks like a sign extension problem; 238 is 0xEE, -18 is 0xFFFF...EE.
Don't confuse this with 4509019 which is about a return
code getting truncated to 8 bits in test nsk/jdi/VirtualMachine/exit/exit002.
This bug is a case where the
return code is 8 bits in JDWP, ie, 0xEE but it comes out of JDI
as 0xFFFF...EE
- duplicates
-
JDK-4459019 JDI spec: Wrong exit code returned after VirtualMachine.exit() on Linux
-
- Closed
-
- relates to
-
JDK-4680945 Linux: System.exit(value) doesn't return the correct value to Process.waitFor()
-
- Closed
-