Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Bug 211196] java/openjdk8: thread id missing from jstack output against core files

5 views
Skip to first unread message

bugzilla...@freebsd.org

unread,
Jul 18, 2016, 8:09:28 AM7/18/16
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211196

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: ja...@FreeBSD.org
Reporter: ronald....@gmail.com
Assignee: ja...@FreeBSD.org
Flags: maintainer-feedback?(ja...@FreeBSD.org)

Created attachment 172643
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=172643&action=edit
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 values,
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.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebs...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java...@freebsd.org"

bugzilla...@freebsd.org

unread,
Jul 18, 2016, 8:10:10 AM7/18/16
to
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211196

--- Comment #1 from Ron Roskens <ronald....@gmail.com> ---
Created attachment 172644
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=172644&action=edit
patch for
hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/bsd/BsdThread.java

bugzilla...@freebsd.org

unread,
Jul 18, 2016, 8:11:15 AM7/18/16
to

bugzilla...@freebsd.org

unread,
Jul 18, 2016, 8:11:35 AM7/18/16
to
0 new messages