Invalid access of stack red zone from Java VM

后端 未结 4 2134
鱼传尺愫
鱼传尺愫 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:26

    In case this is helpful for anyone else. I encountered this error because because if a bad string passed to JSONArray.fromObject(jsonString);

    I am running: java version "1.6.0_29" Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527) Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode) OSX 10.6.8

    The jsonString had a null value at the very beginning and the error was:

    Invalid access of stack red zone 0x10d446ba0 rip=0x10c384b87

    Bus error

    This completely killed the jvm.

    Once I figured out it was the bad json string the fix was easy.

    Hope that helps someone.

    0 讨论(0)
  • 2021-02-19 06:28

    I found the same error on OSX today. Tracked it down to what amounted to a stackOverlfow in an entitybean

    0 讨论(0)
  • 2021-02-19 06:34

    As already mentioned, this is appears to be a stealth stack overflow. Bump up your stack size JVM parameter (-Xss). In my case, going from -Xss128k to -Xss1024k did the trick.

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题