PHP 4.0 Bug #3943: PHP chrashes when request_method is set
| From: | edink at proventum dot net | Date: | Tue, 28 Mar 2000 15:07:16 +0000 |
| Subject: | PHP 4.0 Bug #3943: PHP chrashes when request_method is set | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17318@lists.php.net to get a copy of this message | ||
From: edink@proventum.net
Operating system: Linux 2.2 (Redhat 6.1)
PHP version: 4.0 Latest CVS (28/03/2000)
PHP Bug Type: Reproduceable crash
Bug description: PHP chrashes when request_method is set
The PHP version is RC1 which is not in the select yet.
If you compile RC1 as a binary and have REQUEST_METHOD set in you environment to "GET"
running php -i will cause segfault. I know that you shouldn't have that var set, but anyway.
Starting program: /data/projects/ek/php-4.0RC1/php
X-Powered-By: PHP/4.0RC1
Content-type: text/html
No input file specified.
Program received signal SIGSEGV, Segmentation fault.
0x8097976 in _efree (ptr=0x0) at zend_alloc.c:176
176 if (!ZEND_DISABLE_MEMORY_CACHE
(gdb) bt
#0 0x8097976 in _efree (ptr=0x0) at zend_alloc.c:176
#1 0x80a695b in zend_hash_destroy (ht=0x814c204) at zend_hash.c:535
#2 0x8061b63 in php_rshutdown_basic (type=1, module_number=4) at basic_functions.c:679
#3 0x80a4111 in module_registry_cleanup (module=0x8165f60) at zend_API.c:870
#4 0x80a6b88 in zend_hash_apply (ht=0x814e600, apply_func=0x80a40e0
<module_registry_cleanup>)
at zend_hash.c:655
#5 0x80a3979 in zend_deactivate () at zend.c:461
#6 0x80900f5 in php_request_shutdown (dummy=0x0) at main.c:663
#7 0x806142b in main (argc=1, argv=0x7ffffab4) at cgi_main.c:567