JDK-6861984 : solaris version of libsaproc.so should support SA_ALTROOT directly
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: hs16
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2009-07-18
  • Updated: 2010-07-09
  • Resolved: 2010-01-15
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 JDK 7 Other
6u18Fixed 7Fixed hs16Fixed
Description
When using the SA to open core files on machines which are different than the machine where the crash occurred, we need to redirect libproc to open the libraries that we've gotten from the target machine.  It has no built in support for doing this so we've used a couple different techiniques for this.  One is a library called interpose.so which is configured separately and the other is a modified version of libproc that has support for a hook to change where it reads files from.  These each have their own problems but we need a solution that's built into the SA and requires little external configuration.  The only applies to solaris as our linux libsaproc has handles this directly and windows operates completely differently.

The fix I've settled on is to take the existing SA_ALTROOT code which is used with the custom libproc and built an audit library that allows saproc to interpose on all open calls from libproc only.  This gets around some of the problems with interpose.so interposing on opens that you don't actually want.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/a94af87c3357
10-08-2009

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/a94af87c3357
24-07-2009