All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 6566] New: PHP segfault when crosscompiled to mips64
@ 2013-10-18 23:28 bugzilla at busybox.net
  2013-10-23  1:46 ` [Buildroot] [Bug 6566] PHP segfault when crosscompiled to mips64 - patch included bugzilla at busybox.net
  2013-10-23 22:46 ` bugzilla at busybox.net
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2013-10-18 23:28 UTC (permalink / raw)
  To: buildroot

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.

-- 
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 6566] PHP segfault when crosscompiled to mips64 - patch included
  2013-10-18 23:28 [Buildroot] [Bug 6566] New: PHP segfault when crosscompiled to mips64 bugzilla at busybox.net
@ 2013-10-23  1:46 ` bugzilla at busybox.net
  2013-10-23 22:46 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2013-10-23  1:46 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=6566

Cassiano Martin <cassiano@idbinfo.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|PHP segfault when           |PHP segfault when
                   |crosscompiled to mips64     |crosscompiled to mips64 -
                   |                            |patch included

-- 
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 6566] PHP segfault when crosscompiled to mips64 - patch included
  2013-10-18 23:28 [Buildroot] [Bug 6566] New: PHP segfault when crosscompiled to mips64 bugzilla at busybox.net
  2013-10-23  1:46 ` [Buildroot] [Bug 6566] PHP segfault when crosscompiled to mips64 - patch included bugzilla at busybox.net
@ 2013-10-23 22:46 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2013-10-23 22:46 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=6566

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Peter Korsgaard <jacmet@uclibc.org> 2013-10-23 22:46:13 UTC ---
Thanks, I've committed a slightly tweaked patch (use our existing BR2_ENDIAN
symbol instead) as 21a4a9003e3.

-- 
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-23 22:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18 23:28 [Buildroot] [Bug 6566] New: PHP segfault when crosscompiled to mips64 bugzilla at busybox.net
2013-10-23  1:46 ` [Buildroot] [Bug 6566] PHP segfault when crosscompiled to mips64 - patch included bugzilla at busybox.net
2013-10-23 22:46 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.