Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.indiv.nluug.nl>
Subject: Re: Profiling still broken?
Date: Mon, 29 Sep 97 19:51:44 +0200	[thread overview]
Message-ID: <0cb759c1e71dffcf7d9ebbb108d5c0cc.axp-list@archive.invalid> (raw)

Harvey,

>  Is profiling working now?  I saw various discussions in
>  the axp-list archive about broken profiling, but they
>  seemed to be fairly old and have been resolved.  None
>  the less, I'm still having trouble using profiling.
>
>  Basically, if I compile with -pg then the program
>  segfaults in __i333_set_fp_control.  If I compile with
>  -p then the program runs but gprof can't process the
>  profiling file, and I don't seem to have a prof program.

>  This is with gcc-2.7.2.1-2b, which is rpm 2.7.2.1-2 +
>  Richard Henderson's recently distributed patch,
>  glibc-0.961212-5, and kernel-source-2.0.30-3.  I.e. - a
>  fairly straight forward RedHat 4.2 + the recent gcc patch.

Well, I don't know for sure, because I don't know what's in "the  
recent gcc patch", but there is (still) a problem in gcc with  
respect to profiling.  The symptom is that C code with nested  
functions (of which glibc seems to use a lot) has a fairly good  
chance of dying with a segmentation violation.

For instance, g77-0.5.21 has a change in the code of  
profile_function in final.c that fixes this in gcc-2.7.2.3, so  
apparently all publicly available gcc's have this bug.

The problem is that the static chain pointer has to be saved around  
the calls of mcount that profiling inserts.

HTH,
Toon.

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1997-09-29 17:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-29 17:51 Toon Moene [this message]
     [not found] <34335786.41C67EA6@iis.fhg.de>
1997-10-02 16:05 ` Profiling still broken? Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1997-10-02  8:12 Stefan Schroepfer
     [not found] <199710011105.NAA09773@blinky.bfr.co.il>
1997-10-02  6:09 ` Richard Henderson
     [not found] <9709291751.AA16877@moene.indiv.nluug.nl>
1997-09-30 13:50 ` Harvey J. Stein
1997-10-01 11:05 ` Harvey J. Stein
1997-09-30 17:35 Toon Moene
1997-09-29 13:37 Harvey J. Stein
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox