Edit report at http://bugs.php.net/bug.php?id=51778&edit=1
ID: 51778 Updated by: m...@php.net Reported by: nkostis at gmail dot com Summary: crash on libphp5.so, when running ampache's initial scripts Status: Open Type: Bug Package: Apache2 related Operating System: plugapps (arch linux) PHP Version: 5.2.13 New Comment: Nope, sorry. I'm running PHP on 2.6.33-ARCH x86_64 without problems, but that doesn't mean anything to your problem. Previous Comments: ------------------------------------------------------------------------ [2010-05-12 19:12:28] nkostis at gmail dot com Ok, this script works: <?php phpinfo(); ?> while this one crashes apache (with the same stack trace as initially posted): <?php $prefix = dirname(__FILE__); #or .. = dirname("."); ?> Finally if i run the same script without an argument passed for dirname: <?php $prefix = dirname(); ?> php issues an error, but there's no crash. This implies stack corruption and compiler problems, but calling: $row_classes = array('even', 'odd'); doesn't crash apache. any ideas? is this helpful at all? ------------------------------------------------------------------------ [2010-05-12 09:09:38] m...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2010-05-09 23:06:53] nkostis at gmail dot com Description: ------------ I get this core dump when running anything from ampache (test.php, index.php, install.php, any ampache version): #0 0x406300a8 in _zval_ptr_dtor () from /etc/httpd/modules/libphp5.so #1 0x40660624 in zend_do_fcall_common_helper_SPEC () from /etc/httpd/modules/libphp5.so #2 0x4065dec8 in execute () from /etc/httpd/modules/libphp5.so the rest of the stack trace is unknown as LAMP runs on limited hardware (the pogoplug) and i have not install debug symbols. Pogoplug currently runs plugapps, an arm optimized version of Arch linux. I am not sure whether this crash is a vanilla php bug or a plugapps php issue. A basic "phpinfo()" script runs fine so at least basic php operation is properly configured. Sorry if the bug is not vanilla php and i'm wasting your time. Test script: --------------- any ampache script, i.e. test.php (http://pastebin.com/FXAtKNyJ), run on plugbox linux (arch 2.6.33 based) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51778&edit=1