From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Cogen To: dan@cgsoftware.com Cc: kettenis@wins.uva.nl, gdb@sourceware.cygnus.com, cogen@poblano Subject: Re: gdb seg violation during print command Date: Thu, 04 May 2000 12:40:00 -0000 Message-id: <200005041936.PAA09829@ll.mit.edu> References: X-SW-Source: 2000-05/msg00021.html > It's also possible the bug you are experiencing is that the compiler is > putting the line note in the wrong place, and it's not breaking till the > program is really done, and cerr doesn't exist properly. > > Try -gdwarf-2, see if it helps. redsavina% g++ -gdwarf-2 -o test test.cc ld: fatal: relocation error: R_SPARC_32: file /tmp/ccwCKbbB.o: symbol : offset 0xfea2c82f is non-aligned collect2: ld returned 1 exit status redsavina% Thanks for the suggestion. But as you see, it made it worse :) -- DavidC >From dan@cgsoftware.com Thu May 04 12:45:00 2000 From: Daniel Berlin To: David Cogen Cc: kettenis@wins.uva.nl, gdb@sourceware.cygnus.com, cogen@poblano Subject: Re: gdb seg violation during print command Date: Thu, 04 May 2000 12:45:00 -0000 Message-id: References: <200005041936.PAA09829@ll.mit.edu> X-SW-Source: 2000-05/msg00022.html Content-length: 698 Errr, i forgot you are on a sparc. Hmmmmm. Try adding a line or three to main that do nothing. On Thu, 4 May 2000, David Cogen wrote: > > It's also possible the bug you are experiencing is that the compiler is > > putting the line note in the wrong place, and it's not breaking till the > > program is really done, and cerr doesn't exist properly. > > > > Try -gdwarf-2, see if it helps. > > redsavina% g++ -gdwarf-2 -o test test.cc > ld: fatal: relocation error: R_SPARC_32: file /tmp/ccwCKbbB.o: symbol : offset 0xfea2c82f is non-aligned > > collect2: ld returned 1 exit status > redsavina% > > Thanks for the suggestion. But as you see, it made it worse :) > > -- DavidC >