m1 更新 11.4 后 Java 报错...

2021-05-25 11:46:44 +08:00
 stimw

A fatal error has been detected by the Java Runtime Environment:

Internal Error (sharedRuntime.cpp:531), pid=2424, tid=7427

Error: ShouldNotReachHere()

JRE version: OpenJDK Runtime Environment (16.0+14) (build 16+14)

Java VM: OpenJDK 64-Bit Server VM (16+14, mixed mode, tiered, compressed oops, g1 gc, bsd-aarch64)

No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

If you would like to submit a bug report, please visit: https://bugreport.java.com/bugreport/crash.jsp

--------------- T H R E A D --------------- Current thread (0x000000015400be00): JavaThread "main" [_thread_in_Java, id=7427, stack(0x000000016d7b0000,0x000000016d9b3000)] Stack: [0x000000016d7b0000,0x000000016d9b3000], sp=0x000000016d9b1750, free space=2053k Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.dylib+0x9b4130] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x46c V [libjvm.dylib+0x9b4884] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, char*)+0x40 V [libjvm.dylib+0x2ad690] report_vm_error(char const*, int, char const*, char const*, ...)+0x5c V [libjvm.dylib+0x2ad864] report_should_not_reach_here(char const*, int)+0x2c V [libjvm.dylib+0x818d4c] SharedRuntime::raw_exception_handler_for_return_address(JavaThread*, unsigned char*)+0x178 V [libjvm.dylib+0x818df0] SharedRuntime::exception_handler_for_return_address(JavaThread*, unsigned char*)+0x28 v ~StubRoutines::forward exception j java.lang.Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+43 java.base@16

烦得很...用 brew 重装也一样

4987 次点击
所在节点    Apple
30 条回复
gxy2825
2021-05-25 11:58:03 +08:00
刚准备更新,还好来 v 站看了一眼,兄弟保重
stimw
2021-05-25 12:26:26 +08:00
要疯了,安装 azul 的 jdk16 也一样
yihy8023
2021-05-25 12:38:22 +08:00
正在更新中,别吓我呀
stimw
2021-05-25 12:42:06 +08:00
有老哥更新完没问题的么。。我是解决不掉了,如果有人没问题我就直接重装了
stimw
2021-05-25 12:45:33 +08:00
@yihy8023 更新完了能反馈一下吗
yihy8023
2021-05-25 12:50:45 +08:00
@stimw 没有问题呀,
❯ java -version
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (Zulu 8.52.0.23-CA-macos-aarch64) (build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (Zulu 8.52.0.23-CA-macos-aarch64) (build 25.282-b08, mixed mode)
stimw
2021-05-25 12:58:24 +08:00
@yihy8023 emm...jdk16 呢
devinww
2021-05-25 13:23:01 +08:00
有没有用 8 的。。
wellsc
2021-05-25 13:26:43 +08:00
sdkman 安装试试
Ayanokouji
2021-05-25 13:48:04 +08:00
11.4 jdk16 没问题
Ayanokouji
2021-05-25 13:48:36 +08:00
我的是 intel 的
stimw
2021-05-25 15:09:34 +08:00
更新一下,重装系统依然没有用
stimw
2021-05-25 15:16:31 +08:00
@Ayanokouji intel 应该没问题。。m1 真是🐴没了
stimw
2021-05-25 15:25:07 +08:00
暂时的解决方法:千万不要安装 jdk16 !!!安装 15 !!!
mons
2021-05-25 15:43:55 +08:00
M1 11.4 Zulu JDK 16 没问题

java -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment Zulu16.30+15-CA (build 16.0.1+9)
OpenJDK 64-Bit Server VM Zulu16.30+15-CA (build 16.0.1+9, mixed mode)
MrKrabs
2021-05-25 15:57:23 +08:00
我觉得 m1 就别第一时间升系统了
DinnyXu
2021-05-25 16:05:24 +08:00
open jdk 的适配率还是不够高,就平常的项目使用 open jdk 启动都还有报错,跟系统没有原因
stimw
2021-05-25 16:07:05 +08:00
@mons 我 15 没问题 16 报错,吐了
czwen1993
2021-05-25 16:12:05 +08:00
邪了,我没更新,但今天也出现类似的问题

No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

然后我执行 ulimit -c unlimited 好像就没出现了。

不过我是 intel 。
stimw
2021-05-25 18:23:03 +08:00
@czwen1993 对我没啥用。。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/779062

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX