作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的应用程序在生产中遇到现金。
故障转储表明 GCTaskThread 中发生了 SIGSEGV
它使用 JNI,所以可能有一些内存损坏的来源,尽管我不能确定。
我怎样才能调试这个问题 - 我虽然做了 -XX:OnError ......但我不确定什么能帮助我调试这个。
另外,你们中的一些人能否给出一个具体的例子,说明 JNI 代码如何使用 SIGSEGV 使 GC 崩溃
编辑 :
操作系统:SUSE Linux Enterprise Server 10 (x86_64)
vm_info:用于 linux-amd64 JRE (1.6.0_10-b33) 的 Java HotSpot(TM) 64 位服务器 VM (11.0-b15),构建于 2008 年 9 月 26 日 01:10:29 由“java_re”和 gcc 3.2.2 ( SuSE Linux)
编辑 :
禁用超线程后问题不再发生,有什么想法吗?
最佳答案
JNI 代码中的错误可能以多种方式发生:
The program crashes during execution of a native method (most common).
The program crashes some time after returning from the native method, often during GC (not so common).
Bad JNI code causes deadlocks shortly after returning from a native method (occasional).
Whether the call and the call that initialized JNI are on the same thread.
Whether the object parameters are valid objects.
Whether local or global references refer to valid objects.
Whether the type of a field matches the Get<Type>Field or Set<Type>Field call.
Whether static and nonstatic field IDs are valid.
Whether strings are valid and non-null.
Whether array elements are non-null.
The types on array elements.
关于crash - 如何在 jvm GCTaskThread 中调试 SIGSEGV,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4645870/
我是一名优秀的程序员,十分优秀!