c/c++ 让进程crash很easy 搞一把野指针就可以 Java 里 让 jvm 挂掉 也可以采用类似的思路 使用 unsafe ,名副其实,unsafe操作的确很危险 Field f = Unsafe.class.getDeclaredField("theUnsafe"); f.setAccessible(true); unsafe = (Unsafe) f.get(null); unsafe.freeMemory(1); java(75847,0x70000021a000) malloc: *** error for object 0x1: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug