* Re: Profiling still broken?
@ 1997-09-30 17:35 Toon Moene
1997-09-30 18:12 ` Em86 problems Scott Manley
0 siblings, 1 reply; 9+ messages in thread
From: Toon Moene @ 1997-09-30 17:35 UTC (permalink / raw)
> So in any case, what's one to do regarding profiling?
> Is there a patch for gcc 2.7.2.1 to fix it? Or should
> I grab some code from g77-0.5.21? Or should I get
> 2.7.2.3? Or what?
This is the patch that went into g77-0.5.21 for gcc-2.7.2.3:
- - - - - - - - 8< - - - - - - - - - - - 8< - - - - - - - - - - - -
diff -rcp2N gcc-2.7.2.3/final.c gcc-2.7.2.3.f.1/final.c
*** gcc-2.7.2.3/final.c Sun Nov 26 18:50:00 1995
--- gcc-2.7.2.3.f.1/final.c Fri Jul 11 00:11:16 1997
*************** profile_function (file)
*** 983,991 ****
text_section ();
! #ifdef STRUCT_VALUE_INCOMING_REGNUM
if (sval)
ASM_OUTPUT_REG_PUSH (file, STRUCT_VALUE_INCOMING_REGNUM);
#else
! #ifdef STRUCT_VALUE_REGNUM
if (sval)
ASM_OUTPUT_REG_PUSH (file, STRUCT_VALUE_REGNUM);
--- 983,991 ----
text_section ();
! #if defined(STRUCT_VALUE_INCOMING_REGNUM) &&
defined(ASM_OUTPUT_REG_PUSH)
if (sval)
ASM_OUTPUT_REG_PUSH (file, STRUCT_VALUE_INCOMING_REGNUM);
#else
! #if defined(STRUCT_VALUE_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
if (sval)
ASM_OUTPUT_REG_PUSH (file, STRUCT_VALUE_REGNUM);
*************** profile_function (file)
*** 993,1027 ****
#endif
! #if 0
! #ifdef STATIC_CHAIN_INCOMING_REGNUM
if (cxt)
ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_INCOMING_REGNUM);
#else
! #ifdef STATIC_CHAIN_REGNUM
#else
! #ifdef STATIC_CHAIN_REGNUM
if (cxt)
ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_REGNUM);
#endif
#endif
- #endif /* 0 */
FUNCTION_PROFILER (file, profile_label_no);
! #if 0
! #ifdef STATIC_CHAIN_INCOMING_REGNUM
if (cxt)
ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_INCOMING_REGNUM);
#else
! #ifdef STATIC_CHAIN_REGNUM
if (cxt)
ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_REGNUM);
#endif
#endif
- #endif /* 0 */
! #ifdef STRUCT_VALUE_INCOMING_REGNUM
if (sval)
ASM_OUTPUT_REG_POP (file, STRUCT_VALUE_INCOMING_REGNUM);
#else
! #ifdef STRUCT_VALUE_REGNUM
if (sval)
ASM_OUTPUT_REG_POP (file, STRUCT_VALUE_REGNUM);
--- 993,1023 ----
#endif
! #if defined(STATIC_CHAIN_INCOMING_REGNUM) &&
defined(ASM_OUTPUT_REG_PUSH)
if (cxt)
ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_INCOMING_REGNUM);
#else
! #if defined(STATIC_CHAIN_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
if (cxt)
ASM_OUTPUT_REG_PUSH (file, STATIC_CHAIN_REGNUM);
#endif
#endif
FUNCTION_PROFILER (file, profile_label_no);
! #if defined(STATIC_CHAIN_INCOMING_REGNUM) &&
defined(ASM_OUTPUT_REG_PUSH)
if (cxt)
ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_INCOMING_REGNUM);
#else
! #if defined(STATIC_CHAIN_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
if (cxt)
ASM_OUTPUT_REG_POP (file, STATIC_CHAIN_REGNUM);
#endif
#endif
! #if defined(STRUCT_VALUE_INCOMING_REGNUM) &&
defined(ASM_OUTPUT_REG_PUSH)
if (sval)
ASM_OUTPUT_REG_POP (file, STRUCT_VALUE_INCOMING_REGNUM);
#else
! #if defined(STRUCT_VALUE_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
if (sval)
! #if defined(STRUCT_VALUE_REGNUM) && defined(ASM_OUTPUT_REG_PUSH)
if (sval)
ASM_OUTPUT_REG_POP (file, STRUCT_VALUE_REGNUM);
- - - - - - - - 8< - - - - - - - - - - - 8< - - - - - - - - - - - -
This also seems to be what still is in egcs-970922, so it looks
like this is safe. However, use at your own risk, void where
prohibited, etc.
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
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Em86 problems 1997-09-30 17:35 Profiling still broken? Toon Moene @ 1997-09-30 18:12 ` Scott Manley 0 siblings, 0 replies; 9+ messages in thread From: Scott Manley @ 1997-09-30 18:12 UTC (permalink / raw) Here's another TGA X-Server non-starter I'm getting.... can anyone explain what it is and how to fix it? XFree86 Version 3.3 / X Window System (protocol Version 11, revision 0, vendor release 6300) Release Date: Jun 2 1997 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (see http://www.XFree86.Org/FAQ) Operating System: Linux 2.0.27 alpha [ELF] Configured drivers: DEC_TGA: non-accelerated server for DEC 21030 TGA graphics adapters (Patchlevel 0) (using VT number 7) XF86Config: /etc/XF86Config (**) stands for supplied, (--) stands for probed/default values (**) Mouse: type: PS/2, device: /dev/mouse, baudrate: 1200 (**) DEC_TGA: Graphics device ID: "TGA" (**) DEC_TGA: Monitor ID: "PCXBV" (**) DEC_TGA: Memory Base Address: 2000000 (**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/7 5 dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R 6 /lib/X11/fonts/Speedo/" (--) DEC_TGA: OUCH ! Found an unknown TGA Chip. Aborting.. *** None of the configured devices were detected.*** -- Scott Manley (aka Szyzyg) /------ _@/ Mail -----\ ___ _ _ __ __ _ | Armagh Observatory | / __| __ ___| |_| |_ | \/ |__ _ _ _ | |___ _ _ | Armagh | \__ \/ _/ _ \ _| _| | |\/| / _` | ' \| / -_) || | | Northern Ireland | |___/\__\___/\__|\__| |_| |_\__,_|_||_|_\___|\_, | | BT61 9DG. | http://star.arm.ac.uk/~spm/welcome.html |__/ \=====================/ -- 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] 9+ messages in thread
[parent not found: <34335786.41C67EA6@iis.fhg.de>]
* Re: Profiling still broken? [not found] <34335786.41C67EA6@iis.fhg.de> @ 1997-10-02 16:05 ` Richard Henderson 0 siblings, 0 replies; 9+ messages in thread From: Richard Henderson @ 1997-10-02 16:05 UTC (permalink / raw) > David Modberger-Tang's patches relative to RedHat 4.1 were [...] > But I don't know if these are applicable to RH 4.2. Yes they are. Thanks. r~ -- 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] 9+ messages in thread
* Re: Profiling still broken?
@ 1997-10-02 8:12 Stefan Schroepfer
0 siblings, 0 replies; 9+ messages in thread
From: Stefan Schroepfer @ 1997-10-02 8:12 UTC (permalink / raw)
Richard Henderson wrote:
>
> Yep. David Mosberger posted a patch for that function about 6
> months ago. I have no idea how easy it will be to find in the
> archives.
>
> Memory is failing me, but I seem to recall he also had binaries
> for that one object file you could replace in libc_p.a. If it
> is anywhere it would be on ftp.azstarnet.com:~axplinux/.
>
David Modberger-Tang's patches relative to RedHat 4.1 were
http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0463.html
fix for gprof,
http://www.redhat.com/support/mailing-lists/archives/axp-list/1997-March/0464.html
fix for three object files in libc_p.a.
But I don't know if these are applicable to RH 4.2.
Stefan Schroepfer
scr@iis.fhg.de
--
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] 9+ messages in thread[parent not found: <199710011105.NAA09773@blinky.bfr.co.il>]
* Re: Profiling still broken? [not found] <199710011105.NAA09773@blinky.bfr.co.il> @ 1997-10-02 6:09 ` Richard Henderson 0 siblings, 0 replies; 9+ messages in thread From: Richard Henderson @ 1997-10-02 6:09 UTC (permalink / raw) > I applied the patch & it didn't help. I'm still getting: > > (gdb) run > Starting program: /home/hjstein/pascal/Tests/cmo/cmo_model > > Program received signal SIGSEGV, Segmentation fault. > __ieee_set_fp_control () at ... Yep. David Mosberger posted a patch for that function about 6 months ago. I have no idea how easy it will be to find in the archives. Memory is failing me, but I seem to recall he also had binaries for that one object file you could replace in libc_p.a. If it is anywhere it would be on ftp.azstarnet.com:~axplinux/. r~ -- 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] 9+ messages in thread
[parent not found: <9709291751.AA16877@moene.indiv.nluug.nl>]
* Re: Profiling still broken? [not found] <9709291751.AA16877@moene.indiv.nluug.nl> @ 1997-09-30 13:50 ` Harvey J. Stein 1997-10-01 11:05 ` Harvey J. Stein 1 sibling, 0 replies; 9+ messages in thread From: Harvey J. Stein @ 1997-09-30 13:50 UTC (permalink / raw) Toon Moene writes: > > 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. The gcc patch I'm refering to is the one that Richard Henderson sent to the list a few weeks ago. I was seeing the message: Error: macro requires $at register while noat in effect when compiling certain files. Richard figured out that it was due to very large stack frames & mailed out a gcc patch to fix the problem (which, I might add, worked perfectly - Thanks, Richard!). So in any case, what's one to do regarding profiling? Is there a patch for gcc 2.7.2.1 to fix it? Or should I grab some code from g77-0.5.21? Or should I get 2.7.2.3? Or what? Thanks, -- Harvey J. Stein Berger Financial Research hjstein@bfr.co.il -- 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] 9+ messages in thread
* Re: Profiling still broken? [not found] <9709291751.AA16877@moene.indiv.nluug.nl> 1997-09-30 13:50 ` Harvey J. Stein @ 1997-10-01 11:05 ` Harvey J. Stein 1 sibling, 0 replies; 9+ messages in thread From: Harvey J. Stein @ 1997-10-01 11:05 UTC (permalink / raw) Toon Moene writes: > > So in any case, what's one to do regarding profiling? > > Is there a patch for gcc 2.7.2.1 to fix it? Or should > > I grab some code from g77-0.5.21? Or should I get > > 2.7.2.3? Or what? > > This is the patch that went into g77-0.5.21 for gcc-2.7.2.3: I applied the patch & it didn't help. I'm still getting: (gdb) run Starting program: /home/hjstein/pascal/Tests/cmo/cmo_model Program received signal SIGSEGV, Segmentation fault. __ieee_set_fp_control () at ../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29 ../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29: No such file or directory. Current language: auto; currently asm (gdb) quit BTW, the patch was also corrupt. There were a few lines which were wrapped, a couple of duplicated lines in the second hunk, and two lines with tabs which were converted to spaces in the patch. In case it helps anyone, here's the cleaned up patch uuencoded: begin 644 gcc-alpha-profiling-patch-2.7.2.1-toon-971001 M1G)O;2!4;V]N("!4=64@4V5P(#,P(#(Q.C(Y.C`W(#$Y.3<*6"U632UV-2U$ M871A.B`H6VYI;"!N:6P@;FEL(&YI;"!N:6P@;FEL(&YI;"!N:6P@;FEL70H) M6R(S-30R(B`B5'5E(B`B,S`B(")397!T96UB97(B("(Q.3DW(B`B,3DZ,S4Z M-3(B("(K,#(P,"(@(E1O;VX@36]E;F4B(")T;V]N0&UO96YE+FEN9&EV+FYL M=75G+FYL(B!N:6P@(C$R-"(@(E)E.B!0<F]F:6QI;F<@<W1I;&P@8G)O:V5N M/R(@(EY297-E;G0M1&%T93HB(&YI;"!N:6P@(CDB(&YI;"!N:6P@;FEL(&YI M;"!N:6Q="@EN:6PI"E)E='5R;BU0871H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@("`@=&5X=%]S M96-T:6]N("@I.PH*(2`C:68@9&5F:6YE9"A35%)50U1?5D%,545?24Y#3TU) M3D=?4D5'3E5-*2`F)B!D969I;F5D*$%335]/5510551?4D5'7U!54T@I"B`@ M("!I9B`H<W9A;"D*("`@("`@05--7T]55%!55%]214=?4%532"`H9FEL92P@ M4U1254-47U9!3%5%7TE.0T]-24Y'7U)%1TY532D["B`@(V5L<V4*(2`C:68@ M9&5F:6YE9"A35%)50U1?5D%,545?4D5'3E5-*2`F)B!D969I;F5D*$%335]/ M5510551?4D5'7U!54T@I"B`@("!I9B`H<W9A;"D*("`@("`@05--7T]55%!5 M5%]214=?4%532"`H9FEL92P@4U1254-47U9!3%5%7U)%1TY532D["BHJ*BHJ M*BHJ*BHJ*BHJ*B!P<F]F:6QE7V9U;F-T:6]N("AF:6QE*0HJ*BH@.3DS+#$P M,C<@*BHJ*@H@("-E;F1I9@H*(2`C:68@,`HA("-I9F1E9B!35$%424-?0TA! M24Y?24Y#3TU)3D=?4D5'3E5-"B`@("!I9B`H8WAT*0H@("`@("!!4TU?3U54 M4%547U)%1U]055-(("AF:6QE+"!35$%424-?0TA!24Y?24Y#3TU)3D=?4D5' M3E5-*3L*("`C96QS90HA("-I9F1E9B!35$%424-?0TA!24Y?4D5'3E5-"B`@ M("!I9B`H8WAT*0H@("`@("!!4TU?3U544%547U)%1U]055-(("AF:6QE+"!3 M5$%424-?0TA!24Y?4D5'3E5-*3L*("`C96YD:68*("`C96YD:68*+2`C96YD M:68)"0D)+RH@,"`J+PH*("`@($953D-424].7U!23T9)3$52("AF:6QE+"!P M<F]F:6QE7VQA8F5L7VYO*3L*"B$@(VEF(#`*(2`C:69D968@4U1!5$E#7T-( M04E.7TE.0T]-24Y'7U)%1TY530H@("`@:68@*&-X="D*("`@("`@05--7T]5 M5%!55%]214=?4$]0("AF:6QE+"!35$%424-?0TA!24Y?24Y#3TU)3D=?4D5' M3E5-*3L*("`C96QS90HA("-I9F1E9B!35$%424-?0TA!24Y?4D5'3E5-"B`@ M("!I9B`H8WAT*0H@("`@("!!4TU?3U544%547U)%1U]03U`@*&9I;&4L(%-4 M051)0U]#2$%)3E]214=.54TI.PH@("-E;F1I9@H@("-E;F1I9@HM("-E;F1I M9@D)"0DO*B`P("HO"@HA("-I9F1E9B!35%)50U1?5D%,545?24Y#3TU)3D=? M4D5'3E5-"B`@("!I9B`H<W9A;"D*("`@("`@05--7T]55%!55%]214=?4$]0 M("AF:6QE+"!35%)50U1?5D%,545?24Y#3TU)3D=?4D5'3E5-*3L*("`C96QS M90HA("-I9F1E9B!35%)50U1?5D%,545?4D5'3E5-"B`@("!I9B`H<W9A;"D* M("`@("`@05--7T]55%!55%]214=?4$]0("AF:6QE+"!35%)50U1?5D%,545? M4D5'3E5-*3L*+2TM(#DY,RPQ,#(S("TM+2T*("`C96YD:68*"B$@(VEF(&1E M9FEN960H4U1!5$E#7T-(04E.7TE.0T]-24Y'7U)%1TY532D@)B8@9&5F:6YE M9"A!4TU?3U544%547U)%1U]055-(*0H@("`@:68@*&-X="D*("`@("`@05-- M7T]55%!55%]214=?4%532"`H9FEL92P@4U1!5$E#7T-(04E.7TE.0T]-24Y' M7U)%1TY532D["B`@(V5L<V4*(2`C:68@9&5F:6YE9"A35$%424-?0TA!24Y? M4D5'3E5-*2`F)B!D969I;F5D*$%335]/5510551?4D5'7U!54T@I"B`@("!I M9B`H8WAT*0H@("`@("!!4TU?3U544%547U)%1U]055-(("AF:6QE+"!35$%4 M24-?0TA!24Y?4D5'3E5-*3L*("`C96YD:68*("`C96YD:68*"B`@("!&54Y# M5$E/3E]04D]&24Q%4B`H9FEL92P@<')O9FEL95]L86)E;%]N;RD["@HA("-I M9B!D969I;F5D*%-4051)0U]#2$%)3E])3D-/34E.1U]214=.54TI("8F(&1E M9FEN960H05--7T]55%!55%]214=?4%532"D*("`@(&EF("AC>'0I"B`@("`@ M($%335]/5510551?4D5'7U!/4"`H9FEL92P@4U1!5$E#7T-(04E.7TE.0T]- M24Y'7U)%1TY532D["B`@(V5L<V4*(2`C:68@9&5F:6YE9"A35$%424-?0TA! M24Y?4D5'3E5-*2`F)B!D969I;F5D*$%335]/5510551?4D5'7U!54T@I"B`@ M("!I9B`H8WAT*0H@("`@("!!4TU?3U544%547U)%1U]03U`@*&9I;&4L(%-4 M051)0U]#2$%)3E]214=.54TI.PH@("-E;F1I9@H@("-E;F1I9@H*(2`C:68@ M9&5F:6YE9"A35%)50U1?5D%,545?24Y#3TU)3D=?4D5'3E5-*2`F)B!D969I M;F5D*$%335]/5510551?4D5'7U!54T@I"B`@("!I9B`H<W9A;"D*("`@("`@ M05--7T]55%!55%]214=?4$]0("AF:6QE+"!35%)50U1?5D%,545?24Y#3TU) M3D=?4D5'3E5-*3L*("`C96QS90HA("-I9B!D969I;F5D*%-44E5#5%]604Q5 M15]214=.54TI("8F(&1E9FEN960H05--7T]55%!55%]214=?4%532"D*("`@ M(&EF("AS=F%L*0H@("`@("!!4TU?3U544%547U)%1U]03U`@*&9I;&4L(%-4 M4E5#5%]604Q515]214=.54TI.PHM("T@+2`M("T@+2`M("T@.#P@+2`M("T@ M+2`M("T@+2`M("T@+2`M(#@\("T@+2`M("T@+2`M("T@+2`M("T@+2`M"@I4 M:&ES(&%L<V\@<V5E;7,@=&\@8F4@=VAA="!S=&EL;"!I<R!I;B!E9V-S+3DW M,#DR,BP@<V\@:70@;&]O:W,@(`IL:6ME('1H:7,@:7,@<V%F92X@($AO=V5V M97(L('5S92!A="!Y;W5R(&]W;B!R:7-K+"!V;VED('=H97)E("`*<')O:&EB M:71E9"P@971C+@H*2%1(+`I4;V]N+@H*+2T*5&\@=6YS=6)S8W)I8F4Z('-E M;F0@92UM86EL('1O(&%X<"UL:7-T+7)E<75E<W1`<F5D:&%T+F-O;2!W:71H M"B=U;G-U8G-C<FEB92<@87,@=&AE('-U8FIE8W0N("!$;R!N;W0@<V5N9"!I ;="!T;R!A>'`M;&ES=$!R961H870N8V]M"@H* ` 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] 9+ messages in thread
* Re: Profiling still broken? @ 1997-09-29 17:51 Toon Moene 0 siblings, 0 replies; 9+ messages in thread From: Toon Moene @ 1997-09-29 17:51 UTC (permalink / 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 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Profiling still broken?
@ 1997-09-29 13:37 Harvey J. Stein
0 siblings, 0 replies; 9+ messages in thread
From: Harvey J. Stein @ 1997-09-29 13:37 UTC (permalink / raw)
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.
Here's an example:
hjstein@randy:~/pascal/Tests/cmo$ cat foo.c
#include <stdio.h>
main ()
{
int i;
double x = 0;
for (i=1; i<100; i++) {
x+= i*i/2;
}
printf("x = %f\n", x);
}
hjstein@randy:~/pascal/Tests/cmo$ gcc -p -g -o foo foo.c
hjstein@randy:~/pascal/Tests/cmo$ ls -l gmon.out
ls: gmon.out: No such file or directory
hjstein@randy:~/pascal/Tests/cmo$ ./foo
x = 164150.000000
hjstein@randy:~/pascal/Tests/cmo$ ls -l gmon.out
-rw-r--r-- 1 hjstein users 378 Sep 29 09:27 gmon.out
hjstein@randy:~/pascal/Tests/cmo$ gprof foo gmon.out
gprof: gmon.out: unexpected end of file
hjstein@randy:~/pascal/Tests/cmo$ prof foo gmon.out
bash: prof: command not found
hjstein@randy:~/pascal/Tests/cmo$ rm gmon.out
hjstein@randy:~/pascal/Tests/cmo$ gcc -pg -g -o foo foo.c
hjstein@randy:~/pascal/Tests/cmo$ ./foo
Segmentation fault (core dumped)
hjstein@randy:~/pascal/Tests/cmo$ gdb foo
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (alpha-unknown-linux), Copyright 1996 Free Software Foundation, Inc...
(gdb) run
Starting program: /home/hjstein/pascal/Tests/cmo/foo
Program received signal SIGSEGV, Segmentation fault.
__ieee_set_fp_control () at ../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29
../sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S:29: No such file or directory.
Current language: auto; currently asm
(gdb) quit
The program is running. Quit anyway (and kill it)? (y or n) y
Thanks,
--
Harvey J. Stein
Berger Financial Research
hjstein@bfr.co.il
--
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] 9+ messages in threadend of thread, other threads:[~1997-10-02 16:05 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-30 17:35 Profiling still broken? Toon Moene
1997-09-30 18:12 ` Em86 problems Scott Manley
[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-29 17:51 Toon Moene
1997-09-29 13:37 Harvey J. Stein
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox