[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#217793: gcc-3.3: SIGBUS when trying to profile



Hello

On Sun, Nov 16, 2003 at 12:54:00PM +0100, Matthias Klose wrote:
> Daniel Bayer writes:
> > I get a SIGBUS when I try to profile something:
> > | daniel@nolab:~ $ cat a.c
> > | void a() { }
> > | int main() { a(); }
> > | daniel@nolab:~ $ gcc-3.3 -m32 -p -pg -o a a.c
> > | daniel@nolab:~ $ ./a
> > | Bus-Zugriffsfehler
> > | daniel@nolab:~ $
> > 
> > And the backtrace:
> > #0  0x701110d8 in mcount () from /lib/libc.so.6
> > #1  0x00010568 in a ()
> > #2  0x00010590 in main ()
> 
> I'm unable to reproduce this on a current unstable system. Please
> recheck.

I did a dist-upgrade 10 minutes ago and still get the sigbus. But noe
I used libc6-dbg and got a somewhat more detailed backtrace:
| (gdb) where
| #0  mcount_internal (frompc=220, selfpc=66952) at mcount.c:98
| #1  0x00010588 in a () at a.c:1
| #2  0x000105b0 in main () at a.c:2

The code in line 98 is "toindex = *frompcindex;". 

| (gdb) print frompcindex
| $3 = (u_long *) 0x1000
| (gdb) print *frompcindex
| Cannot access memory at address 0x1000

So the value of frompcindex seems to be wrong.


Daniel

Attachment: signature.asc
Description: Digital signature


Reply to: