Invalid memory access of location in Java

后端 未结 4 1582
你的背包
你的背包 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:17

    When a JVM starts crashing like that, it is a sign that something has broken the JVM's execution model.

    Does your application include any native code? Does it use any 3rd-party libraries with native code components? If neither is true, then the chances are that this is a bug in the Apple port of the JVM. It could be a JIT compiler bug, or a bug in some JVM native code library.

    What can you do about a bug like that?

    Not a lot.

    • Reduce your application by progressively chopping out bits until you have a small testcase that exhibits the problem.
    • Based on the testcase, see if there's some empirical way to avoid the problem.
    • Submit a bug report to Apple with the testcase.

提交回复
热议问题