Invalid access of stack red zone from Java VM

后端 未结 4 2222
鱼传尺愫
鱼传尺愫 2021-02-19 06:05

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

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

Has anyone ever encou

4条回答
  •  长发绾君心
    2021-02-19 06:47

    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.

    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.

    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

提交回复
热议问题