Bug #70885 [Com]: session_regenerate_id segfaults
Edit report at https://bugs.php.net/bug.php?id=70885&edit=1
ID: 70885
Comment by: JosiahBradley at gmail dot com
Reported by: JosiahBradley at gmail dot com
Summary: session_regenerate_id segfaults
Status: Feedback
Type: Bug
Package: Session related
Operating System: Amazon Linux
PHP Version: 7.0.0RC6
Block user comment: N
Private report: N
New Comment:
Unfortunately there was a change, SHA3, to ext/hash that is preventing compilation on either the
master or PHP-7.0 branches. Should I file another bug about the SHA3 compilation error or wait until
the 12th for the final PHP 7.0 release?
Also the link to the snapshot is dead so I continued to use the git source.
Previous Comments:
------------------------------------------------------------------------
[2015-11-10 05:43:51] reeze@php.net
Please try using this snapshot:
http://snaps.php.net/php-trunk-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
it should been fixed in master. try master branch please.
------------------------------------------------------------------------
[2015-11-10 04:39:44] JosiahBradley at gmail dot com
Description:
------------
Whenever session_regenerate_id() is called PHP segfaults. The session file is created in the save
path. I am using php-fpm and my configure line is
./configure --enable-debug --prefix=/usr/local --enable-fpm --with-fpm-acl --with-fpm-user=php
--with-fpm-group=php --with-config-file-path\
=/usr/local/php5/conf --disable-cgi --disable-short-tags --with-openssl --with-zlib --enable-zip
--with-curl=/usr/local/lib --disable-flatf\
ile --enable-opcache --with-gd --with-jpeg-dir=/usr --without-ldap --enable-mbstring
--with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --disab\
le-phar --with-readline --enable-sockets --enable-pcntl --without-pear --with-gnu-ld
--with-libdir=lib64 --libdir=/usr/lib64/
php.ini related to session changed from defaults:
session.hash_function = 1
session.hash_bits_per_character = 6
Test script:
---------------
session_start();
echo session_save_path();
session_regenerate_id();
Expected result:
----------------
The location of the session save path.
Actual result:
--------------
#0 ps_files_path_create (buf=0x7ffc75268dc0 "", data=0x0, key=0x7fb976803068
"DKMeRn,GkcwqPerBP6zex4FaSg3", buflen=4096)
at /usr/local/src/php/php-src/ext/session/mod_files.c:117
#1 0x0000000000649533 in ps_files_key_exists (data=0x7fb976803068, key=0x0) at
/usr/local/src/php/php-src/ext/session/mod_files.c:334
#2 0x00000000006478df in zif_session_regenerate_id (execute_data=<optimized out>,
return_value=0x7fb9768150b0)
at /usr/local/src/php/php-src/ext/session/session.c:2081
#3 0x00000000007ce52d in ZEND_DO_ICALL_SPEC_HANDLER () at
/usr/local/src/php/php-src/Zend/zend_vm_execute.h:586
#4 0x00000000007c0cdb in execute_ex (ex=<optimized out>) at
/usr/local/src/php/php-src/Zend/zend_vm_execute.h:414
#5 0x0000000000809d47 in zend_execute (op_array=0x7fb976874000, op_array@entry=0x7fb9768692c0,
return_value=return_value@entry=0x7fb976815030) at
/usr/local/src/php/php-src/Zend/zend_vm_execute.h:458
#6 0x0000000000785cd4 in zend_execute_scripts (type=type@entry=8, retval=0x7fb976815030,
retval@entry=0x0, file_count=file_count@entry=3)
at /usr/local/src/php/php-src/Zend/zend.c:1428
#7 0x000000000072ac40 in php_execute_script (primary_file=primary_file@entry=0x7ffc7526c290)
at /usr/local/src/php/php-src/main/main.c:2471
#8 0x000000000043f30c in main (argc=<optimized out>, argv=<optimized out>) at
/usr/local/src/php/php-src/sapi/fpm/fpm/fpm_main.c:1944
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70885&edit=1
Thread (6 messages)