Bug 103727 - LD_PROFILE=libc.so.6 and sprof give seg fault
Summary: LD_PROFILE=libc.so.6 and sprof give seg fault
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 9
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-09-04 13:08 UTC by JLapham
Modified: 2016-11-24 14:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-11-10 20:38:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2003:325 0 normal SHIPPED_LIVE : Updated glibc packages provide security and bug fixes 2003-11-12 05:00:00 UTC
Red Hat Product Errata RHSA-2003:334 0 normal SHIPPED_LIVE Low: glibc security update 2003-11-14 05:00:00 UTC

Description JLapham 2003-09-04 13:08:28 UTC
Description of problem:

lapham@bilbo > LD_PROFILE=libc.so.6 ls > /dev/null
lapham@bilbo > sprof /lib/tls/libc.so.6 /var/tmp/libc.so.6.profile
Segmentation fault

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

lapham@bilbo > rpm -q glibc
glibc-2.3.2-27.9

How reproducible:

Always

Steps to Reproduce:
1. see above
    
Actual results:
seg fault

Expected results:
something similar to what happens when you profile other libs:

lapham@bilbo > LD_PROFILE=libtermcap.so.2 ls > /dev/null
lapham@bilbo > sprof -p /lib/libtermcap.so.2 /var/tmp/libtermcap.so.2.profile
*** The file `/lib/libtermcap.so.2' is stripped: no detailed analysis possible
Flat profile:
 
Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total
 time   seconds   seconds    calls  us/call  us/call  name
  0.00      0.00     0.00        1     0.00           tgetent
  0.00      0.00     0.00        1     0.00           tgetstr

Additional info:

Comment 1 Ulrich Drepper 2003-10-27 09:16:32 UTC
I've checked in a patch to fix this into the upstream CVS repository.  There
will probably be an errate glibc with this patch.  We'll add the number here
once it is available.

Comment 2 Ulrich Drepper 2003-11-04 21:28:12 UTC
Try the code at

  ftp://people.redhat.com/jakub/glibc/errata/2.3.2-27.9.4/           
                                                                    

and let us know how it works.

Comment 3 JLapham 2003-11-10 20:37:04 UTC
Ulrich-

I just tried the glibc that comes with Fedora, and it works great. 

lapham@bilbo > rpm -q glibc
glibc-2.3.2-101
Mon Nov 10 (06:38 PM) [~]
lapham@bilbo > LD_PROFILE=libc.so.6 ls > /dev/null
lapham@bilbo > sprof /lib/tls/libc.so.6 /var/tmp/libc.so.6.profile |
head -6
Flat profile:
 
Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total
 time   seconds   seconds    calls  us/call  us/call  name
  0.00      0.00     0.00      208     0.00           readdir64@@GLIBC_2.2

Comment 4 Jakub Jelinek 2003-11-14 15:13:56 UTC
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2003-334.html



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