Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8258423

applications/jcstress/volatiles.java crashes with SIGSEGV in compiled code

XMLWordPrintable

    • x86_64
    • linux

      The following test failed in the JDK17 CI:

      applications/jcstress/volatiles.java

      Here's a snippet from the log file:

              PcDesc(pc=0x00007f9691345800 offset=960 bits=0): org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress::actor1@0 (line 145)
              PcDesc(pc=0x00007f9691345805 offset=965 bits=0): org.openjdk.jcstress.util.Counter::<init>@10 (line 73)
                 org.openjdk.jcstress.util.Counter::<init>@3 (line 66)
                 org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress::actor1@4 (line 145)
              PcDesc(pc=0x00007f969134580a offset=96a bits=0): org.openjdk.jcstress.util.Counter::<init>@21 (line 75)
                 org.openjdk.jcstress.util.Counter::<init>@3 (line 66)
                 org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress::actor1@4 (line 145)
              PcDesc(pc=0x00007f969134580f offset=96f bits=0): org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress::actor1@83 (line 165)
              PcDesc(pc=0x00007f9691345814 offset=974 bits=0): org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress::actor1@88 (line 166)
              PcDesc(pc=0x00007f9691345817 offset=977 bits=0): org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress::actor1@-1 (line 145)
              PcDesc(pc=0x00007f9691345821 offset=981 bits=0): org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress::actor1@57 (line 159)
              PcDesc(pc=0x00007f9691345d59 offset=eb9 bits=0):
              #
              # A fatal error has been detected by the Java Runtime Environment:
              #
              # SIGSEGV (0xb) at pc=0x00007f9691345390, pid=20807, tid=20903
              #
              # JRE version: Java(TM) SE Runtime Environment (17.0+2) (fastdebug build 17-ea+2-LTS-24)
              # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+2-LTS-24, mixed mode, sharing, tiered, z gc, linux-amd64)
              # Problematic frame:
              # J 1847 c2 org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress.actor1()Lorg/openjdk/jcstress/util/Counter; (98 bytes) @ 0x00007f9691345390 [0x00007f9691344ea0+0x00000000000004f0]
              #
              # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S77127/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9197f305-5fec-4924-95a0-1f98da0b152f/runs/e24de72d-ebf8-4729-9092-7b0a99e8a93d/testoutput/test-support/jtreg_open_test_hotspot_jtreg_jcstress_part3/scratch/2/core.20807)
              #
              Unsupported internal testing APIs have been used.
              
              # An error report file with more information is saved as:
              # /opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S77127/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9197f305-5fec-4924-95a0-1f98da0b152f/runs/e24de72d-ebf8-4729-9092-7b0a99e8a93d/testoutput/test-support/jtreg_open_test_hotspot_jtreg_jcstress_part3/scratch/2/hs_err_pid20807.log
              #
              # If you would like to submit a bug report, please visit:
              # https://bugreport.java.com/bugreport/crash.jsp
              #

      Here's the crashing thread's stack:

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

      Current thread (0x00007f96a0499100): JavaThread "jcstress-worker-2" daemon [_thread_in_Java, id=20903, stack(0x00007f9671df5000,0x00007f9671ef6000)]

      Stack: [0x00007f9671df5000,0x00007f9671ef6000], sp=0x00007f9671ef4700, free space=1021k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      J 1847 c2 org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress.actor1()Lorg/openjdk/jcstress/util/Counter; (98 bytes) @ 0x00007f9691345390 [0x00007f9691344ea0+0x00000000000004f0]
      j org.openjdk.jcstress.tests.volatiles.ReadAfterReadTest_jcstress$$Lambda$51+0x0000000800c16258.call()Ljava/lang/Object;+4
      j java.util.concurrent.FutureTask.run()V+39 java.base@17-ea
      j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92 java.base@17-ea
      j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 java.base@17-ea
      j java.lang.Thread.run()V+11 java.base@17-ea
      v ~StubRoutines::call_stub
      V [libjvm.so+0xe60e55] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x595
      V [libjvm.so+0xe616d5] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x4c5
      V [libjvm.so+0xe61b7c] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0xac
      V [libjvm.so+0xff815b] thread_entry(JavaThread*, Thread*)+0x12b
      V [libjvm.so+0x18ba7b6] JavaThread::thread_main_inner()+0x256
      V [libjvm.so+0x18c1130] Thread::call_run()+0x100
      V [libjvm.so+0x15a3c06] thread_native_entry(Thread*)+0x116


      siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x000000000000047e

            thartmann Tobias Hartmann
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: