New: PHP segfault when crosscompiled to mips64
https://bugs.busybox.net/show_bug.cgi?id=6566
Summary: PHP segfault when crosscompiled to mips64
Product: buildroot
Version: 2013.08
Platform: Other
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: cassiano at idbinfo.com.br
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Created attachment 5084
--> https://bugs.busybox.net/attachment.cgi?id=5084
endian fix
PHP crashes with a segfault when compiled do mips64r2 n32.
Any function related to timezone gives a segfault, like date(), gettimeofday(), and some other random errors, like microtime() dumping garbage on the screen.
I found out that autoconf did not set some macros when configuring, resulting little endian code being compiled to a big endian machine.
A simple test can be done on a mips64 machine:
php -r 'print_r(date('l'));'
Result in segfault instantly.
Attached is a patch that solves this issue.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 6566] PHP segfault when crosscompiled to mips64 - patch included
https://bugs.busybox.net/show_bug.cgi?id=6566
Cassiano Martin <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|PHP segfault when |PHP segfault when
|crosscompiled to mips64 |crosscompiled to mips64 -
| |patch includedSignature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 6566] PHP segfault when crosscompiled to mips64 - patch included
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=6566
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #1 from Peter Korsgaard <[email protected]> 2013-10-23 22:46:13 UTC --- Thanks, I've committed a slightly tweaked patch (use our existing BR2_ENDIAN symbol instead) as 21a4a9003e3.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.