Edit report at https://bugs.php.net/bug.php?id=62846&edit=1
ID: 62846
User updated by: anton dot fosselius at gmail dot com
Reported by: anton dot fosselius at gmail dot com
Summary: PHP cross-compile arm UCLIBC causes segfault, GLIBC
works
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I have now tried PHP version 5.3.5, 5.4.0, 5.4.5 same error on all.
Previous Comments:
------------------------------------------------------------------------
[2012-08-17 09:33:09] anton dot fosselius at gmail dot com
Description:
------------
I am running Linux kernel 2.6.34 compiled with uclibc. cross compiling works
fine, basic php scripts run, php function calls cause segfault.
see: http://serverfault.com/questions/418521/cross-compile-php
Test script:
---------------
see: http://serverfault.com/questions/418521/cross-compile-php
Expected result:
----------------
it works!
Actual result:
--------------
# valgrind php test.php
==2181== Command: php test.php
==2181== Conditional jump or move depends on uninitialised value(s)
==2181== at 0x4004EC8: ??? (in /lib/ld-uClibc-0.9.30-nptl.so)
==2181== Invalid read of size 4
==2181== at 0x4004D48: _dl_get_ready_to_run (in
/lib/ld-uClibc-0.9.30-nptl.so)
==2181== Address 0x7d4cc304 is just below the stack ptr. To suppress, use:
--workaround-gcc296-bugs=yes
==2181== Invalid read of size 4
==2181== at 0x48C348C: __uClibc_main (in /lib/libuClibc-0.9.30-nptl.so)
==2181== Address 0x7d4cc554 is just below the stack ptr. To suppress, use:
--workaround-gcc296-bugs=yes
==2181== Invalid write of size 4
==2181== at 0x233010: __eqdf2 (ieee754-df.S:1120)
==2181== Address 0x7d4cb0bc is just below the stack ptr. To suppress, use:
--workaround-gcc296-bugs=yes
Warning: shell_exec(): Unable to execute 'ls -lart' in /test.php on line 3
==2181== Invalid read of size 4
==2181== at 0x1FF1AC: zend_do_fcall_common_helper_SPEC (zend.h:391)
==2181== by 0x1F3D17: execute (zend_vm_execute.h:410)
==2181== by 0x18B217: zend_execute_scripts (zend.c:1279)
==2181== by 0x1365BB: php_execute_script (main.c:2473)
==2181== by 0x22B52B: do_cli (php_cli.c:988)
==2181== by 0x22BD4B: main (php_cli.c:1364)
==2181== Address 0x8 is not stack'd, malloc'd or (recently) free'd
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62846&edit=1