ID: 46568 User updated by: phpbugs at colin dot guthr dot ie Reported By: phpbugs at colin dot guthr dot ie Status: Closed Bug Type: Scripting Engine problem Operating System: * (64bit) PHP Version: 5.2.7RC3 New Comment:
Actually for clarity in my further dealing with this problem, can you tell me if the OpenSuse builds used -fno-strict-aliasing or not? If it is compiled with -O2 -fstrict-aliasing and does not exhibit the bug it would be easier for me to point the finger at our gcc build. Thanks. Previous Comments: ------------------------------------------------------------------------ [2008-11-19 09:36:50] phpbugs at colin dot guthr dot ie Thank you for your help Mr Rodriguez! The first CFLAGs option was sufficient to not trigger the segv. This is clearly not a problem of PHP and the problem obviously lies with the GCC in Mandriva. I'll raise the bug within our own systems for that. Thanks to everyone for their patience and effort in helping diagnose this issue. ------------------------------------------------------------------------ [2008-11-19 05:22:00] crrodriguez at opensuse dot org Yes, it suggest that your compiler optimized badly.. try export CFLAGS="-O2 -fno-strict-aliasing" and rebuild. if still crashes... try -O1.. ------------------------------------------------------------------------ [2008-11-18 21:20:43] phpbugs at colin dot guthr dot ie OK, I repeated the make test sans-debug and it seems that a couple more tests fail under this scenario. http://kenobi.mandriva.com/~colin/php_test_results_20081118_2054.txt The most interesting extra failure is: Bug #30707 (Segmentation fault on exception in method) [Zend/tests/bug30707.phpt] This could perhaps provide some clues? For convenience, here is a diff of non-debug vs. debug: http://kenobi.mandriva.com/~colin/php-make-test.diff.txt ------------------------------------------------------------------------ [2008-11-18 20:46:09] phpbugs at colin dot guthr dot ie Just tried --enable-debug and when built this way, it does indeed work as expected. Does this suggest anything else I can try to narrow down the problem. I also tried make test and did get several failures. I uploaded the test results to http://kenobi.mandriva.com/~colin/php_test_results_20081118_2006.txt although none of these look particularly relevant. I will do another build sans --enable-debug and see if any different standard tests fail. ------------------------------------------------------------------------ [2008-11-18 18:11:21] crrodriguez at opensuse dot org Did you built 5.2.7RC3 with --enable-debug ? if not, try that, does it crash anyway ? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/46568 -- Edit this bug report at http://bugs.php.net/?id=46568&edit=1