Bug #70885 [NEW]: session_regenerate_id segfaults
From: JosiahBradley at gmail dot com
Operating system: Amazon Linux
PHP version: 7.0.0RC6
Package: Session related
Bug Type: Bug
Bug description:session_regenerate_id segfaults
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 bug report at https://bugs.php.net/bug.php?id=70885&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70885&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70885&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70885&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70885&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70885&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70885&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70885&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70885&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70885&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70885&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70885&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70885&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70885&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70885&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70885&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70885&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70885&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70885&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70885&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70885&r=mysqlcfg
Thread (6 messages)
- JosiahBradley at gmail dot com