Bug #67694 [Com]: Regression in session_regenerate_id()

From: Date: Sun, 24 Aug 2014 16:09:45 +0000
Subject: Bug #67694 [Com]: Regression in session_regenerate_id()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187261@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67694&edit=1 ID: 67694 Comment by: atze at fem dot tu-ilmenau dot de Reported by: atze at fem dot tu-ilmenau dot de Summary: Regression in session_regenerate_id() Status: Closed Type: Bug Package: Session related Operating System: GNU/Linux i386 PHP Version: 5.6.0RC2 Assigned To: yohgaki Block user comment: N Private report: N New Comment: Oh never mind, I also screwed up :) Previous Comments: ------------------------------------------------------------------------ [2014-08-24 16:03:01] atze at fem dot tu-ilmenau dot de This is the backtrace... can anyone reproduce this? Program received signal SIGSEGV, Segmentation fault. php_sprintf (s=0x8771af7 "%s|%s", format=0xb74c9830 "1crisadvoi8p7pv7r833mn2qr3") at /usr/src/php/php5-5.6.0RC4/main/php_sprintf.c:37 37 s[0] = '\0'; (gdb) bt #0 php_sprintf (s=0x8771af7 "%s|%s", format=0xb74c9830 "1crisadvoi8p7pv7r833mn2qr3") at /usr/src/php/php5-5.6.0RC4/main/php_sprintf.c:37 #1 0x081bfebf in php_session_initialize () at /usr/src/php/php5-5.6.0RC4/ext/session/session.c:522 #2 0x081c0730 in php_session_start () at /usr/src/php/php5-5.6.0RC4/ext/session/session.c:1618 #3 0x081c1619 in zif_session_start (ht=0, return_value=0xb74c948c, return_value_ptr=0xb74ae088, this_ptr=0x0, return_value_used=0) at /usr/src/php/php5-5.6.0RC4/ext/session/session.c:2098 #4 0x083decb0 in execute_internal (execute_data_ptr=0xb74ae094, fci=0x0, return_value_used=0) at /usr/src/php/php5-5.6.0RC4/Zend/zend_execute.c:1512 ------------------------------------------------------------------------ [2014-08-24 11:08:46] atze at fem dot tu-ilmenau dot de short testing yields this :( [pid 11627] open("/var/lib/php5/sess_0q1md3dakrcv8g2cu083ef6835", O_RDWR|O_CREAT|O_LARGEFILE|O_NOFOLLOW, 0600) = 6 [pid 11627] fstat64(6, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 [pid 11627] getuid32() = 33 [pid 11627] flock(6, LOCK_EX) = 0 [pid 11627] fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 [pid 11627] fstat64(6, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 [pid 11627] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR, si_addr=0x8771af7} --- But maybe I broke the build. Will test again, but that will take 2 days. ------------------------------------------------------------------------ [2014-08-23 14:22:33] tyrael@php.net duh, dattibaw already fixed it, should have refreshed my browser since commenting yesterday. :/ ------------------------------------------------------------------------ [2014-08-23 14:18:30] tyrael@php.net The following patch has been added/updated: Patch Name: write-short-circuit-fix Revision: 1408803509 URL: https://bugs.php.net/patch-display.php?bug=67694&patch=write-short-circuit-fix&revision=1408803509 ------------------------------------------------------------------------ [2014-08-23 07:19:44] tyrael@php.net ignore the first patch, I screwed up. ------------------------------------------------------------------------ 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=67694 -- Edit this bug report at https://bugs.php.net/bug.php?id=67694&edit=1

« previous php.bugs (#187261) next »