This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: [PATCH ppc] memset to 0 is broken on PPC405/440/464
- From: Jason Gunthorpe <jgunthorpe at obsidianresearch dot com>
- To: "Ryan S. Arnold" <ryan dot arnold at gmail dot com>
- Cc: libc-ports at sources dot redhat dot com
- Date: Sun, 30 Sep 2012 23:28:17 -0600
- Subject: Re: [PATCH ppc] memset to 0 is broken on PPC405/440/464
- References: <20120921173430.GF30101@obsidianresearch.com> <CAAKybw-xcpa7P9hVtDB4jtg+qUW5QdaALEh4vx=xFSF+omwXow@mail.gmail.com> <20120921181553.GG30101@obsidianresearch.com> <CAAKybw-e6WQc5CoqPDB8-jTd0VvaAtau3WBZk=YFedjxFyS=2w@mail.gmail.com> <20120921202736.GH30101@obsidianresearch.com> <CAAKybw_=tJAzwBaqF6pML81nY1jknqiw44hReV0gmzyd6Y-nyw@mail.gmail.com> <CAAKybw_m4WQfkus8T4N4M7c-tKq14zb3dZQHoUTNGFhA_tGJ_Q@mail.gmail.com> <CAAKybw81RHpRs4oK0LFxgqvPDhwq1qK1NPDPg0CX79d=1LHC=g@mail.gmail.com>
On Tue, Sep 25, 2012 at 11:19:24AM -0500, Ryan S. Arnold wrote:
> Please check out and test my rsa/405memset branch for correctness on 405.
I'm going to say it looks OK, provisionally. The memset seems to be
working, but 2.19 is not running correctly for me (we are using 2.13
presently). I'm not sure if I will have time to investigate this or
not.
Symptom: All exec's segv immediately with no corefile, running
ld.so.1 directly works, running apps through ld.so.1 works:
$ /lib/ld.so.1 /app/bin/strace /app/bin/strace
execve("/app/bin/strace", ["/app/bin/strace"], [/* 3 vars */]) = -1
ENOMEM (Cannot allocate memory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
+++ killed by SIGSEGV +++
Special :)
Nothing stood out to me in the kernel, or in the elf construction as
an obvious 'duh' that would trigger only when loading ld.so through
the interpreter path, I'll let you know if I decide to track it down.
Regards,
Jason