Firts try with OpenJDK on X86 ends in crash
Firts try with OpenJDK on X86 ends in crash
My fist try with OpenJDK on X86 ended with a fatal error. (see the attached .log file)
- Attachments
-
- hs_err_pid538969147.log
- (19.43 KiB) Downloaded 79 times
-
- Master
- Posts: 250
- Joined: Fri Apr 17, 2020 7:31 pm
- Reputation: 0
- Location: Rhode Island, USA
- Status: Offline
- Contact:
Re: Firts try with OpenJDK on X86 ends in crash
Looks like your Java application is a GUI application (Swing).
I have seen several reports here about problems with DECWindows from C/C++.
If there is a problem with DECWindows then it obviously impact Java Swing as well.
I have seen several reports here about problems with DECWindows from C/C++.
If there is a problem with DECWindows then it obviously impact Java Swing as well.
-
- VSI Expert
- Contributor
- Posts: 11
- Joined: Thu Sep 14, 2023 1:26 am
- Reputation: 0
- Status: Offline
Re: Firts try with OpenJDK on X86 ends in crash
Thank you for the bug report. The Java_sun_awt_X11_XlibWrapper_XGetWindowProperty routine looks really suspicious. Perhaps once again an attempt to pass a 64-bit address to a 32-bit function. I'll create a ticket and try to fix it.
p.s. But perhaps the error is not in OpenJDK but in DECWindows.
Re: Firts try with OpenJDK on X86 ends in crash
Normally C and Decwindows works
I have a lot of problems (not working) with C++ code calling Decwindows.
I have a lot of problems (not working) with C++ code calling Decwindows.
-
- Master
- Posts: 250
- Joined: Fri Apr 17, 2020 7:31 pm
- Reputation: 0
- Location: Rhode Island, USA
- Status: Offline
- Contact:
Re: Firts try with OpenJDK on X86 ends in crash
The native part of the Java runtime is 2/3 C++ and 1/3 C I believe, but I have no idea whether the AWT portion of that is C++ or C.
Re: Firts try with OpenJDK on X86 ends in crash
We're looking at the DECwindows issues. Various headers use "long" and the difference in size between C and C++.
-
- VSI Expert
- Contributor
- Posts: 11
- Joined: Thu Sep 14, 2023 1:26 am
- Reputation: 0
- Status: Offline
Re: Firts try with OpenJDK on X86 ends in crash
The AWT is written in C. So this was not an issue with the DECWindows headers in the new C++. This is an old error that should have crashed OpenJDK on IA64 as well. 64-bit pointers were passed to the XGetWindowProperty and XQueryTree functions instead of 32-bit ones. I've fixed the bugs.
Added in 5 hours 11 minutes 30 seconds:
No, I was wrong. Our OpenJDK IA64 version always uses the _malloc32 routine when doing unsafe.allocateMemory(xxxx).
Therefore, the XGetWindowProperty routine does not crash on IA64. Because on IA64 our OpenJDK is not fully 64-bit.
-
- VSI Expert
- Contributor
- Posts: 11
- Joined: Thu Sep 14, 2023 1:26 am
- Reputation: 0
- Status: Offline
Re: Firts try with OpenJDK on X86 ends in crash
The next test version of the JDK - 372B - has been released. In it, we corrected many errors with XWindows, so I hope the error has been fixed.
Re: Firts try with OpenJDK on X86 ends in crash
Confirm, I can now successfuly run the DLS program to calculate Cricket targets. Fine that it works during the curent World cup in India.