public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Problems with gdb on 64 bit systems
@ 2012-01-27 23:33 sudhakar govindavajhala
  2012-01-27 23:44 ` Jan Kratochvil
  0 siblings, 1 reply; 2+ messages in thread
From: sudhakar govindavajhala @ 2012-01-27 23:33 UTC (permalink / raw)
  To: gdb

Hi all

On a 64 bit system, I am unable to read any core dump in gdb.    I
generated the core dumps in two ways: via null pointer derefernce in
program and via gdb attach and gcore.

In both the cases, I am unable to read the core files. Do you have any thoughts?

I tried with both gdb 7 and gdb 6.7.

For gdb 7, I tried two different  machines maintained by different
organizations to see what the issue may be.  Both are failing.

Thanks,
--sudhakar

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

* Re: Problems with gdb on 64 bit systems
  2012-01-27 23:33 Problems with gdb on 64 bit systems sudhakar govindavajhala
@ 2012-01-27 23:44 ` Jan Kratochvil
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2012-01-27 23:44 UTC (permalink / raw)
  To: sudhakar govindavajhala; +Cc: gdb

On Sat, 28 Jan 2012 00:33:01 +0100, sudhakar govindavajhala wrote:
> On a 64 bit system, I am unable to read any core dump in gdb.    I
> generated the core dumps in two ways: via null pointer derefernce in
> program and via gdb attach and gcore.
> 
> In both the cases, I am unable to read the core files. Do you have any thoughts?

Works for me on Fedora 16 x86_64:

$ echo 'f(){*(int*)0=0;}main(){f();}'|cc -x c -;(ulimit -c unlimited;./a.out);gdb -batch ./a.out ./core.* -ex bt 
[New LWP 11907]
Missing separate debuginfo for 
Try: yum --disablerepo='*' --enablerepo='*-debuginfo' install /usr/lib/debug/.build-id/1e/2a683b7d877576970e4275d41a6aaec280795e
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000040047d in f ()
#0  0x000000000040047d in f ()
#1  0x0000000000400493 in main ()


> For gdb 7, I tried two different  machines maintained by different
> organizations to see what the issue may be.  Both are failing.

You need to be more specific.  And best to submit the problem for GDB release
by that OS vendor.


Regards,
Jan

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

end of thread, other threads:[~2012-01-27 23:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-27 23:33 Problems with gdb on 64 bit systems sudhakar govindavajhala
2012-01-27 23:44 ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).