This is the mail archive of the gdb-patches@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: Regression on prelinked-sepdebug-shlibs


On Thu, 07 Jan 2010 12:03:04 +0100, Tristan Gingold wrote:
...
> I am not sure that you can create a linux native executable with a section whose vma is 0.
> But unfortunately linux refuses to execute that (I got a sigkill very very
> early) so I can't play with that.

https://bugzilla.redhat.com/show_bug.cgi?id=434714

>From Chuck Ebbert:
echo "0" >/proc/sys/vm/mmap_min_addr
That should fix it -- at least on F8 changing that from 0 to 32768 made it fail.
(The executable code starts at 0.)

>From Roland McGrath:
Yup, I think this is pretty much expected behavior.
i.e. an ET_EXEC with a p_vaddr at 0 is asking for a mmap that it is often
security policy to refuse.  Unfortunately there really isn't much better than
SIGKILL death that you can expect for this.



Regards,
Jan


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