[lkml]   [1996]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: (2.0 bug?) ELF truncated core dump solved - binfmt_elf.c patch

>The following code from binfmt_elf.c/maydump causes 1.3.85 to generate
>core files under some circumstances (i.e. the product I'm trying to
>develop :-() that GDB 4.14 cannot read, giving a truncated core file

The patch that you sent appears to only mask the actual problem.
The idea behind that code is that we only dump portions of memory that
are writable, and not write out executable code which could have been
obtained from the executable instead, for example.

Would you be able to build gdb and then run gdb under gdb
(it takes a bit of getting used to, but it isn't that bad :-))?
I would be more interested in seeing exactly what it is about the core
file in question that causes gdb to generate that message. Once we
understand this, it should be pretty easy to figure out what is wrong
in binfmt_elf.c that causes you the problems.


"The woods are lovely, dark and deep. But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."

 \ /
  Last update: 2005-03-22 13:37    [W:0.068 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site