Bug 304661 - Calling dlopen on /usr/lib/debug/lib/security/pam_krb5.so.debug causes segmentation fault
Summary: Calling dlopen on /usr/lib/debug/lib/security/pam_krb5.so.debug causes segmen...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: glibc
Version: 5.1
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-09-25 09:20 UTC by Jan Lieskovsky
Modified: 2016-11-24 14:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-09-26 07:36:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Lieskovsky 2007-09-25 09:20:24 UTC
Description of problem:
Run the "dlopen.sh" script provided in BZ#227097 on the debug pam_krb5.so
library and try to load it:

# ./dlopen.sh /usr/lib/debug/lib/security/pam_krb5.so.debug
./dlopen.sh: line 81: 20519 Segmentation fault      $tempdir/dlopen $modules

Version-Release number of selected component (if applicable):
pam_krb5-2.1.17-1

How reproducible:
Always


Steps to Reproduce:
1. Download the "dlopen.sh" script from BZ#227097
2. # locate pam_krb5.so.debug
/usr/lib/debug/lib/security/pam_krb5.so.debug
3.  # ./dlopen.sh /usr/lib/debug/lib/security/pam_krb5.so.debug
./dlopen.sh: line 81: 20519 Segmentation fault      $tempdir/dlopen $modules
  
Actual results:
Segmentation fault

Expected results:
Successful or unsuccessful pam_krb5.so.debug load or message the process
is unable to load the library. No crash.

Additional info:
This bug was discovered as part of the cycle of the RHEA-2007:0790 advisory
testing.

Comment 1 Nalin Dahyabhai 2007-09-25 19:25:29 UTC
Do we even expect this to work? The debuginfo file, so far as I can tell,
doesn't include its text segment.  Moving to glibc to get some input.

Comment 2 Jakub Jelinek 2007-09-26 07:36:21 UTC
Yes, this is to be expected, garbage in, garbage out.
*.so.debug are not shared libraries, they are separate debug info data.


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