Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

macos - mac m1 Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGFPE (0x8) at pc=0x000000010e6cb868, pid=4484, tid=0x0000000000002403
#
# JRE version: Java(TM) SE Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.191-b12 mixed mode bsd-amd64 compressed oops)

problem: # Problematic frame: # j com.sun.tools.javac.comp.ConstFold.fold2(ILcom/sun/tools/javac/code/Type;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/code/Type;+877 # # Failed to write core dump. 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: # http://bugreport.java.com/bugreport/crash.jsp #

---------------  T H R E A D  ---------------

Current thread (0x00007f84eb009000):  JavaThread "main" [_thread_in_Java, id=9219, stack(0x000000030485b000,0x000000030495b000)]

siginfo: si_signo: 8 (SIGFPE), si_code: 5 (FPE_FLTINV), si_addr: 0x000000010e6cb868

Registers:
RAX=0x0000000000000001, RBX=0x000000000000006c, RCX=0x0000000000000000, RDX=0x0000000000000000
RSP=0x00000003049581f0, RBP=0x0000000304958238, RSI=0x0000000304958190, RDI=0x00000007c0011570
R8 =0x00000007777abf28, R9 =0x00000007777abf08, R10=0x000000010d108120, R11=0x000000010f1071c0
R12=0x0000000000000000, R13=0x000000012c1db8c0, R14=0x0000000304958270, R15=0x00007f84eb009000
RIP=0x000000010e6cb868, EFLAGS=0x0000000000000a83, ERR=0x0000000000000000
  TRAPNO=0x0000000000000000

Top of Stack: (sp=0x00000003049581f0)
0x00000003049581f0:   000000077506ece0 00000003049581f8
0x0000000304958200:   000000012c1db8bd 0000000304958270
0x0000000304958210:   000000012c1dc5c0 000000012cb95ea8
0x0000000304958220:   000000012c1dc150 0000000000000000
0x0000000304958230:   0000000304958280 000000077507da30
0x0000000304958240:   000000010feee024 00000006c1034b10
0x0000000304958250:   00000006c1028340 00000007777abf28
0x0000000304958260:   00000007777abf08 000000070000006c
0x0000000304958270:   000000077507fae0 000000010feee024
0x0000000304958280:   00000006c19afb80 000000010ea03894
0x0000000304958290:   00000007f805b996 000000077507da30
0x00000003049582a0:   00000007756f8658 0000000700000002
0x00000003049582b0:   000000077507fd90 00000007777abdd0
0x00000003049582c0:   000000077506ece0 00000007777a73b8
0x00000003049582d0:   00000007759d7228 0000000110346fb4
0x00000003049582e0:   000000077add8f08 0000000000000000
0x00000003049582f0:   00000007777abd40 00000007759d7228
0x0000000304958300:   00000000eea0faba 000000010fe7f374
0x0000000304958310:   000000000000000c 000000010fe7d65c
0x0000000304958320:   0000000000000000 00000007777abd40
0x0000000304958330:   00000007777abdf0 00000007777abd40
0x0000000304958340:   00000007777abd40 0000000000000030
0x0000000304958350:   00000007777abdf0 000000077507da30
0x0000000304958360:   0000000000000001 000000010e8134a4
0x0000000304958370:   00000000eeadf0cb 000000077507d5d0
0x0000000304958380:   00000007756f8748 000000077507da30
0x0000000304958390:   00000007756f8838 00000007777abf08
0x00000003049583a0:   00007f84eb009000 00007f84eb009000
0x00000003049583b0:   000000077507d5d0 00000007756f8748
0x00000003049583c0:   00000007777abf08 00000007777abf28
0x00000003049583d0:   00000000634e5337 00007f84eb009000
0x00000003049583e0:   00000007777abe88 000000011a46f000 

Instructions: (pc=0x000000010e6cb868)
0x000000010e6cb848:   c8 8b 04 24 48 83 c4 08 81 f8 00 00 00 80 0f 85
0x000000010e6cb858:   0b 00 00 00 33 d2 83 f9 ff 0f 84 03 00 00 00 99
0x000000010e6cb868:   f7 f9 41 0f b6 5d 01 49 ff c5 49 ba 20 81 10 0d
0x000000010e6cb878:   01 00 00 00 41 ff 24 da 80 00 00 00 00 00 00 00 

Register to memory mapping:

RAX=0x0000000000000001 is an unknown value
RBX=0x000000000000006c is an unknown value
RCX=0x0000000000000000 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x00000003049581f0 is pointing into the stack for thread: 0x00007f84eb009000
RBP=0x0000000304958238 is pointing into the stack for thread: 0x00007f84eb009000
RSI=0x0000000304958190 is pointing into the stack for thread: 0x00007f84eb009000
RDI=0x00000007c0011570 is pointing into metadata
R8 =0x00000007777abf28 is an oop
com.sun.tools.javac.code.Type$JCPrimitiveType$1 
 - klass: 'com/sun/tools/javac/code/Type$JCPrimitiveType$1'
