Fatal error when running with +UseZGC

Nils Eliasson nils.eliasson at oracle.com
Thu Mar 8 21:21:51 UTC 2018


Thank you for the quick feedback,

I have posted a patch on this list that solves the problem. It will be 
pushed to the repo after review.

Regards,

Nils Eliasson


On 2018-03-08 16:56, Mohammad Dashti wrote:
> Hi Nils,
> Here's the information:
>
> intx MaxVectorSize                            = 16                     
>       {C2 product} {default}
>
> CPU:total 4 (initial active 4) (4 cores per cpu, 1 threads per core) 
> family 21 model 101 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, 
> ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, mmxext, 
> 3dnowpref, lzcnt, sse4a, tsc, tscinvbit, tscinv, bmi1, bmi2, fma
> CPU Model and flags from /proc/cpuinfo:
> model name      : AMD A10-9600P RADEON R5, 10 COMPUTE CORES 4C+6G
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
> mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext 
> fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good acc_power nopl 
> nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 
> fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm 
> cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch 
> osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext 
> perfctr_core perfctr_nb bpext ptsc mwaitx cpb hw_pstate vmmcall 
> fsgsbase bmi1 avx2 smep bmi2 xsaveopt arat npt lbrv svm_lock nrip_save 
> tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold 
> avic overflow_recov
>
> Thanks,
> Mohammad
>
>
> On Thu, Mar 8, 2018 at 7:47 AM, Nils Eliasson 
> <nils.eliasson at oracle.com <mailto:nils.eliasson at oracle.com>> wrote:
>
>     Hi Mohammad,
>
>     If you start the JVM with -XX:+PrintFlagsFinal, what value does
>     the flag MaxVectorSize get?
>
>     Also, you got a hs_err_pid*.log file from the crash. At the end
>     there is a section with CPU information. It looks something like:
>
>     "CPU:total 4 (initial active 4) (2 cores per cpu, 2 threads per
>     core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse,
>     sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ...
>     CPU Model and flags from /proc/cpuinfo:
>     model name      : Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
>     flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
>     pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
>     pbe syscall nx pdpe1gb rdtscp lm ..."
>
>     Can you please provide that information too?
>
>     Regards,
>
>     Nils
>
>
>
>     On 2018-03-08 15:30, Mohammad Dashti wrote:
>
>         When running with a release/fastdebug/slowdebug build, I get a
>         fatal error
>         only with ZGC. I get this error when running on an AMD
>         machine, I tried the
>         same build on an Intel box and it runs without problems. Here
>         are the
>         relevant details (I simply run "java -XX:+UseZGC -version"):
>
>         Host: A10-9600P, AMD A10-9600P RADEON R5, 10 COMPUTE CORES
>         4C+6G, 4 cores,
>         11G, Ubuntu 16.04.3 LTS
>
>         # A fatal error has been detected by the Java Runtime Environment:
>         #
>         #  Internal Error
>         (zgc/src/hotspot/share/opto/machnode.cpp:580), pid=25940,
>         tid=25952
>         #  assert((uint)_ideal_reg < (uint)_last_machine_leaf &&
>         Type::mreg2type[_ideal_reg]) failed: in bounds
>
>         And here's the call stack:
>
>         Current thread (0x00007f23401967c0):  JavaThread "C2
>         CompilerThread0"
>         daemon [_thread_in_native, id=25952,
>         stack(0x00007f2322d33000,0x00007f2322e34000)]
>
>
>         Current CompileTask:
>         C2:    280   27       4       java.lang.String::charAt (25 bytes)
>         0x00007f2323604738 - 0x00007f2323604751
>
>         Stack: [0x00007f2322d33000,0x00007f2322e34000],
>         sp=0x00007f2322e2eac0,
>         free space=1006k
>         Native frames: (J=compiled Java code, A=aot compiled Java code,
>         j=interpreted, Vv=VM code, C=native code)
>         V  [libjvm.so+0x15968ae]  VMError::report_and_die(int, char
>         const*, char
>         const*, __va_list_tag*, Thread*, unsigned char*, void*, void*,
>         char const*,
>         int, unsigned long)+0x4ce
>         V  [libjvm.so+0x159741f] VMError::report_and_die(Thread*, char
>         const*,
>         int, char const*, char const*, __va_list_tag*)+0x2f
>         V  [libjvm.so+0xaa53e2]  report_vm_error(char const*, int,
>         char const*,
>         char const*, ...)+0x112
>         V  [libjvm.so+0x107b00a]  MachProjNode::bottom_type() const+0x12a
>         V  [libjvm.so+0x89c872] PhaseChaitin::gather_lrg_masks(bool)+0x192
>         V  [libjvm.so+0xce2c2b] PhaseCFG::global_code_motion()+0x11eb
>         V  [libjvm.so+0xce2ee1] PhaseCFG::do_global_code_motion()+0x51
>         V  [libjvm.so+0xa0177a]  Compile::Code_Gen()+0x2ca
>         V  [libjvm.so+0xa0fbb0]  Compile::Compile(ciEnv*, C2Compiler*,
>         ciMethod*,
>         int, bool, bool, bool, DirectiveSet*)+0x1450
>         V  [libjvm.so+0x854e4b] C2Compiler::compile_method(ciEnv*,
>         ciMethod*, int,
>         DirectiveSet*)+0x2db
>         V  [libjvm.so+0xa1bf36]
>         CompileBroker::invoke_compiler_on_method(CompileTask*)+0x7d6
>         V  [libjvm.so+0xa1db98]
>         CompileBroker::compiler_thread_loop()+0x408
>         V  [libjvm.so+0x14f6825] JavaThread::thread_main_inner()+0x1e5
>         V  [libjvm.so+0x14f6ab8]  JavaThread::run()+0x208
>         V  [libjvm.so+0x1261102] thread_native_entry(Thread*)+0x112
>
>         I believe this issue is similar to a previous message:
>         http://mail.openjdk.java.net/pipermail/zgc-dev/2018-March/000169.html
>         <http://mail.openjdk.java.net/pipermail/zgc-dev/2018-March/000169.html>
>
>         Thanks,
>         Mohammad
>
>
>



More information about the zgc-dev mailing list