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

SA: jstack in mixed mode truncates the stack trace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3 P3
    • tbd
    • None
    • hotspot
    • None

      When invoking jstack in mixed mode the full stack trace is not shown:

      $ jhsdb jstack --mixed --pid 24327
      Attaching to process ID 24327, please wait...
      Debugger attached successfully.
      Server compiler detected.
      JVM version is 11-ea+24
      Deadlock Detection:

      No deadlocks found.

      ----------------- 24328 -----------------
      "main" #1 prio=5 tid=0x00007f7594011000 nid=0x5f08 waiting on condition [0x00007f759dad6000]
         java.lang.Thread.State: TIMED_WAITING (sleeping)
         JavaThread state: _thread_blocked
      0x00007f759d4a67ce __pthread_cond_timedwait + 0x13e
      0x00007f759c143862 JVM_Sleep + 0x132
      0x00007f757cc5f810 * java.lang.Thread.sleep(long) bci:0 (Interpreted frame)
      0x00007f757cc59c43 * HelloWorld.main(java.lang.String[]) bci:25 line:15 (Interpreted frame)
      0x00007f757cc50849 <StubRoutines>
      0x00007f759c08d649 _ZN9JavaCalls11call_helperEP9JavaValueRK12methodHandleP17JavaCallArgumentsP6Thread + 0x3b9
      0x00007f759c107dab _ZL17jni_invoke_staticP7JNIEnv_P9JavaValueP8_jobject11JNICallTypeP10_jmethodIDP18JNI_ArgumentPusherP6Thread.isra.65.constprop.193 + 0x1ab
      0x00007f759c10a404 jni_CallStaticVoidMethod + 0x164
      0x00007f759d28e79d JavaMain + 0xe4d
      ----------------- 24329 -----------------
      0x00007f759d4a8680 sem_wait + 0x30
      0x00007f759c66b049 _ZN27SemaphoreGangTaskDispatcher20worker_wait_for_taskEv + 0x19
      0x00007f759c669e71 _ZN10GangWorker4loopEv + 0x31
      0x00007f759c4191b0 _ZL19thread_native_entryP6Thread + 0xf0
      ----------------- 24330 -----------------
      0x00007f759d4a6414 __pthread_cond_wait + 0xc4
      0x00007f759c3c9c80 _ZN7Monitor5IWaitEP6Threadl + 0x150
      0x00007f759c3cace9 _ZN7Monitor4waitEblb + 0x209
      0x00007f759bf94a64 _ZN22G1ConcurrentMarkThread11run_serviceEv + 0x174
      0x00007f759be6a1ba _ZN18ConcurrentGCThread3runEv + 0x8a
      0x00007f759c4191b0 _ZL19thread_native_entryP6Thread + 0xf0

      <some output is removed>

      ----------------- 24327 -----------------
      0x00007f759d4a366b pthread_join + 0xab

      <output got truncated>

            Unassigned Unassigned
            sballal Sharath Ballal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: