JDK-6791795 : Java Console stack dump does not work in new Java Plug-In on Mac OS X
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u14
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2009-01-08
  • Updated: 2010-09-08
  • Resolved: 2009-02-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u14 b01Fixed
Description
The Java Console 'v' option to dump all threads' stacks does not work on Mac OS X due to differences in how the dynamic linker works on that platform compared to other Unix platforms. The libjvm.dylib already loaded by the current process can not be looked up via dlopen("libjvm.dylib").

Comments
SUGGESTED FIX http://sa.sfbay.sun.com/projects/deployment_data/6u14/6791795.0
2009-01-09

EVALUATION Simplified the Java Console's stack dump code to use dlsym(RTLD_DEFAULT) rather than explicitly dlopen'ing libjvm.so. This simplifies the code on all Unix platforms and also makes it work on Mac OS X. Tested manually on Mac OS X and Solaris/x86. No test case because we do not test on Mac OS X.
2009-01-09