Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jul 2016 12:09:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211196] java/openjdk8: thread id missing from jstack output against core files
Message-ID:  <bug-211196-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211196

            Bug ID: 211196
           Summary: java/openjdk8: thread id missing from jstack output
                    against core files
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: java@FreeBSD.org
          Reporter: ronald.roskens@gmail.com
          Assignee: java@FreeBSD.org
             Flags: maintainer-feedback?(java@FreeBSD.org)

Created attachment 172643
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D172643&action=
=3Dedit
patch for hotspot/src/os/bsd/vm/os_bsd.cpp

When analyzing a JVM core dump, jstack is unable to display any stacktraces=
 for
any threads because it cannot match any thread id's.

In the JVM on BSD, a thread is represented by two different thread id value=
s,
however, only when defined(__APPLE__) does the second value, unique_thread_=
id,
get set. Its unique_thread_id that jstack uses to match thread ids in a core
dump.

I've been using the attached two local patches.

patch-rjr-os_bsd.cpp sets unique_thread_id to the same value as the thread_=
id.
patch-rjr-BsdThread.java adds the unique_thread_id to BsdThread.toString()
output.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211196-13>