|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-08-24 19:35 UTC] goten at mylaptop dot com
Configuation : ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/etc --with-gd=/usr/local --with-pcre-regex=/usr/local --enable-track-vars using stock php.ini except session.auto_start = 1 Got the following error when I run gdb on PHP 4.01pl2/FreeBSD 4.1 stable system. The script have session used. Apache will most likely crash when there are syntax errors or parsing errors in the script. Keep pressing reload button can also crash Apache sometimes. Program received signal SIGFPE, Arithmetic exception. ---Type <return> to continue, or q <return> to quit--- 0x2834bc77 in _php_session_start () at session.c:853 853 nrand = (int) (100.0*rand()/RAND_MAX); (gdb) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
(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 ()[root{509}]# gdb /usr/local/apache1/bin/httpd 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. 0x28220eff in php_session_start () at session.c:966 966 nrand = (int) (100.0*rand()/RAND_MAX); (gdb) bt #0 0x28220eff in php_session_start () at session.c:966 #1 0x2822244a in php_rinit_session (type=1, module_number=3) at session.c:1442 #2 0x281ef9ab in module_registry_request_startup (module=0x8135fc0) at zend_API.c:838 #3 0x281f2937 in zend_hash_apply (ht=0x282de460, apply_func=0x281ef980 <module_registry_request_startup>) at zend_hash.c:692 #4 0x281eebb3 in zend_activate_modules () at zend.c:502 #5 0x281ff6b9 in php_request_startup () at main.c:646 #6 0x281fcf15 in apache_php_module_main (r=0x8155034, display_source_mode=0) at sapi_apache.c:66 #7 0x281fd8e7 in send_php (r=0x8155034, display_source_mode=0, filename=0x0) at mod_php4.c:503 #8 0x281fd926 in send_parsed_php (r=0x8155034) at mod_php4.c:514 #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 () (gdb) c Continuing. Program terminated with signal SIGFPE, Arithmetic exception. The program no longer exists. (gdb)I spent some time this morning looking into this bug and have been unable to reproduce it. I was able to crash the Netscape browser multiple times over though...take that for what you will. I am also unable to access your 8080 sample page unfortunately. uname -a FreeBSD CatchallServer.tics35.eng.tvol.net 4.2-STABLE FreeBSD 4.2-STABLE #5: Tue Nov 21 08:22:09 EST 2000 root@CatchallServer.tics35.eng.tvol.net:/usr/src/sys/compile/SERVER i386 CatchallServer# pkg_info | grep gd gd-1.8.3 A graphics library for fast PNG creation CatchallServer# pkg_info | grep apache apache+mod_ssl-1.3.14+2.7.1_1 The Apache 1.3 webserver with SSL/TLS functionality apache-1.3.14 The extremely popular Apache http server. Very fast, very c I do not use mysql nor do I use the pcre-regex config lines. Excerpt from local phpinfo: System FreeBSD intern6.eng.tvol.net 4.2-RELEASE FreeBSD 4.2-RELEASE #25: Tue Nov 21 08:29:37 EST 2000 Build Date Dec 11 2000 Configure Command './configure' '--with-imap' '--with-pgsql' '--with-gettext' '--enable-snmp''--enable-track-vars' '--enable-wddx' '--with-gd=/usr/local' '--enable-trans-sid' '--disable-magic-quotes' '--enable-short-tags' '--without-mysql' '--with-apxs=/usr/local/sbin/apxs' '--without-tsrm-pthreads' '--prefix=/suproot/usr/local' I'm currently bringing down a more recent version of PHP to try this with again. This has also been tested on a machine build with the same config file under XFree864.0.2, for which PHP seems to require some of the truetype fonts when built with gd (??). Again, the provided sample file cannot seem to crash the apache server. Again the machine is a FreeBSD 4.2-STABLE system.