Firts try with OpenJDK on X86 ends in crash

Post Reply

Topic author
joukj
Master
Posts: 175
Joined: Thu Aug 27, 2020 5:50 am
Reputation: 0
Status: Offline

Firts try with OpenJDK on X86 ends in crash

Post by joukj » Wed Sep 13, 2023 2:15 am

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

User avatar

arne_v
Master
Posts: 347
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Online
Contact:

Re: Firts try with OpenJDK on X86 ends in crash

Post by arne_v » Wed Sep 13, 2023 7:57 am

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.
Arne
arne@vajhoej.dk
VMS user since 1986


pustovetov
VSI Expert
Contributor
Posts: 18
Joined: Thu Sep 14, 2023 1:26 am
Reputation: 0
Status: Offline

Re: Firts try with OpenJDK on X86 ends in crash

Post by pustovetov » Thu Sep 14, 2023 1:53 am

joukj wrote:
Wed Sep 13, 2023 2:15 am
My fist try with OpenJDK on X86 ended with a fatal error. (see the attached .log file)
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.


Topic author
joukj
Master
Posts: 175
Joined: Thu Aug 27, 2020 5:50 am
Reputation: 0
Status: Offline

Re: Firts try with OpenJDK on X86 ends in crash

Post by joukj » Thu Sep 14, 2023 6:02 am

Normally C and Decwindows works
I have a lot of problems (not working) with C++ code calling Decwindows.

User avatar

arne_v
Master
Posts: 347
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Online
Contact:

Re: Firts try with OpenJDK on X86 ends in crash

Post by arne_v » Thu Sep 14, 2023 3:31 pm

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.
Arne
arne@vajhoej.dk
VMS user since 1986


jreagan
VSI Expert
Master
Posts: 139
Joined: Tue Dec 01, 2020 8:40 am
Reputation: 0
Status: Offline

Re: Firts try with OpenJDK on X86 ends in crash

Post by jreagan » Sun Sep 17, 2023 6:30 pm

We're looking at the DECwindows issues. Various headers use "long" and the difference in size between C and C++.


pustovetov
VSI Expert
Contributor
Posts: 18
Joined: Thu Sep 14, 2023 1:26 am
Reputation: 0
Status: Offline

Re: Firts try with OpenJDK on X86 ends in crash

Post by pustovetov » Mon Sep 18, 2023 2:48 am

arne_v wrote:
Thu Sep 14, 2023 3:31 pm
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.
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.


pustovetov
VSI Expert
Contributor
Posts: 18
Joined: Thu Sep 14, 2023 1:26 am
Reputation: 0
Status: Offline

Re: Firts try with OpenJDK on X86 ends in crash

Post by pustovetov » Wed Oct 18, 2023 4:23 am

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.


Topic author
joukj
Master
Posts: 175
Joined: Thu Aug 27, 2020 5:50 am
Reputation: 0
Status: Offline

Re: Firts try with OpenJDK on X86 ends in crash

Post by joukj » Wed Oct 18, 2023 4:35 am

Confirm, I can now successfuly run the DLS program to calculate Cricket targets. Fine that it works during the curent World cup in India.

Post Reply