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

From: Date: Sun, 11 Mar 2018 13:08:13 +0000
Subject: Bug #51778 [Opn->Fbk]: crash on libphp5.so, when running ampache's initial scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214285@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51778&edit=1

 ID:                 51778
 Updated by:         cmb@php.net
 Reported by:        nkostis at gmail dot com
 Summary:            crash on libphp5.so, when running ampache's initial
                     scripts
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Apache2 related
 Operating System:   plugapps (arch linux)
 PHP Version:        5.2.13
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Hmm, rather old ticket without much helpful information.  Can
anybody still reproduce this with current PHP versions? If so, a
proper backtrace might be helpful.


Previous Comments:
------------------------------------------------------------------------
[2010-06-30 11:46:35] p dot d dot mallinson at liv dot ac dot uk

I'm having the same problem on Solaris 10.  phpinfo() works fine, so does setting variables but
as soon as I try $path = getenv("PATH") it causes Apache segmentation fault in the child
which was running.

------------------------------------------------------------------------
[2010-05-18 18:43:15] nkostis at gmail dot com

speaking with others on the plugapps forums, this seems to be only related with php on arm.
Also, it's not related to apache, for example it crashes with lighttpd as well.

maybe a newer php wouldn't have the issue, although plugapps devs also mentioned that they
can't get it to compile on arm/openpogo (that's a different bug though)

------------------------------------------------------------------------
[2010-05-18 10:30:22] mike@php.net

Nope, sorry. I'm running PHP on 2.6.33-ARCH x86_64 without problems, but that doesn't mean
anything to your problem.

------------------------------------------------------------------------
[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] 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.



------------------------------------------------------------------------


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

    https://bugs.php.net/bug.php?id=51778


--
Edit this bug report at https://bugs.php.net/bug.php?id=51778&edit=1


Thread (8 messages)

« previous php.bugs (#214285) next »