PHP 4.0 Bug #5105: Crash in session module (Arithmetic exception)

From: Date: Sat, 17 Jun 2000 21:43:33 +0000
Subject: PHP 4.0 Bug #5105: Crash in session module (Arithmetic exception)
Groups: php.dev 
Request: Send a blank email to php-dev+get-21644@lists.php.net to get a copy of this message
From: jon@csh.rit.edu Operating system: FreeBSD 4.0-STABLE PHP version: 4.0 Latest CVS (17/06/2000) PHP Bug Type: Reproduceable crash Bug description: Crash in session module (Arithmetic exception) (gdb) run -X Starting program: /usr/local/apache/bin/./httpd -X Program received signal SIGFPE, Arithmetic exception. 0x80a0ec0 in _php_create_id (newlen=0x0) at session.c:423 423 sprintf(buf, "%ld%ld%0.8f", tv.tv_sec, tv.tv_usec, php_combined_lcg() * 10); (gdb) bt #0 0x80a0ec0 in _php_create_id (newlen=0x0) at session.c:423 #1 0x80a1b7f in _php_session_start () at session.c:824 #2 0x80a2e17 in php_if_session_start (ht=0, return_value=0x8225ca4, this_ptr=0x0, return_value_used=0) at session.c:1205 #3 0x810f0e2 in execute (op_array=0x821f424) at ./zend_execute.c:1558 #4 0x810f2c3 in execute (op_array=0x81cdaa4) at ./zend_execute.c:1598 #5 0x80832e4 in php_execute_script (primary_file=0xbfbff98c) at main.c:1162 #6 0x80f2538 in apache_php_module_main (r=0x8215034, fd=18, display_source_mode=0) at sapi_apache.c:93 #7 0x8080d71 in send_php (r=0x8215034, display_source_mode=0, filename=0x8215a94 "/usr/local/apache/htdocs/horde/login.php") at mod_php4.c:512 #8 0x8080dbe in send_parsed_php (r=0x8215034) at mod_php4.c:524 #9 0x8118c75 in ap_invoke_handler (r=0x8215034) at http_config.c:508 #10 0x812cc70 in process_request_internal (r=0x8215034) at http_request.c:1215 #11 0x812ccda in ap_process_request (r=0x8215034) at http_request.c:1231 #12 0x8123f7f in child_main (child_num_arg=0) at http_main.c:4177 #13 0x812413d in make_child (s=0x81ba034, slot=0, now=961272397) at http_main.c:4281 #14 0x81242b6 in startup_children (number_to_start=3) at http_main.c:4363 #15 0x81248c0 in standalone_main (argc=2, argv=0xbfbffc24) at http_main.c:4651 #16 0x81250d8 in main (argc=2, argv=0xbfbffc24) at http_main.c:4978 Works fine with PHP 4.0.0 (release).

« previous php.dev (#21644) next »