从Java VM无效访问堆栈红区 [英] Invalid access of stack red zone from Java VM

查看:170
本文介绍了从Java VM无效访问堆栈红区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试图找出可能导致Java中出现此错误的原因:

I'm trying to figure out what can cause this error in Java:

Invalid access of stack red zone 0x115ee0ed0 rip=0x114973900

有没有人遇到过此错误消息?它实际上是杀死了JVM,一切都停在那里。

Has anyone ever encountered this error message? It's literally killing the JVM and everything stops there.

我目前正在使用这个版本的Java :(在OS X 10.6上)

I'm currently using this version of Java:(on OS X 10.6)

java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

所有我'我正在寻找的是一些关于如何避免再次发生这种情况的解释和提示。

All I'm looking for is some sort of explanation and tips on how to avoid hitting this again.

提前致谢!

推荐答案

在不查看代码的情况下,很难说出导致错误的原因,但这里有关于红区的解释以及很少讨论问题的链接。

Without looking at your code, it's difficult to say what is causing the error but here is explanation on red zone and also few links which discuss about the problem.


分配给
应用程序的每个内存块都带有一个前导和
尾随redzone,这是一个特殊的
签名在内存之前,
就在分配给
应用程序的内存之后。如果应用程序是
覆盖此区域之外,
红区签名将被
覆盖。然后在
应用程序崩溃后,当返回内存时你得到
异常终止,而操作系统可以检查红色区域

Each block of memory allocated to an application comes with a leading and trailing "redzone" which is a special signature in memory just before and just after the memory allocated to the application. If the application were to overwrite outside this region, the red zone signature would be overwritten. Then later on the application crashes and you get this abend when the memory is returned, and the OS can inspect the red zones.

这个问题已在Mac OSX上找到,因此当找不到类时,它可能与类加载器问题有关,但在mac osx上,它被报告为红区访问。
所以尝试使用JDK 1.5,看看你是否可以重现这个问题。

This issues has been found on Mac OSX so it could be something related to class loader issues when class is not found but on mac osx, it's been reported as red zone access. So try it with JDK 1.5 and see if you can reproduce the problem.

http://osdir.com/ml/java.objectweb.asm/2007-07/msg00004.html

http://wiki.geneontology.org/index。 php / OEWG_20090505

http://forums.oracle.com/forums/thread.jspa?threadID=429325

这篇关于从Java VM无效访问堆栈红区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