-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash at TEST Ed,Gd
#1445
Comments
Can you put the jvm/jre you used and the .java binary also, for local debugging? I have run some java games succesfully already, so it should work. |
The jdk and javafx is too large to upload, so I put the link. jdk: https://aka.ms/download-jdk/microsoft-jdk-11.0.22-linux-x64.tar.gz .java files: |
Continue tracking this issue. Let me know if more information is needed. Thanks for the effort! |
don't mean to rush, just want to know are there any updates? |
No, I haven't started looking at this yet, sorry. |
I suspect that Java allocates a memory area using mmap64, and box64 returns the area at I reviewed the logs for box64/src/wrapped/wrappedlibc.c Lines 2663 to 2669 in b64e6bd
box64/src/wrapped/wrappedlibc.c Lines 2817 to 2821 in b64e6bd
Here is the related log:
Thus, the assumption appears to be correct: Java allocates an area and marks it as reserved. However, why does |
This is probably a stack. And the 4096 byte (a page) that are protected is the "stack guard" to detect stack overflow. The error is probably comming from some place else, like a stack search for something. I still haven't started debugging this one. |
Thanks for the response! I will keep waiting for support from the community. |
Is the troubleshooting underway? I noticed that the latest commit in master branch seems to be related to this issue. :D |
it wasn't for this issue, but there are a few similar ones. I'll start analysing this issue soon-ish now. |
okay |
Running a Java program with an x64 JVM, Box64 would crash at
TEST Ed, Gd
.Box64 LOG
GDB
It seems that
oped
points to an invalid address,0x60000008
, because0x60000008
appears to be in a reserved memory space.I searched the memory address
0x60000000
in the box64 code and found#define HIGH (void*)0x60000000
. However, I still have no idea whyED
points to a reserved memory address.Environment
d53ff127
on branch main.Java Code:
Comamnd compiling the java code:
javac --module-path ${PATH_TO_JAVAFX} --add-modules javafx.controls HelloJNI.java
The text was updated successfully, but these errors were encountered: