Bug 304661

Summary: Calling dlopen on /usr/lib/debug/lib/security/pam_krb5.so.debug causes segmentation fault
Product: Red Hat Enterprise Linux 5 Reporter: Jan Lieskovsky <jlieskov>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: low    
Version: 5.1CC: fweimer, nalin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-26 07:36:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.