From: ph8 at theplayboymansion dot net Operating system: Redhat Taroon(enterprise) & RH9 PHP version: 5CVS-2004-08-01 (dev) PHP Bug Type: Reproducible crash Bug description: Segfault problem.
Description: ------------ http://pastebin.com/88196 ------------------------------------------------------ This page generates a seg fault in apache using php5-dev NB: If you comment out the include, it works. Why? Who the hell knows [Sun Aug 01 18:53:16 2004] [notice] child pid 30397 exit signal Segmentation fault (11) [Sun Aug 01 18:53:19 2004] [notice] child pid 30398 exit signal Segmentation fault (11) ------------------- Index.php ------------------- <?php include('../include.php'); function getmicrotime() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = getmicrotime(); echo('rahrahrah'); //$s = &session::getInstance(); //$loggedin = $s->verifySession(); $p = strtolower($_GET['p']); // If the page is not set, and they're logged in if (!$p && $loggedin) { $p = 'announce'; } elseif (!$p && !$loggedin) { $p = 'login'; } //$o->getPage($p); $time_end = getmicrotime(); $sid = session_id(); //$query = $d->q("SELECT session_id FROM |users"); //$r = $d->fO($query); echo('Logged in = '.$loggedin.' :: Sid = '.$sid.' :: Needed = '.$r->session_id."<br />"); echo('<!-- Execution time: '.($time_end-$time_start).' -->'."<Br />"); ?> -------------- include.php --------------- <?php /* * include.php * Description: Includes all the important files */ if (!session_id()) { session_start(); } require_once('functions.inc.php'); //$d = &sql::getInstance(); //$i = &input::getInstance(); //$o = &output::getInstance(); ?> Can anyone reproduce this or tell me something that is blatantly wrong? Reproduce code: --------------- http://pastebin.com/88196 Expected result: ---------------- see the page displayed as normal - not a segfault from opening a session!! Actual result: -------------- segfault -- Edit bug report at http://bugs.php.net/?id=29485&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29485&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29485&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29485&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29485&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29485&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29485&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29485&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29485&r=support Expected behavior: http://bugs.php.net/fix.php?id=29485&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29485&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29485&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29485&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29485&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29485&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29485&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29485&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29485&r=float