php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6806 crash in zend_alloc.c upon viewing php page
Submitted: 2000-09-18 21:50 UTC Modified: 2000-10-17 06:22 UTC
From: japj at oce dot nl Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (18/09/2000) OS: Windows 2000
Private report: No CVE-ID: None
 [2000-09-18 21:50 UTC] japj at oce dot nl
When using Apache/1.3.12 (Win32) PHP/4.0.3-dev and trying to view a php webpage I get a reproducable crash.

The crash occurs in Zend/zend_alloc.c line 196 (_efree) at CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size);

Attaching the debugger and looking at the call stack:

_efree(void * 0xcdcdcdcd, char * 0x005f4cf8 `string', unsigned int 0x0000005c, char * 0x00000000, unsigned int 0x00000000) line 196 + 3 bytes
url_adapt(const char * 0x00000000, unsigned int 0x00000000, const char * 0x00000000, unsigned int * 0x00000000) line 92 + 47 bytes
php_rinit_url_scanner(int 0x00000001, int 0x00000002, _zend_executor_globals * 0x011168b8) line 39 + 13 bytes
php_rinit_basic(int 0x00000001, int 0x00000002, _zend_executor_globals * 0x011168b8) line 765 + 17 bytes
module_registry_request_startup(_zend_module_entry * 0x010e48a8) line 838 + 28 bytes
zend_hash_apply(_hashtable * 0x00638600 _module_registry, int (void *)* 0x005076f0 module_registry_request_startup(_zend_module_entry *)) line 692 + 12 bytes
zend_activate_modules() line 490 + 15 bytes
php_execute_script(_zend_file_handle * 0x013efda4, _zend_compiler_globals * 0x010f7db8, _zend_executor_globals * 0x011168b8, _php_core_globals * 0x01121b00) line 1136
apache_php_module_main(request_rec * 0x00ffd538, int 0x00000000, _zend_compiler_globals * 0x010f7db8, _zend_executor_globals * 0x011168b8, _php_core_globals * 0x01121b00, sapi_globals_struct * 0x010f4f20) line 89 + 22 bytes
send_php(request_rec * 0x00ffd538, int 0x00000000, char * 0x00ffda80) line 509 + 29 bytes
send_parsed_php(request_rec * 0x00ffd538) line 520 + 13 bytes
APACHECORE! 10004927()

Best regards,

Jeroen Janssen

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-21 07:44 UTC] sniper@php.net
Have you updated your CVS lately? Please try latest CVS..
Does this crash happen with ANY php-page? 
Please include a shortest possible reproducing script here.

--Jani
 [2000-10-16 11:18 UTC] sniper@php.net
I try again:

Does this still happen when using PHP4.0.3pl1 ?
And if so, does this crash happen with ANY php-page? 
Please include a shortest possible reproducing script here.

--Jani

 [2000-10-17 02:57 UTC] japj at oce dot nl
Sorry, for the long replay delay...

Using PHP4.0.3pl1 I was not able to reproduce this problem anymore.

I hope this is enough information,

Best regards

Jeroen Janssen
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 20:00:02 2026 UTC