php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5105 Crash in session module (Arithmetic exception)
Submitted: 2000-06-17 23:43 UTC Modified: 2000-06-18 19:19 UTC
From: jon at csh dot rit dot edu Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (17/06/2000) OS: FreeBSD 4.0-STABLE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jon at csh dot rit dot edu
New email:
PHP Version: OS:

 

 [2000-06-17 23:43 UTC] jon at csh dot rit dot edu
(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).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-17 23:49 UTC] jon at csh dot rit dot edu
I should have included my configuration settings:

./configure \
    --with-apache=../apache_1.3.12 \
    --with-config-file-path=/usr/local/apache/conf \
    --enable-debug \
    --enable-track-vars \
    --without-gd \
    --with-gettext \
    --enable-xml
 [2000-06-18 02:18 UTC] rasmus at cvs dot php dot net
Are you really using the latest CVS version?  I am pretty 
sure Andi fixed this recently.
 [2000-06-18 19:19 UTC] rasmus at cvs dot php dot net
Ok, this should be resolved in CVS now.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Sep 18 16:00:02 2025 UTC