United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7085944 FDS: gdb does not find debug symbols for libjsig link
7085944 : FDS: gdb does not find debug symbols for libjsig link

Details
Type:
Bug
Submit Date:
2011-09-01
Status:
Resolved
Updated Date:
2012-04-27
Project Name:
JDK
Resolved Date:
2011-10-04
Component:
infrastructure
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7,7u2
Fixed Versions:
8

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
With FDS build, gdb does not find debug symbols if libjsig.so is accessed through symlink in client/ or server/. It's not clear whether it will pose real issues and if the user always can use libjsig.so in jre/lib/i386. However, there is an easy solution which will avoid any problems: make client/libjsig.debuginfo a link to libjsig.debuginfo. This will avoid any possible issues.


$ gdb /net/sqenfs-1.us.oracle.com/export1/comp/vm/jdk/adhoc/fds/product/linux-i586/jre/lib/i386/client/libjsig.so 
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-32.el5_6.2)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /net/sqenfs-1.us.oracle.com/export1/jdk/vm/adhoc/fds/product/linux-i586/jre/lib/i386/client/libjsig.so...(no debugging symbols found)...done.
(gdb) quit


$ gdb /net/sqenfs-1.us.oracle.com/export1/comp/vm/jdk/adhoc/fds/product/linux-i586/jre/lib/i386/libjsig.so 
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-32.el5_6.2)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /net/sqenfs-1.us.oracle.com/export1/jdk/vm/adhoc/fds/product/linux-i586/jre/lib/i386/libjsig.so...Reading symbols from /net/sqenfs-1.us.oracle.com/export1/jdk/vm/adhoc/fds/product/linux-i586/jre/lib/i386/libjsig.debuginfo...done.
done.
(gdb)

                                    

Comments
EVALUATION

Changeset: 029ba13aa0df
Author:    dcubed
Date:      2011-09-20 19:16 -0700
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/029ba13aa0df

7085944: 3/3 FDS: gdb does not find debug symbols for libjsig link
Summary: Add support for importing .debuginfo files from HSX.
Reviewed-by: phh

! make/common/Defs-linux.gmk
! make/common/Defs-solaris.gmk
! make/java/redist/Makefile
! make/java/redist/sajdi/Makefile
                                     
2011-09-21
SUGGESTED FIX

Please see 7085944-webrev-cr3.tgz for the fix proposed in Code Review Round 3.

Cleaned up version of the previous fix.
                                     
2011-09-20
SUGGESTED FIX

Please see 7085944-webrev-cr2.tgz for the fix proposed in Code Review Round 2.

Decouple this fix from the HSX fix (7071904).
                                     
2011-09-20
SUGGESTED FIX

Please see 7085944-webrev-cr0.tgz for the fix proposed in Code Review Round 0.
                                     
2011-09-20
SUGGESTED FIX

Please see 7085944-webrev-cr1.tgz for the fix proposed in Code Review Round 1.

Cleaner implementation of the original fix.
                                     
2011-09-20
EVALUATION

Good catch! I was mulling on whether the link was needed when
I put together the webrev for:

    7071904 4/4 HotSpot: Full Debug Symbols

yesterday. Looks like the answer is yes. Since the fix for
7071904 is not yet complete, I'll address this issue as part
of my work on 7071904 so this bug will (eventually) be closed
as a duplicate of 7071904.
                                     
2011-09-01
EVALUATION

Scratch the idea of closing this bug as a duplicate of 7071904.

The logic for creating the libjsig.so links in the VM flavor dirs
lives in jdk/make/java/redist/Makefile. The plan is to do FDS work
for the JDK repo in Phase 2, but we'll have to do some work in the
JDK repo for Phase 1 also. Looks like this bug will be used for
the minimal JDK changes to support FDS Phase 1.
                                     
2011-09-01



Hardware and Software, Engineered to Work Together