Bug #2243 Updated: Segfault when a PHP file virtual()s another

From: Date: Sun, 16 Jun 2002 12:40:04 +0000
Subject: Bug #2243 Updated: Segfault when a PHP file virtual()s another
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10678@lists.php.net to get a copy of this message
ID: 2243 Updated by: sander@php.net Reported By: Ken.Coar@Golux.COm -Status: Open +Status: Bogus Bug Type: Reproducible Crash Operating System: RH5.2 Linux 2.0.36 PHP Version: 3.0 Latest CVS (06/09/1999) New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately, PHP 3 is no longer supported. Please download the latest version of PHP 4 from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [1999-09-06 01:20:04] Ken.Coar@Golux.COm PHP 3.0.13-dev, Apache 1.3.10-dev, MySQL support configured. If a PHP file uses virtual() to include another via a subrequest, it will either throw an error ('Cannot include a PHP file') or else segfault. (The behaviour depends upon how PHP file recognition is configured; I have a fix.) Here is a backtrace from the core file: #0 0x400a778d in __libc_free (mem=0x80d3438) at malloc.c:2861 #1 0x40292cbd in _efree (ptr=0x80d3448) at alloc.c:173 #2 0x4028d1b6 in _php3_hash_destroy (ht=0x40307980) at php3_hash.c:683 #3 0x402cacaa in phpparse () at control_structures_inline.h:956 #4 0x4028c012 in php3_parse (yyin=0x80c93b8) at main.c:1554 #5 0x4028c2f0 in apache_php3_module_main (r=0x80c6c14, fd=32, display_source_mode=0, preprocessed=0) at main.c:1935 #6 0x4028961f in send_php3 (r=0x80c6c14, display_source_mode=0, preprocessed=0, filename=0x80c76a4 "/home/coar/web/served/virtual1.phtml") at ./mod_php3.c:245 #7 0x40289686 in send_parsed_php3 (r=0x80c6c14) at ./mod_php3.c:261 #8 0x8051bba in ap_invoke_handler (r=0x80c6c14) at http_config.c:508 #9 0x805edb1 in process_request_internal (r=0x80c6c14) at http_request.c:1214 #10 0x805edff in ap_process_request (r=0x80c6c14) at http_request.c:1230 #11 0x8059238 in child_main (child_num_arg=0) at http_main.c:4035 #12 0x80593ee in make_child (s=0x8091db4, slot=0, now=936594966) at http_main.c:4194 #13 0x805945b in startup_children (number_to_start=5) at http_main.c:4221 #14 0x80598f6 in standalone_main (argc=1, argv=0xbffffcb0) at http_main.c:4509 #15 0x8059fc3 in main (argc=1, argv=0xbffffcb0) at http_main.c:4830 Let me know if there's more information I can provide.. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2243&edit=1

« previous php.bugs (#10678) next »