From:             anton dot fosselius at gmail dot com
Operating system: Linux
PHP version:      Irrelevant
Package:          Reproducible crash
Bug Type:         Bug
Bug description:PHP cross-compile arm UCLIBC causes segfault, GLIBC works

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 bug report at https://bugs.php.net/bug.php?id=62846&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62846&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62846&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62846&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62846&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62846&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62846&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62846&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62846&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62846&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62846&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62846&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62846&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62846&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62846&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62846&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62846&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62846&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62846&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62846&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62846&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62846&r=mysqlcfg

Reply via email to