Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [OPTERON/x86_64] - can debug while setting breakpoint
@ 2009-02-05 18:49 François Chenais
  2009-02-05 18:57 ` Daniel Jacobowitz
  2009-02-22 10:46 ` [OPTERON/x86_64] - can " Jan Kratochvil
  0 siblings, 2 replies; 7+ messages in thread
From: François Chenais @ 2009-02-05 18:49 UTC (permalink / raw)
  To: gdb

Hello,

Something strange happens while trying to debug on x86_64 system.

I have a simple C code in t.c file ...

     #include <stdio.h>
      void main (int argc, char **argv) { printf("Hello World !"\n); }
 
... built with ...

    # gcc -g t.c

... and run it

    # a.out
    Hello World !

ldd is ok

    libc.so.6 => /lib64/libc.so.6 (0x000000304f200000)
    /lib64/ld-linux-x86-64.so.2 (0x000000304da00000)


Now running it with gdb :

    # gdb a.out
    blah blah blah
    (gdb) run
    Starting program: /home/francois/src/a.out
    Hello World !

    Program exited with code 016.
    (gdb)  b main
    Breakpoint 1 at 0x80483b5: file t.c, line 2.

    (gdb) run


At this moment, a  SIGSEGV occurs before stopping on the breakpoint !!!
The stack is buggy !


More informations that can help
=====================

The same error occurs with others debuggers : totalview, sun dbx, intel idb
and while using  intel icc or  g++ compilers  :/

The same error occurs while building with -static option.

I've done the test on 5 Amd opteron x86_64 hosts with Cent OS 5.2
     - The error occurs on 3/5.



Any idea ???

    Thanks a lot by advance

            François







  








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

end of thread, other threads:[~2009-02-23  7:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-05 18:49 [OPTERON/x86_64] - can debug while setting breakpoint François Chenais
2009-02-05 18:57 ` Daniel Jacobowitz
2009-02-05 19:16   ` [OPTERON/x86_64] - can't " François Chenais
2009-02-10  8:26     ` François Chenais
2009-02-20  9:03       ` François Chenais
2009-02-22 10:46 ` [OPTERON/x86_64] - can " Jan Kratochvil
2009-02-23  7:34   ` François Chenais

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