United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7102323 RFE: enable Full Debug Symbols Phase 1 on Solaris
JDK-7102323 : RFE: enable Full Debug Symbols Phase 1 on Solaris

Details
Type:
Enhancement
Submit Date:
2011-10-18
Status:
Resolved
Updated Date:
2013-04-30
Project Name:
JDK
Resolved Date:
2012-05-04
Component:
hotspot
OS:
solaris
Sub-Component:
build
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs22
Fixed Versions:
hs24 (b09)

Related Reports
Backport:
Backport:
Backport:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
The following bug was used to implement the Full Debug Symbols
project for HSX-22-B07 and newer:

    7071904 4/4 HotSpot: Full Debug Symbols

The original implementation of 7071904 enabled Full Debug Symbols
for both Linux and Solaris. However, the Solaris disk footprint
increase was substantial so FDS was disabled on Solaris.

The purpose of this RFE is to re-enable FDS on Solaris once the
disk footprint issues have been resolved.
make/solaris/makefiles/defs.make has the following in it:

  ifeq ($(VM_PLATFORM),solaris_amd64)
    # On Solaris AMD64/X64, gobjcopy is not happy and fails:
    #
    # usr/sfw/bin/gobjcopy --add-gnu-debuglink=<lib>.debuginfo <lib>.so
    # BFD: stKPaiop: Not enough room for program headers, try linking with -N
    # /usr/sfw/bin/gobjcopy: stKPaiop: Bad value
    # BFD: stKPaiop: Not enough room for program headers, try linking with -N
    # /usr/sfw/bin/gobjcopy: libsaproc.debuginfo: Bad value
    # BFD: stKPaiop: Not enough room for program headers, try linking with -N
    # /usr/sfw/bin/gobjcopy: stKPaiop: Bad value
    _JUNK_ := $(shell \
      echo >&2 "INFO: $(DEF_OBJCOPY) is not working on Solaris AMD64/X64")
    OBJCOPY=
  else

so gobjcopy is broken on Solaris AMD64/X64 for some reason.

                                    

Comments
EVALUATION

In the process of revising the implementation to zip "debug info" as
part of the build process. This will reduce the disk footprint occupied
by the build.
                                     
2012-03-06
SUGGESTED FIX

See the attached 7102323-webrev-hotspot-cr0.tgz for the
proposed fix that was sent out for Code Review Round 0.
                                     
2012-03-08
SUGGESTED FIX

See the attached 7102323-webrev-hotspot-cr1.tgz for the
proposed fix that was sent out for Code Review Round 1.
                                     
2012-03-22
EVALUATION

The following bug:

    7157296 3/4 FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only
                affect OPT builds

affects the JDK companion to this bug (7136506).
Since the fix for this bug hasn't been pushed yet, it should
be adjusted so that the ENABLE_FULL_DEBUG_SYMBOLS flag only
affects HotSpot 'product' builds.
                                     
2012-03-28
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/d652a62d6e03
                                     
2012-04-25
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/d652a62d6e03
                                     
2012-05-02
EVALUATION

http://hg.openjdk.java.net/hsx/hsx23.2/hotspot/rev/d652a62d6e03
                                     
2012-05-08
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/d652a62d6e03
                                     
2012-06-29



Hardware and Software, Engineered to Work Together