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...
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: glibc
Version: 5.1
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
Depends On:
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)

Clone Of:
Last Closed: 2007-09-26 07:36:21 UTC

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):

How reproducible:

Steps to Reproduce:
1. Download the "dlopen.sh" script from BZ#227097
2. # locate 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

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.