Invalid memory access of location in Java

后端 未结 4 1595
你的背包
你的背包 2020-12-29 08:45

I\'ve been working on a Java project for year. My code had been working fine for months. A few days ago I upgraded the Java SDK to the newest version 1.6.0_26 on my Mac (Sno

4条回答
  •  长情又很酷
    2020-12-29 09:05

    I just came across this situation and it turned out to be related to a piece of code that was serializing a JSON object with a cyclic reference to itself. I removed the cycle and the error went away. I suspect this is related to a memory overflow error that is now handled differently by newer JVMs on Mac OSX. In this case, I was running Mac OSX 10.7.

    For completeness the errors I was receiving were:

    Invalid access of stack red zone 0x10e586d30 rip=0x10daabba6
    Bus error: 10
    

    And:

    Invalid memory access of location 0x10b655890 rip=0x10a8baba6
    Segmentation fault: 11
    

提交回复
热议问题