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

* Re: [OPTERON/x86_64] - can debug while setting breakpoint
  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-22 10:46 ` [OPTERON/x86_64] - can " Jan Kratochvil
  1 sibling, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2009-02-05 18:57 UTC (permalink / raw)
  To: François Chenais; +Cc: gdb

On Thu, Feb 05, 2009 at 07:49:08PM +0100, François Chenais wrote:
> I've done the test on 5 Amd opteron x86_64 hosts with Cent OS 5.2
>     - The error occurs on 3/5.

Check that they're all running the same kernel version, check for
kernel updates.  This does not sound like a GDB problem.

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: [OPTERON/x86_64] - can't debug while setting breakpoint
  2009-02-05 18:57 ` Daniel Jacobowitz
@ 2009-02-05 19:16   ` François Chenais
  2009-02-10  8:26     ` François Chenais
  0 siblings, 1 reply; 7+ messages in thread
From: François Chenais @ 2009-02-05 19:16 UTC (permalink / raw)
  To: gdb

Daniel Jacobowitz a écrit :
> On Thu, Feb 05, 2009 at 07:49:08PM +0100, François Chenais wrote:
>> I've done the test on 5 Amd opteron x86_64 hosts with Cent OS 5.2
>>     - The error occurs on 3/5.
> 
> Check that they're all running the same kernel version, check for
> kernel updates.  This does not sound like a GDB problem.
> 

They are running the same kernel !

Effectively, I don't think it's a gdb problem because the error occurs 
for the others debuggers.

I have checked the list and the versions of packages installed, the 
configuration, all seems identical.

What can make the debuggers fail while setting breakpoints ?






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

* Re: [OPTERON/x86_64] - can't debug while setting breakpoint
  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
  0 siblings, 1 reply; 7+ messages in thread
From: François Chenais @ 2009-02-10  8:26 UTC (permalink / raw)
  To: gdb

François Chenais a écrit :
> Daniel Jacobowitz a écrit :
>> On Thu, Feb 05, 2009 at 07:49:08PM +0100, François Chenais wrote:
>>> I've done the test on 5 Amd opteron x86_64 hosts with Cent OS 5.2
>>>     - The error occurs on 3/5.
>>
>> Check that they're all running the same kernel version, check for
>> kernel updates.  This does not sound like a GDB problem.
>>
> 
> They are running the same kernel !
> 
> Effectively, I don't think it's a gdb problem because the error occurs 
> for the others debuggers.
> 
> I have checked the list and the versions of packages installed, the 
> configuration, all seems identical.
> 
> What can make the debuggers fail while setting breakpoints ?
> 
>
The error occurs on HP 585 G2 not on G1 !:/


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

* Re: [OPTERON/x86_64] - can't debug while setting breakpoint
  2009-02-10  8:26     ` François Chenais
@ 2009-02-20  9:03       ` François Chenais
  0 siblings, 0 replies; 7+ messages in thread
From: François Chenais @ 2009-02-20  9:03 UTC (permalink / raw)
  To: gdb

François Chenais a écrit :
> François Chenais a écrit :
>> Daniel Jacobowitz a écrit :
>>> On Thu, Feb 05, 2009 at 07:49:08PM +0100, François Chenais wrote:
>>>> I've done the test on 5 Amd opteron x86_64 hosts with Cent OS 5.2
>>>>     - The error occurs on 3/5.
>>>
>>> Check that they're all running the same kernel version, check for
>>> kernel updates.  This does not sound like a GDB problem.
>>>
>>
>> They are running the same kernel !
>>
>> Effectively, I don't think it's a gdb problem because the error occurs 
>> for the others debuggers.
>>
>> I have checked the list and the versions of packages installed, the 
>> configuration, all seems identical.
>>
>> What can make the debuggers fail while setting breakpoints ?
>>
>>
> The error occurs on HP 585 G2 not on G1 !:/
> 
> 
Something new.

I tried to build new gdb on this system but it fails during configure.
It fails in the conftest cheking division by zero.

I built the conftest and run gdb on it.
The error occurs when catching SIGFPE signal, gdb is blocked waiting!

   François


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

* Re: [OPTERON/x86_64] - can debug while setting breakpoint
  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-22 10:46 ` Jan Kratochvil
  2009-02-23  7:34   ` François Chenais
  1 sibling, 1 reply; 7+ messages in thread
From: Jan Kratochvil @ 2009-02-22 10:46 UTC (permalink / raw)
  To: François Chenais; +Cc: gdb

On Thu, 05 Feb 2009 19:49:08 +0100, François Chenais wrote:
> The same error occurs with others debuggers : totalview, sun dbx, intel idb
> and while using  intel icc or  g++ compilers  :/
...
> I've done the test on 5 Amd opteron x86_64 hosts with Cent OS 5.2
>     - The error occurs on 3/5.

RHEL-5.2 kernel was unfortunately very "unfriendly" to the debuggers due to
utrace and the ptrace emulation on top of it.  RHEL-5.3 has all the commonly
visible problems fixed.


Regards,
Jan


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

* Re: [OPTERON/x86_64] - can debug while setting breakpoint
  2009-02-22 10:46 ` [OPTERON/x86_64] - can " Jan Kratochvil
@ 2009-02-23  7:34   ` François Chenais
  0 siblings, 0 replies; 7+ messages in thread
From: François Chenais @ 2009-02-23  7:34 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb

Jan Kratochvil a écrit :
> On Thu, 05 Feb 2009 19:49:08 +0100, François Chenais wrote:
>> The same error occurs with others debuggers : totalview, sun dbx, intel idb
>> and while using  intel icc or  g++ compilers  :/
> ...
>> I've done the test on 5 Amd opteron x86_64 hosts with Cent OS 5.2
>>     - The error occurs on 3/5.
> 
> RHEL-5.2 kernel was unfortunately very "unfriendly" to the debuggers due to
> utrace and the ptrace emulation on top of it.  RHEL-5.3 has all the commonly
> visible problems fixed.
>
I'm waiting centos 5.3 to try the update.
Thnaks a lot !

		François
> 
> Regards,
> Jan
> 


^ 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