Bug #15875: Apache segfault while overwriting SessionID

From: Date: Tue, 05 Mar 2002 14:26:35 +0000
Subject: Bug #15875: Apache segfault while overwriting SessionID
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1687@lists.php.net to get a copy of this message
From: neuro@interia.pl Operating system: Linux/FreeBSD PHP version: 4.1.2 PHP Bug Type: Session related Bug description: Apache segfault while overwriting SessionID This function call causes frequent segmentation fault + core on Apache 1.3.2x + PHP 4.1.x (all versions => 4.1.0) function StartMySession() { srand((double) microtime() * 1000000); $hash = bin2hex(mhash(MHASH_MD5, rand(1, time()) . microtime(), 'public_identificator')); session_id($hash); session_name($this->globalName); session_set_cookie_params($this->globalTime, '/', '.my.domain'); session_start(); $sessionID = session_id(); $GLOBALS[$this->varControlName] = true; session_register($this->varControlName); return $sessionID; } PHP compiled as Apache module: --with-gd=../gd-1.8.4 \ --with-oci8 \ --enable-sigchild \ --enable-ftp \ --with-mysql \ --with-xml \ --enable-track-vars \ --enable-sysvsem \ --enable-sysvshm \ --enable-trans-sid \ --enable-gd-native-ttf \ --with-ttf=../freetype-2.0.8 \ --with-jpeg-dir=/usr/lib \ --with-zlib-dir=/usr/lib \ --with-png-dir=/usr/lib \ --with-mhash -- Edit bug report at http://bugs.php.net/?id=15875&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15875&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15875&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15875&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15875&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15875&r=support Expected behavior: http://bugs.php.net/fix.php?id=15875&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15875&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15875&r=submittedtwice

« previous php.bugs (#1687) next »