Bug #51778 [Fbk->Opn]: crash on libphp5.so, when running ampache's initial scripts

From: Date: Wed, 12 May 2010 17:12:29 +0000
Subject: Bug #51778 [Fbk->Opn]: crash on libphp5.so, when running ampache's initial scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150409@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51778&edit=1

 ID:               51778
 User updated by:  nkostis at gmail dot com
 Reported by:      nkostis at gmail dot com
 Summary:          crash on libphp5.so, when running ampache's initial
                   scripts
-Status:           Feedback
+Status:           Open
 Type:             Bug
 Package:          Apache2 related
 Operating System: plugapps (arch linux)
 PHP Version:      5.2.13

 New Comment:

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?


Previous Comments:
------------------------------------------------------------------------
[2010-05-12 09:09:38] mike@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


Thread (8 messages)

« previous php.bugs (#150409) next »