php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47505 SPL and apache module crash in SSL
Submitted: 2009-02-25 22:24 UTC Modified: 2009-03-18 01:00 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: lordsabre at hotmail dot com Assigned:
Status: No Feedback Package: SPL related
PHP Version: 5.2.8 OS: Freebsd 4.9 & freebsd 6.3 AMD64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lordsabre at hotmail dot com
New email:
PHP Version: OS:

 

 [2009-02-25 22:24 UTC] lordsabre at hotmail dot com
Description:
------------
Freebsd 4.9 
Apache 2.0.59  php 5.2.8

Upgrading for new install of php 5.2.8 causes a general fault in the SSL apache engine, resulting in a core dump. It is noted that when the server is started in non SSL mode the server starts and no core dump. However, $_post causes a php error of out of memory. Tracing back it comes from the array table SPL.

The same exact configuration was used for 5.2.6 which is not experiencing this problem. Recompiled and install 5.2.6 as a work around.

The config is as follows:
./configure --prefix=/usr/local/php --mandir=/usr/share/man --enable-force-cgi-redirect --with-openssl=/usr/local/ssl --with-mysql=/usr/local/mysql --with-mysql-sock=/var/mysqlsocket/mysql.sock --with-apxs2=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local/libjpeg --with-png-dir=/usr/local/libpng --with-zlib-dir=/usr/local/zlib --with-gd --with-freetype-dir=/usr/local/freetype --with-config-file-path=/usr/local/php/etc --with-iconv=/usr/local/libiconv -with-mcrypt=/usr/local/libmcrypt --with-libxml-dir=/usr/local/libxml --with-imap=/usr/local/imapclient --with-imap-ssl --disable-ipv6 --with-curl=/usr/local/curl --enable-bcmath --enable-ftp

Tried the same on a newer machine:
Freebsd 6.3 AMD64  apache 2.2.9
Compiled 5.2.8 and same exact results as 4.9. Core dump. Interesting aspect there is absolutely no information other than using gdb to step through apache.
Slight different config. Because of package locations. 
./configure --prefix=/usr/local/php --mandir=/usr/share/man --enable-force-cgi-redirect --with-openssl=/usr  --with-mysql=/usr/local/mysql --with-mysql-sock=/var/socket/mysqlsocket --with-apxs2=/usr/local/apache/sbin/apxs --with-jpeg-dir=/usr/local/libjpeg --with-png-dir=/usr/local/libpng --with-zlib-dir=/usr/local/zlib --with-gd --with-freetype-dir=/usr/local/freetype --with-config-file-path=/usr/local/php/etc --with-libxml-dir=/usr/local/libxml --with-iconv=/usr/local/libiconv --with-curl=/usr/local/curl --with-mcrypt=/usr/local/mcrypt --with-imap=/usr/local/imapclient --with-imap-ssl --disable-ipv6 --with-ftp

During the tests
this failure of 5.2.8 during make test was observed.
SPL: ArrayObject::__construct basic usage with ArrayObject::ARRAY_AS_PROPS. [ext/spl/tests/arrayObject___construct_basic4.phpt]
SPL: ArrayObject::__construct basic usage with ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS. [ext/spl/tests/arrayObject___construct_basic5.phpt]
SPL: ArrayObject::exchangeArray() basic usage with object as underlying data store. [ext/spl/tests/arrayObject_exchangeArray_basic3.phpt]
SPL: ArrayObject::setFlags basic usage with ArrayObject::ARRAY_AS_PROPS. [ext/spl/tests/arrayObject_setFlags_basic1.phpt]



Reproduce code:
---------------
None required.
See above

Expected result:
----------------
See description  core dump

Actual result:
--------------
See description. not overly long.

No field for this part:
Also note http://www.freebsd.org/cgi/ports.cgi?query=php+&stype=all&sektion=lang, there a number of files/patches for 5.2.8 that is not included or shown in php. I have not retested with the patches, since php should compile  and operate out of the box. Not everyone agrees with the changes of directory structure in Freebsd.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-10 10:36 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-03-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC