Re: PHP 4.0 Bug #2148: core dump at request (ie. "Document contains no data" )

From: Date: Wed, 25 Aug 1999 19:55:25 +0000
Subject: Re: PHP 4.0 Bug #2148: core dump at request (ie. "Document contains no data" )
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-10196@lists.php.net to get a copy of this message
If you're using Apache earlier than 1.3.9, make sure you upgrade. There's a problem with earlier versions. In any case, let us know so that we know what to do with this bug report. Thanks, Andi At 04:31 PM 8/25/99 +0000, lbueno1@uic.edu wrote:
From:             lbueno1@uic.edu
Operating system: Linux 2.2.5-15/RH 6.0
PHP version:      4.0 Beta 2
PHP Bug Type:     Reproduceable crash
Bug description: core dump at request (ie. "Document contains no data" ) I am trying to include a file using the "include" function. The whole path name of the file is "/web/shpe.stuorg.uic.edu/new.web/shared/header.inc" and the include path is "/web/shpe.stuorg.uic.edu". The script I am using to reproduce the problem is <% include("new.web/shared/header.inc"); %> When I use a path with a leading slash, I get %<--- snip from HTML returned to browser --- Warning: Failed opening '/new.web/shared/header.inc' for inclusion (include_path='/web/shpe.stuorg.uic.edu') in /web/shpe.stuorg.uic.edu/new.web/index.php on line 3 %<--- When I omit the slash, the script core dumps %<--- snip from httpd error_log --- [Wed Aug 25 10:54:11 1999] [notice] child pid 24173 exit signal Segmentation fault (11) [Wed Aug 25 10:54:11 1999] [notice] child pid 24170 exit signal Segmentation fault (11) %<--- %<--- snip from gdb backtrace --- #0 0x400efa70 in _IO_new_fclose (fp=0x80b7998) at iofclose.c:45 #1 0x4024af1d in zend_open_file_dtor (f=0x80b2528) at zend-scanner.l:175 #2 0x40253539 in zend_llist_del_element (l=0x402aeb28, element=0xbffff340) at zend_llist.c:83 #3 0x4024af34 in zend_close_file_handle (file_handle=0xbffff338) at zend-scanner.l:185 #4 0x4024b097 in v_compile_files (mark_as_ref=1, file_count=1, files=0xbffff318)
    at zend-scanner.l:288
#5  0x4024af4a in compile_files (mark_as_ref=1, file_count=1) at zend-scanner.l:257
#6 0x4024b1ac in compile_filename (filename=0x80b4ce8) at zend-scanner.l:330 #7 0x4026b028 in execute (op_array=0x80b24a0) at zend_execute.c:1821 #8 0x40222faa in php_execute_script (primary_file=0xbffffa4c) at main.c:1138 #9 0x40223030 in apache_php_module_main (r=0x80afc54, fd=23, display_source_mode=0)
    at main.c:1180
#10 0x40221674 in send_php () #11 0x402216b0 in send_parsed_php () #12 0x80517e1 in ap_invoke_handler () #13 0x805e28b in ap_some_auth_required () #14 0x805e2db in ap_process_request () #15 0x8058c88 in ap_child_terminate () #16 0x8058dbf in ap_child_terminate () #17 0x8058eb9 in ap_child_terminate () #18 0x8059368 in ap_child_terminate () #19 0x8059920 in main () #20 0x400b6cb3 in __libc_start_main (main=0x80596e0 <main>, argc=4, argv=0xbffffc24,
    init=0x804da1c <_init>, fini=0x8065a8c <_fini>, rtld_fini=0x4000a350 <_dl_fini>,
    stack_end=0xbffffc1c) at ../sysdeps/generic/libc-start.c:78
%<--- %<--- my 'configure' line --- ./configure --with-apache=/usr/include/apache/ --with-apxs=/usr/sbin/apxs --with-dbase=yes --with -gd=no --with-gettext=no --with-mysql --enable-sysvsem=yes --enable-sysvshm=yes --enable-debug=no %<--- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#10196) next »