How to debug the segmentation fault error ?Cant find for a long while
-
wrote on 22 Jun 2022, 03:05 last edited by
When I called the jni function with the jvm.dll by imported from the project
It occured the error below.I dont know why,someone told me that its wrong with the pointer of the JVM.
But I dont know why.
Is it possible is the reason that there is the pointer Im using the wrong way?JNIEnv * mJvmEnv; JavaVM * mJvm; long mVersion; JavaVMInitArgs vmInitArgs; //error line JNI_CreateJavaVM(&mJvm, (void**)&mJvmEnv, &vmInitArgs);
-
Hi,
Based on this Stack Overflow thread, you are likely not giving enough parameter to properly create the Java virtual machine.
Note that this has nothing to do with Qt although you are using Qt Creator.
-
Hi,
Based on this Stack Overflow thread, you are likely not giving enough parameter to properly create the Java virtual machine.
Note that this has nothing to do with Qt although you are using Qt Creator.
wrote on 22 Jun 2022, 09:12 last edited by@SGaist
I think I've gived the enouth parameters
like the classpath or the -xms eg
it worked well when I didnot used the debug.
Once i debuged the program,it occured the segmentation fault when called theJNI_CreateJavaVM(&mJvm, (void**)&mJvmEnv, &vmInitArgs);
So is there any possible that its a bug of the jvm.dll?or Im using the wrong parameters?Please
-
That's the kind of details you should state directly when asking a question. Based on your original code sample and description, there's no way to know that your issue happens in debug mode and not in release.
Do you have a debug version of the jvm.dll ?
-
That's the kind of details you should state directly when asking a question. Based on your original code sample and description, there's no way to know that your issue happens in debug mode and not in release.
Do you have a debug version of the jvm.dll ?
wrote on 23 Jun 2022, 00:22 last edited by@SGaist
NO,I cannot find the debug version of the jvm.dll,
I searched a lot from the net.Unfortunately there's no one.
If the debug version could help,Will you help me to get one ? -
That I can't do.
On the idea side, did you try to activate the Java debugging mode ?
1/6