[PHP-DEV] PHP 4.0 Bug #6341 Updated: floating point exception on session.c From: sniper <email protected>
Date: 12/18/00

ID: 6341
Updated by: sniper
Reported By: goten <email protected>
Status: Open
Old-Bug Type: Reproduceable crash
Bug Type: *Session related
Assigned To:
Comments:

Previous Comments:
---------------------------------------------------------------------------

[2000-12-08 01:16:00] goten <email protected>
As of 12/7, it still happen in the latest snap shot.

---------------------------------------------------------------------------

[2000-12-04 14:08:08] goten <email protected>
(gdb) bt
#0 0x2821f913 in php_session_start () at session.c:924
#1 0x28220e32 in php_rinit_session (type=1, module_number=3) at session.c:1387
#2 0x281ee0a3 in module_registry_request_startup (module=0x813fcc0)
    at zend_API.c:838
#3 0x281f0ff3 in zend_hash_apply (ht=0x282d9c80,
    apply_func=0x281ee078 <module_registry_request_startup>) at zend_hash.c:692
#4 0x281ed2ab in zend_activate_modules () at zend.c:490
#5 0x281fcbdf in php_execute_script (primary_file=0xbfbff700) at main.c:1137
#6 0x281f97f4 in apache_php_module_main (r=0x815f034, display_source_mode=0)
    at sapi_apache.c:89
#7 0x281fa15b in send_php (r=0x815f034, display_source_mode=0, filename=0x0)
    at mod_php4.c:510
#8 0x281fa19a in send_parsed_php (r=0x815f034) at mod_php4.c:521
#9 0x8054981 in ap_invoke_handler ()
#10 0x80692fc in process_request_internal ()
#11 0x8069366 in ap_process_request ()
#12 0x806050f in child_main ()
#13 0x80606ed in make_child ()
#14 0x8060866 in startup_children ()
#15 0x8060e74 in standalone_main ()
#16 0x80616a4 in main ()
#17 0x804f399 in _start ()

---------------------------------------------------------------------------

[2000-12-04 14:02:36] goten <email protected>
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...(no debugging symbols found)...
(gdb) run -f /usr/local/apache1/conf/httpd.conf -X
Starting program: /usr/local/apache1/bin/httpd -f /usr/local/apache1/conf/httpd.conf -X
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...
Program received signal SIGFPE, Arithmetic exception.
0x2821f913 in php_session_start () at session.c:924
924 nrand = (int) (100.0*rand()/RAND_MAX);

---------------------------------------------------------------------------

[2000-12-03 19:03:59] sniper <email protected>
Could you please try getting a gdb backtrace of that crash?
And have you tried the snapshot yet???

--Jani

---------------------------------------------------------------------------

[2000-12-01 15:23:21] goten <email protected>
Here is two link you can try.

This one use --without-gd flag
http://www.hkgonline.net/test3.php

This one use --with-gd flag
http://www.hkgonline.net:8080/test3.php

Just go to each of the link and keep pressing reload button using netscape. You will see the port 8080 one crash from time to time. I use FreeBSD GD-1.8.3 port from http://www.freebsd.org/cgi/ports.cgi?query=gd-1.8.3&stype=all

Source code for test3.php is

<?php

   echo "a";
   cdbconnect(); //call to a function did not define

?>

---------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=6341

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>