#49098 [Opn]: Using custom session handler causes segfault in session_save_state
| From: | timj@php.net | Date: | Sun, 08 Nov 2009 19:10:36 +0000 |
| Subject: | #49098 [Opn]: Using custom session handler causes segfault in session_save_state | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144345@lists.php.net to get a copy of this message | ||
ID: 49098
Updated by: timj@php.net
Reported By: bugs at timj dot co dot uk
Status: Open
Bug Type: Session related
Operating System: Linux
PHP Version: 5.2.10
New Comment:
After spending an enormous amount of time testing endless combinations
of compile and runtime options, I have hopefully found the key to
solving this obscure bug. The segfault only happens specifically if the
following is true:
- the mbstring extension is enabled, *AND*
- the mssql extension is enabled (particularly weird because the test
script does not use mssql in any way)
In the hope of making the reproduction scenario more robust, I have
pared down the configure line to a minimum and here is the exact
environment, from source tarball, which I can reproduce it in:
OS: Fedora 11 x86_64 (fully updated as at 2009-11-08)
Notable dependencies:
mysql-devel-5.1.37-1.fc11.x86_64
freetds-devel-0.82-5.fc11.x86_64
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)
Download snapshot 200911070930 from snaps.php.net
tar -jxf php5.2-200911070930.tar.bz2
cd php5.2-200911070930
./configure --includedir=/usr/include --libdir=/usr/lib64
--with-libdir=lib64 --without-pear
--with-mysqli=shared,/usr/bin/mysql_config --enable-mbstring=shared
--enable-mbregex --with-mssql=shared,/usr
make -j3
make install # as root
create /usr/local/etc/php.ini containing only the following:
extension=mbstring.so
extension=mssql.so
extension=mysqli.so
include_path=/path/to/pear/php
$ /usr/local/bin/php -c /usr/local/etc/php.ini php-bug49098.php #
script posted on 11 Aug
Segmentation fault
Commenting out EITHER "extension=mbstring.so" or "extension=mssql.so"
in /usr/local/etc/php.ini stops the segfault.
Can anyone else now reproduce this with the above environment? Is there
any other information about the environment that I need to provide?
Previous Comments:
------------------------------------------------------------------------
[2009-09-26 10:54:13] timj@php.net
1. Still segfaults for me with the release version of 5.2.11, with
MySQLi connection (mysql client libs and server 5.1.37).
-> Sriram, I also tried with your test script (just to make sure there
wasn't a subtle difference from mine) and it also segfaulted.
-> Segfault is still in the same place as originally.
2. snap-200909261030 doesn't build atm (error in mysqli_api)
What more info can I give to assist?
------------------------------------------------------------------------
[2009-09-24 19:32:19] srinatar@php.net
unable to reproduce with the earlier provided test case. so, need more
information to reproduce / investigate this bug . also, would be useful
to know if this still happens with either 5.2.11 (or latest svn
snapshot)
------------------------------------------------------------------------
[2009-09-24 17:48:47] srinatar@php.net
i do have a wordpress running with php 5.2.11 for my site and i don't
have any issues. if you do notice with the latest php build, if you can
provide a test case to reproduce this bug that would be useful.
as i noted earlier, i was not able to reproduce this bug with the
provided test case here.
------------------------------------------------------------------------
[2009-09-18 19:43:06] ulf at ladb dot unm dot edu
Hi,
Is this bug still under investigation? Just wondering because 5.2.9 is
the last version of PHP that works with Wordpress/MySQL without crashing
Apache.
Thanks.
------------------------------------------------------------------------
[2009-09-16 18:19:08] sriram dot natarajan at gmail dot com
i just took the latest php snapshot from http://snaps.php.net and
tried
it out. if you notice, my script is just a completion of your script - i
just filled in some missing pieces in your script - like creating the
table etc .
i am also using mysql 5.1.30
------------------------------------------------------------------------
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/49098
--
Edit this bug report at http://bugs.php.net/?id=49098&edit=1