R9 =0x00000007777abf08 is an oop
com.sun.tools.javac.code.Type$JCPrimitiveType$1 
 - klass: 'com/sun/tools/javac/code/Type$JCPrimitiveType$1'
R10=0x000000010d108120: _ZN19TemplateInterpreter13_active_tableE+0x2000 in /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre/lib/server/libjvm.dylib at 0x000000010c800000
R11=0x000000010f1071c0 is at entry_point+32 in (nmethod*)0x000000010f107050
R12=0x0000000000000000 is an unknown value
R13=0x000000012c1db8c0 is pointing into metadata
R14=0x0000000304958270 is pointing into the stack for thread: 0x00007f84eb009000
R15=0x00007f84eb009000 is a thread


Stack: [0x000000030485b000,0x000000030495b000],  sp=0x00000003049581f0,  free space=1012k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
j  com.sun.tools.javac.comp.ConstFold.fold2(ILcom/sun/tools/javac/code/Type;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/code/Type;+877
J 6941 C1 com.sun.tools.javac.comp.Attr.visitBinary(Lcom/sun/tools/javac/tree/JCTree$JCBinary;)V (301 bytes) @ 0x000000010feee024 [0x000000010feec100+0x1f24]
J 7646 C2 com.sun.tools.javac.tree.JCTree$JCBinary.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x000000010f6abf24 [0x000000010f6abee0+0x44]
J 8325 C2 com.sun.tools.javac.comp.Attr.visitVarDef(Lcom/sun/tools/javac/tree/JCTree$JCVariableDecl;)V (406 bytes) @ 0x000000010f61e620 [0x000000010f61d400+0x1220]
J 4996 C2 com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x000000010f5db2a4 [0x000000010f5db260+0x44]
J 8612 C2 com.sun.tools.javac.comp.Attr.visitBlock(Lcom/sun/tools/javac/tree/JCTree$JCBlock;)V (363 bytes) @ 0x00000001103c7e54 [0x00000001103c7ae0+0x374]
J 5934 C2 com.sun.tools.javac.tree.JCTree$JCBlock.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x000000010ea79f64 [0x000000010ea79f20+0x44]
J 7562 C2 com.sun.tools.javac.comp.Attr.attribStat(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;)Lcom/sun/tools/javac/code/Type; (11 bytes) @ 0x000000010ecf3218 [0x000000010ecf3180+0x98]
j  com.sun.tools.javac.comp.Attr.visitTry(Lcom/sun/tools/javac/tree/JCTree$JCTry;)V+246
J 7664 C1 com.sun.tools.javac.tree.JCTree$JCTry.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x000000010f6c0fcc [0x000000010f6c0ec0+0x10c]
J 8612 C2 com.sun.tools.javac.comp.Attr.visitBlock(Lcom/sun/tools/javac/tree/JCTree$JCBlock;)V (363 bytes) @ 0x00000001103c7e54 [0x00000001103c7ae0+0x374]
J 5934 C2 com.sun.tools.javac.tree.JCTree$JCBlock.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x000000010ea79f64 [0x000000010ea79f20+0x44]
J 5637 C2 com.sun.tools.javac.comp.Attr.attribTree(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;Lcom/sun/tools/javac/comp/Attr$ResultInfo;)Lcom/sun/tools/javac/code/Type; (148 bytes) @ 0x000000010f836ce0 [0x000000010f836c40+0xa0]
J 5891 C1 com.sun.tools.javac.comp.Attr.visitMethodDef(Lcom/sun/tools/javac/tree/JCTree$JCMethodDecl;)V (1198 bytes) @ 0x000000010f94a49c [0x000000010f943400+0x709c]
J 5728 C2 com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(Lcom/sun/tools/javac/tree/JCTree$Visitor;)V (6 bytes) @ 0x000000010edfeee4 [0x000000010edfeea0+0x44]
J 5637 C2 com.sun.tools.javac.comp.Attr.attribTree(Lcom/sun/tools/javac/tree/JCTree;Lcom/sun/tools/javac/comp/Env;Lcom/sun/tools/javac/comp/Attr$ResultInfo;)Lcom/sun/tools/javac/code/Type; (148 bytes) @ 0x000000010f836ce0 [0x000000010f836c40+0xa0]
J 7951 C1 com.sun.tools.javac.comp.Attr.attribClassBody(Lcom/sun/tools/javac/comp/Env;Lcom/sun/tools/javac/code/Symbol$ClassSymbol;)V (726 bytes) @ 0x000000010f35c94c [0x000000010f358b60+0x3dec]
J 6935 C1 com.sun.tools.javac.comp.Attr.attribClass(Lcom/sun/tools/javac/code/Symbol$ClassSymbol;)V (513 bytes) @ 0x000000010fecef24 [0x000000010fecc760+0x27c4]
J 8135 C1 com.sun.tools.javac.comp.Attr.attribClass(Lcom/sun/tools/javac/util/JCDiagnostic$DiagnosticPosition;Lcom/sun/tools/javac/code/Symbol$ClassSymbol;)V (27 bytes) @ 0x00000001101293c4 [0x00000001101292e0+0xe4]
j  com.sun.tools.javac.comp.Attr.attrib(Lcom/sun/tools/javac/comp/Env;)V+36
J 8282 C1 com.sun.tools.javac.main.JavaCompiler.attribute(Lcom/sun/tools/javac/comp/Env;)Lcom/sun/tools/javac/comp/Env; (277 bytes) @ 0x000000010fee7c5c [0x000000010fee5b60+0x20fc]
j  com.sun.tools.javac.main.JavaCompiler.compile2()V+177
j  com.sun.tools.javac.main.JavaCompiler.compile(Lcom/sun/tools/javac/util/List;Lcom/sun/tools/javac/util/List;Ljava/lang/Iterable;)V+165
j  com.sun.tools.javac.main.Main.compile([Ljava/lang/String;[Ljava/lang/String;Lcom/sun/tools/javac/util/Context;Lcom/sun/tools/javac/util/List;Ljava/lang/Iterable;)Lcom/sun/tools/javac/main/Main$Result;+1299
j  com.sun.tools.javac.api.JavacTaskImpl.doCall()Lcom/sun/tools/javac/main/Main$Result;+59
j  com.sun.tools.javac.api.JavacTaskImpl.call()Ljava/lang/Boolean;+1
j  org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess([Ljava/lang/String;Lorg/codehaus/plexus/compiler/CompilerConfiguration;[Ljava/lang/String;)Lorg/codehaus/plexus/compiler/CompilerResult;+129
j  org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(Lorg/codehaus/plexus/compiler/CompilerConfiguration;)Lorg/codehaus/plexus/compiler/CompilerResult;+211
j  org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute()V+3204
j  org.apache.maven.plugin.compiler.TestCompilerMojo.execute()V+20
j  org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Lorg/apache/maven/execution/MavenSession;Lorg/apache/maven/plugin/MojoExecution;)V+152
j  org.apache.maven.lifecycle.internal.MojoExecutor.execute(Lorg/apache/maven/execution/MavenSession;Lorg/apache/maven/plugin/MojoExecution;Lorg/apache/maven/lifecycle/internal/ProjectIndex;Lorg/apache/maven/lifecycle/internal/DependencyContext;)V+215
j  org.apache.maven.lifecycle.internal.MojoExecutor.execute(Lorg/apache/maven/execution/MavenSession;Lorg/apache/maven/plugin/MojoExecution;Lorg/apache/maven/lifecycle/internal/ProjectIndex;Lorg/apache/maven/lifecycle/internal/DependencyContext;Lorg/apache/maven/lifecycle/internal/PhaseRecorder;)V+6
j  org.apache.maven.lifecycle.internal.MojoExecutor.execute(Lorg/apache/maven/execution/MavenSession;Ljava/util/List;Lorg/apache/maven/lifecycle/internal/ProjectIndex;)V+60
j  org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lorg/apache/maven/execution/MavenSession;Lorg/apache/maven/execution/MavenSession;Lorg/apache/maven/lifecycle/internal/ReactorContext;Lorg/apache/maven/project/MavenProject;Lorg/apache/maven/lifecycle/internal/TaskSegment;)V+179
j  org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lorg/apache/maven/execution/MavenSession;Lorg/apache/maven/lifecycle/internal/ReactorContext;Lorg/apache/maven/project/MavenProject;Lorg/apache/maven/lifecycle/internal/TaskSegment;)V+7
j  org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(Lorg/apache/maven/execution/MavenSession;Lorg/apache/maven/lifecycle/internal/ReactorContext;Lorg/apache/maven/lifecycle/internal/ProjectBuildList;Ljava/util/List;Lorg/apache/maven/lifecycle/internal/ReactorBuildStatus;)V+77
j  org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lorg/apache/maven/execution/MavenSession;)V+348
j  org.apache.maven.DefaultMaven.doExecute(Lorg/apache/maven/execution/MavenExecutionRequest;Lorg/apache/maven/execution/MavenSession;Lor

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I've fixed the same issue by changing the JDK from the Oracle version to the Zulu one.

You can download the ARM-64 supported JDK 8 built by Zulu from the following link: https://www.azul.com/downloads/zulu-community/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk

Reference: https://stackoverflow.com/a/64788161/2906153


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...