Bug #62846 [Fbk->NoF]: PHP cross-compile arm UCLIBC causes segfault, GLIBC works

From: Date: Sun, 20 Dec 2020 04:22:08 +0000
Subject: Bug #62846 [Fbk->NoF]: PHP cross-compile arm UCLIBC causes segfault, GLIBC works
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231177@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62846&edit=1 ID: 62846 Updated by: php-bugs@lists.php.net Reported by: anton dot fosselius at gmail dot com Summary: PHP cross-compile arm UCLIBC causes segfault, GLIBC works -Status: Feedback +Status: No Feedback Type: Bug Package: Reproducible crash Operating System: Linux PHP Version: Irrelevant Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2020-12-09 19:10:58] cmb@php.net Is this still an issue with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> ------------------------------------------------------------------------ [2012-08-17 09:34:58] anton dot fosselius at gmail dot com I have now tried PHP version 5.3.5, 5.4.0, 5.4.5 same error on all. ------------------------------------------------------------------------ [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

« previous php.bugs (#231177) next »