Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* gprof fixes for glibc in RH4.1
@ 1997-03-16 20:08 David Mosberger-Tang
  0 siblings, 0 replies; 3+ messages in thread
From: David Mosberger-Tang @ 1997-03-16 20:08 UTC (permalink / raw)


Some of you reported problems with profiling under RH4.1.  Here is a
uuencoded file of three fixed object files.  The md5sum output is:

0854f6609580506aeea2595d7729e27b  gmon.po
e2e3cdbace223a162efe90048e0ed661  ieee_get_fp_control.po
8340b52dc581956131e038d3946ba81b  ieee_set_fp_control.po

After extracting these files, replace them in your libc_p.a.  E.g.:

	ar rv /usr/lib/libc_p.a gmon.po ieee_{s,g}et_fp_control.po

and then profiling should work again.  Note that the binutils-2.7
gprof has a bug that sometimes causes a SIGFPE.  See my earlier mail
for a patch that fixes this.

Finallly, there is still a problem with mixing profiling and dynamic
linking.  E.g., with dynamic linking, adding -lm will cause a binary
that segfaults.  Adding the -static flag should fix this problem for
now (until a real solution is found).

Erik, is the next Linux/Alpha release going to be glibc-2.x based?  If
not, we would have to take care to port back the fixes that have been
made to glibc-2.x in this regard (porting things back would be rather
painful).

	--david

begin 644 pg-fixes.tar.gz
M'XL(`&M1+#,``^U;?7`;QW5_!X`B0'T8E%%7:ASJ2"D1*-L@*%(4Z^H#("D1
MLF4-QU8S2AP)`$F(A`42,``ZE*O:DI,_Y-3-:#*:UNZH*15#M&::F;(3*M8T
M7\IG[=:9H<?*6/T85VJ=C-NX4RF5/9I&-?OV;A=8+.X1E/51Q;DW`O?>;]_^
M]MW;O=W;V]702'HTD$G#S9368+"CO5T'7=?;@NN-='W'.B-%6;NNHRVHZQUM
MK6W!=<%UK1VZWMK:UA$$/7A3O>(RELO'L[H.@_$GDH,CM%VU_%]3>7K+]JT.
M32OJ&GSRB&9AY_^MTG6(_UT$'DR_N1K@VRO/S[ZU$F#/RU[7;*\7/OBZUGZ^
MUP>;INI]W^]>AOI2Q._&%.`/7X+0H_L`_L8HQ^SK\;<4[=0\+/_B\8UZ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H1W*E;[U<$`N%:UDBL/E:GGO%-*7N
MBX@^H.Y_=$KV\O[B!I[6<'ZG@KL5>UM^,\7HF[G;;_^GM=W>_[D5<C/V?P`:
MOL'V@);`BB:-[P$9>S\0>]_\/_[FW@]C8?L_2XIUWU[[/[JW8CE1=?^'[?AT
M<'T^^S\;)-W>_['W?X1^D_=_<L0'T)R]_W,K]G\JPF_O_]C[/[?3_H]5!_T(
M[?_,<_B;]_Y/KNK^C]C;F6O_9PF4B[W_8^__V/L_IMC[/W.+O?]C[_]8B;W_
M,[<_]O[/_R_^F[[_([[_W.+]GUNW`/U(KO2MEPMS[O\02X3KW?]IE^SE_1RQ
M+Z3N_PC<WO^QQ19;;+'%%EMLL<466VRQQ19;;+'%%EMLL<66CZ[\']5)H%X`
#>```
`
end

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

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <199703162008.NAA00621@panda.mosberger>]
* Re: gprof fixes for glibc in RH4.1
@ 1997-03-19  0:45 David Mosberger-Tang
  0 siblings, 0 replies; 3+ messages in thread
From: David Mosberger-Tang @ 1997-03-19  0:45 UTC (permalink / raw)


>>>>> On Mon, 17 Mar 1997 15:23:25 +0100 (CET), Andreas Johansson <ajo@wopr.campus.luth.se> said:

  Andreas> Thank you for your effort to make profiling work on the old
  Andreas> glibc.  However, I can't get profiling to work. With your
  Andreas> fixes the binary won't segfault anymore when started,
  Andreas> instead it goes into some eternal loop mode.

This doesn't ring a bell.

  Andreas> This happends
  Andreas> before the binary gets to main() (break main; run in gdb
  Andreas> doesn't get to the breakpoint. Also gdb segfaults if I try
  Andreas> to interrupt the process :( ). I belive I have pretty much
  Andreas> tried the standard 4.1 rpms when doing this. I normally use
  Andreas> a newer binutils.

Did you compile with "-static -g"?

  Andreas> Here is what doesn't work for me:

Hmmh, I tried your program (and much more complex stuff as well) and it
works fine for me:

---
$ ./hello
$ gprof hello

Flat profile:

Each sample counts as 0.000976563 seconds.
 no time accumulated

  %   cumulative   self              self     total           
 time   seconds   seconds    calls  Ts/call  Ts/call  name    
  0.00      0.00     0.00       14     0.00     0.00  _IO_file_overflow
  0.00      0.00     0.00       14     0.00     0.00  __overflow
  0.00      0.00     0.00        3     0.00     0.00  _IO_do_write
  0.00      0.00     0.00        2     0.00     0.00  __libc_init
  0.00      0.00     0.00        2     0.00     0.00  __new_exitfn
  0.00      0.00     0.00        2     0.00     0.00  atexit
  0.00      0.00     0.00        1     0.00     0.00  _IO_default_xsputn
  0.00      0.00     0.00        1     0.00     0.00  _IO_doallocbuf
  0.00      0.00     0.00        1     0.00     0.00  _IO_file_doallocate
  0.00      0.00     0.00        1     0.00     0.00  _IO_file_stat
  0.00      0.00     0.00        1     0.00     0.00  _IO_file_write
  0.00      0.00     0.00        1     0.00     0.00  _IO_file_xsputn
  0.00      0.00     0.00        1     0.00     0.00  _IO_setb
  0.00      0.00     0.00        1     0.00     0.00  __fxstat
[etc...]

---

My installation is pretty much pristine 4.1 with the posted changes.

	--david

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-03-19  0:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-16 20:08 gprof fixes for glibc in RH4.1 David Mosberger-Tang
     [not found] <199703162008.NAA00621@panda.mosberger>
1997-03-17 14:23 ` Andreas Johansson
  -- strict thread matches above, loose matches on Subject: below --
1997-03-19  0:45 David Mosberger-Tang

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