This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CoreDump -- Cannot access memory


On Wed, Oct 1, 2008 at 2:32 PM,  <rdtorres@gmail.com> wrote:

> Before running it on STLinux I'm running: ulimited -c unlimited.
> Do you have any idea why the stack of my core-dump is broken ?

The two common reasons I've seen:
- core is truncated.
- mismatch between /opt/7109/STM/STLinux-2.2/devkit/sh4/target/lib/libc.so.6
  that you see on host, and what is actually used on the target.

Note that 'ulimit -c unlimited' does not guarantee that you have
a complete core: you could run into filesystem limit for example.

> Ps. Note that the memory address is a huge address ( 0x7b916ff8 ).

I am not familiar with SH, but the high value does not appear to
be unreasonable for a stack address.

Cheers,

P.S. If you have (or can build) a gdbserver for the target, you
might want to use that instead of core.

-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]