-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
JVM Crashing when use sigar 1.6.4 #22
Comments
@peiyanfei - Can you send us the full dump file that occurs when this crash happens? |
@karianna For some reason I cannot support the dump file before,So I write a new test program,it‘s crash too. Can you give me an email address, i will send to it. Thanks. |
The log file: hs_err_pid5980.log |
@peiyanfei You can mail me at martijn.verburg AT adoptopenjdk.net |
@karianna I have send the dump file to your email, please check. |
@karianna Could you extract additional information? @peiyanfei You wrote something about a test program. Please share so that we can reproduce the problem. Otherwise, we cannot work on it. |
@peiyanfei - Apologies I didn't not appear to receive it, what size is that file? |
Hi, same issue here with the program available here: Simply run the jar using java. The dump:
|
It crashes in Sigar's native code in various places which indicates that it is a problem with Sigar. However, it does not crash with Red Hat's upstream build. Looking at the output of
For translating the linker versions to Visual Studio versions, see https://mariusbancila.ro/blog/2015/08/12/version-history-of-vc-mfc-and-atl/. @karianna Is my conclusion correct that this is most likely toolchain related and the right course of action would be to recompile Sigar? |
Try with Java 9+. It works fine with Java 8. |
@jloisel I don't follow. https://github.com/OctoPerf/jmx-agent/releases says the software is only compatible to Java 8. Besides, I just got a crash on 8. |
Yeah, I've put the warning because it crashes due to Sigar DLL not working on Java 9+. BEsides, the agent only runs on Windows. |
It's more likely to crash on newer JDKs if it's toolchain related because those are even built with VS 2017. |
What do you mean by toolchain? There is an open issue in Sigar repo too: On my computer, it works with JDK8 and crashes all the time with JDK9+. |
I managed to recompile Sigar with the same VS version that we're using (VS 2017). This does not help. Zulu 11.0.7 (built with VS 2017) crashes, too. Everything indicates that this is a problem within Sigar. I recommend to patch Sigar or to select a tool that is being maintained. |
There is sadly no alternative to Sigar, but thanks anyway. |
|
It is sigar 1.6.4 bug. |
I downloaded another sigar 1.6.4 jar (1.6.4.129 (17.1.2016) release) from below link and placed in specific tool lib path (ServerAgent-2.2.3\lib).., then it worked for me. |
OS: Windows Server 2012 R2 , 64 bit build 9600 (6.3.9600.17415)
JRE: 1.8.0_222-b10 64bit
Native frames:
C [sigar-amd64-winnt.dll+0x14ed4]
C [sigar-amd64-winnt.dll+0x22718]
Java frames:
j org.hyperic.sigar.Sigar.getCpuListNative()[Long/hyperic/sigar/Cpu;+0
I have try some versions:
AdoptOpenJDK Builds:
OpenJDK8U-jre_x64_windows_hotspot_8u192b12 jvm not crash
OpenJDK8U-jre_x64_windows_hotspot_8u222b10 jvm crash
OpenJDK8U-jre_x64_windows_hotspot_8u232b09 jvm crash
OpenJDK upstream builds:
OpenJDK8u-jre_x64_windows_8u232b09 jvm not crash
I think something wrong with the last builds of AdoptOpenJDK.
The text was updated successfully, but these errors were encountered: