京东自营 618 + 国补 iPhone 历史最低价

Java 硬

通过访问位置0x00000000(或如64位:0x0000000000000000)中的内存(也称为空地址),使JVM崩溃。
实例源码:
源代码:
执行
执行中...
执行结果:
  • Reflection Access: class sun.misc.Unsafe @--> theUnsafe
  • #
  • # A fatal error has been detected by the Java Runtime Environment:
  • #
  • # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000716d7bdf, pid=904, tid=0x000000000000173c
  • #
  • # JRE version: Java(TM) SE Runtime Environment (8.0_231-b11) (build 1.8.0_231-b11)
  • # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.231-b11 mixed mode windows-amd64 compressed oops)
  • # Problematic frame:
  • # V [jvm.dll+0x1e7bdf]
  • #
  • # Core dump written. Default location: C:\work\run-test\e\hs_err_pid904.mdmp
  • #
  • # An error report file with more information is saved as:
  • # C:\work\run-test\e\hs_err_pid904.log
  • #
  • # If you would like to submit a bug report, please visit:
  • # http://bugreport.java.com/bugreport/crash.jsp
  • #
  •  
    本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。

    编辑于

    关注时代Java

    关注时代Java