php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8312 apache child crashes when calling include or require functions
Submitted: 2000-12-18 07:27 UTC Modified: 2001-04-27 21:50 UTC
From: saint at xxx dot lt Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.3pl1 OS: Linux oberon 2.2.17 #1 Sun Nov 5
Private report: No CVE-ID: None
 [2000-12-18 07:27 UTC] saint at xxx dot lt
<?php 
include ("http://www.server.com/index.html");
?>
--with-apache=../apache_1.3.12 --with-config-file=/usr/local/etc/php4 --with-exec-dir=/usr/local/bin/php4 --enable-track-vars --disable-debug --disable-short-tags --with-gdbm --with-imap --with-mcrypt --with-mhash --with-mysql --with-xml --with-zlib

it crashes with/without zend debug, with 1.3.14 and 1.3.12 apache server. on turbolinux server this works ok, crashes just on debian with the same compile time settings etc.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-19 19:00 UTC] sniper@php.net
Feedback :
--------
backtrace with gdb (using php standalone binary):
Starting program: /usr/bin/php test.php

Program received signal SIGSEGV, Segmentation fault.

0x806a96d in php_network_getaddresses (host=0x81b500c "centras.lt", 
sal=0xbfffc2e8) at network.c:113
113                                     *(struct sockaddr_in *)*sap =
(gdb) bt
#0  0x806a96d in php_network_getaddresses (host=0x81b500c "centras.lt", 
sal=0xbfffc2e8) at network.c:113
#1  0x806a9f7 in php_hostconnect (host=0x81b500c "centras.lt", port=80, 
socktype=1, timeout=0) at network.c:165
#2  0x806691e in php_fopen_url_wrap_http (path=0x818b81c 
"http://centras.lt/index.html", mode=0x811f023 "rb", options=1, 
issock=0xbfffe814,
    socketd=0xbfffe818, opened_path=0xbfffe900) at fopen-wrappers.c:472
#3  0x80675bd in php_fopen_url_wrapper (path=0x818b81c 
"http://centras.lt/index.html", mode=0x811f023 "rb", options=1, 
issock=0xbfffe814,
    socketd=0xbfffe818, opened_path=0xbfffe900) at fopen-wrappers.c:880
#4  0x806639e in php_fopen_wrapper (path=0x818b81c 
"http://centras.lt/index.html", mode=0x811f023 "rb", options=1, 
issock=0xbfffe814,
    socketd=0xbfffe818, opened_path=0xbfffe900) at fopen-wrappers.c:265
#5  0x806315e in php_fopen_wrapper_for_zend (filename=0x818b81c 
"http://centras.lt/index.html", opened_path=0xbfffe900) at main.c:493
#6  0x80d5070 in open_file_for_scanning (file_handle=0xbfffe8f8) at 
zend-scanner.c:2830
#7  0x80d5193 in compile_file (file_handle=0xbfffe8f8, type=2) at 
zend-scanner.c:2928
#8  0x80d5314 in compile_filename (type=2, filename=0x81b87a4) at 
zend-scanner.c:2982
#9  0x80f5913 in execute (op_array=0x81b46cc) at ./zend_execute.c:2014
#10 0x80ce96b in zend_execute_scripts (type=8, file_count=3) at zend.c:717
#11 0x8063f5c in php_execute_script (primary_file=0xbffffb48) at main.c:1200
#12 0x80626fc in main (argc=2, argv=0xbffffbc4) at cgi_main.c:715

script which was executed:

<?php
include ("http://centras.lt/index.html");
?> 

 [2001-01-02 09:18 UTC] sniper@php.net
Could you please add a sample script which causes 
this crash into this bug report?
It propably isn't the include/require which crashes
but something which you have in the included files.

--Jani
 [2001-01-08 09:42 UTC] sniper@php.net
Okay, I tried to include the same page you did, and it
worked just fine. Have you tried PHP 4.0.4 ?
Does it work any better?

--Jani
 [2001-01-08 10:12 UTC] sniper@php.net
Have you tried latest snapshots from http://snaps.php.net/
as I'm using latest CVS myself and it works.

--Jani
 [2001-01-09 13:04 UTC] sniper@php.net
User feedback:
--------------

Currently I have not time for such experiments.
I should note that at least on Sparc with the same
configuration and operating system everything works 
ok.

---------------

Suspended until bug reporter has time to test 
fixes..

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 05 21:01:29 2025 UTC