Bug 684629 - libldap.a is stripped of debuginfo, so user nss_ldap.so can't be fully debugged
Summary: libldap.a is stripped of debuginfo, so user nss_ldap.so can't be fully debugged
Keywords:
Status: CLOSED DUPLICATE of bug 684630
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openldap
Version: 5.6
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Vcelak
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-14 00:25 UTC by Brad Hubbard
Modified: 2018-11-14 14:11 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-14 14:38:28 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Brad Hubbard 2011-03-14 00:25:38 UTC
Description of problem:
nss_ldap statically links to libldap.a and therefore lacks openldap debugging symbols

Version-Release number of selected component (if applicable):
nss_ldap-253-37.el5

How reproducible:
Always.

Steps to Reproduce:
1. Grab a core dump from an executable that links libnss_ldap.so.2
2. Install nss_ldap-debuginfo
3. look for debugging information for symbols such as ldap_result
  
Actual results:
#4  0x00a83109 in ldap_result () from /lib/libnss_ldap.so.2
No symbol table info available.

Expected results:
symbol table available

Additional info:
The problem seems to be that nss_ldap statically links libldap.a which is stripped.

Comment 3 Nalin Dahyabhai 2011-06-13 15:50:42 UTC
(In reply to comment #0)
> Description of problem:
> nss_ldap statically links to libldap.a and therefore lacks openldap debugging
> symbols

We static link in an attempt to prevent symbol collisions in applications that use other LDAP libraries, such as mozldap.  I don't expect that to change unless we add symbol versioning to all of the libraries which implement the API, which is more likely something we just can't guarantee.  For that reason we probably have to won't-fix this.

Comment 4 Frank Ch. Eigler 2011-06-14 14:04:14 UTC
OK, I'll redirect this bug then against openldap, to see if they can disable
debuginfo stripping on their -devel .a files.  By the way, I believe the same
thing happens on RHEL6.

The "%_find_debuginfo_opts" macro may need to be set to exclude .a files.

Comment 5 Jan Vcelak 2011-06-14 14:38:28 UTC

*** This bug has been marked as a duplicate of bug 684630 ***


Note You need to log in before you can comment on or make changes to this bug.