Invalid access of stack red zone from Java VM

后端 未结 4 2208
鱼传尺愫
鱼传尺愫 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.

提交回复
热议问题