Re: FPE in ld-linux-x86-64.so loading custom extension
| From: | Michael B Allen | Date: | Fri, 11 Apr 2008 16:31:27 +0000 |
| Subject: | Re: FPE in ld-linux-x86-64.so loading custom extension | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36957@lists.php.net to get a copy of this message | ||
On 4/11/08, Antony Dovgal <tony@daylessday.org> wrote:
> On 10.04.2008 21:19, Michael B Allen wrote:
>
> > Can anyone recommend a method for debugging this issue?
> >
>
> I'd start with --enable-debug and valgrind.
>
>
> > It seems to be this one particular server. I have not been able to
> > reproduce the issue here.
> >
>
> What's the difference between this server and the others?
> Do the others use different Apache version/build?
> Other architecture maybe? LD version?
Actually it looks like this does have to do with the LD version and
specifically the .hash vs .hash.gnu section in the binaries. I was
building x86_64 binaries on a machine that only used the newer
.hash.gnu section (contrary to the man page which claims sysv style is
the default). I suspect that the client is using an older system who's
loader only supports the traditional sysv style .hash section. It
seems the solution is to use -Wl,--hash-style=both so that the dso and
library it's linked with have both the .hash and .hash.gnu sections
(confirmed with objdump -h foo.so).
But I'm waiting to hear back from the client for the verdict. I'll
post a followup.
Mike
--
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/