#106 gcc 2.95.3 post profile tools crash or hangs

closed-fixed
nobody
None
5
2014-08-17
2003-04-08
Philippe Elie
No

binutils (at least 2.12.90.0.9 but probaly other
versions too) are mis-compiled with gcc 2.95.3.

At least slackware 8.1 and *probably* red-hat
7.3 contains this bug. Two symptoms are possible:
infinite loop in post-profile tools (see #618922)
or crash. A typical way to look if you get this
problem on slack 8.1 is to try

$ objdump --debugging /lib/ld-linux.so.2

if objdump hang you are subject to this bug:

crash occur in post profile here:

#0 0x0807b13f in {anonymous}::interesting_symbol
(sym=0x80bb990) at op_bfd.cpp:113
113 if (!(sym->section->flags & SEC_CODE))
(gdb) bt
#0 0x0807b13f in {anonymous}::interesting_symbol
(sym=0x80bb990) at op_bfd.cpp:113

If your are subject to this bug consider to apply
or port the attached file to your binutils. Note
this don't cure the cause of problem (gcc bug)
but work-around the effect of this bug in binutils.
(file is binutils sub-dir)

regards,
Phil

P.S: please let this bug report open, it seems distro
independant and I see no way to fix it in oprofile

Discussion

  • Philippe Elie
    Philippe Elie
    2003-04-08

     
    Attachments
  • John Levon
    John Levon
    2003-06-17

    Logged In: YES
    user_id=53034

    work around in place

     
  • John Levon
    John Levon
    2003-06-17

    • status: open --> closed-fixed
     
  • IngDOF g9dR27dnaQkPp5sbn

     
  • MkKe1D vkoo7wvY5Xkfak7bf1Th

     
  • MkKe1D vkoo7wvY5Xkfak7bf1Th