[saint@xxx.lt: Re: [PHP-DEV] PHP 4.0 Bug #8312: apache child crashes when calling include or require functions]
| From: | Petr Cech | Date: | Mon, 18 Dec 2000 13:33:42 +0000 |
| Subject: | [saint@xxx.lt: Re: [PHP-DEV] PHP 4.0 Bug #8312: apache child crashes when calling include or require functions] | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41740@lists.php.net to get a copy of this message | ||
----- Forwarded message from Martynas Sklizmantas <saint@xxx.lt> -----
From: Martynas Sklizmantas <saint@xxx.lt>
Subject: Re: [PHP-DEV] PHP 4.0 Bug #8312: apache child crashes when calling include or require
functions
To: Petr Cech <cech@atrey.karlin.mff.cuni.cz>
Date: Mon, 18 Dec 2000 15:17:06 +0200
On Monday 18 December 2000 14:59, you wrote:
> On Mon, Dec 18, 2000 at 12:27:48PM -0000 , saint@xxx.lt wrote:
> > From: saint@xxx.lt
> > Operating system: Linux oberon 2.2.17 #1 Sun Nov 5 17:41:01 EET 2000 i686
> > unknown PHP version: 4.0.3pl1
> > PHP Bug Type: Reproduceable crash
> > Bug description: apache child crashes when calling include or require
> > functions
> >
> > <?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.
>
> version. woody or potato. version numbers of libraries.
>
> Petr Cech
hello,
potato,
glibc: ii libc6 2.1.3-13
ldd output of php binary (which crashes also when calling 'include' or
'require' functions:
libpam.so.0 => /lib/libpam.so.0 (0x00128000)
libdl.so.2 => /lib/libdl.so.2 (0x00130000)
libpng.so.2 => /usr/local/lib/libpng.so.2 (0x00134000)
libz.so.1 => /usr/lib/libz.so.1 (0x0015f000)
libresolv.so.2 => /lib/libresolv.so.2 (0x0016f000)
libm.so.6 => /lib/libm.so.6 (0x0017e000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x0019b000)
libnsl.so.1 => /lib/libnsl.so.1 (0x001c8000)
libc.so.6 => /lib/libc.so.6 (0x001de000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00110000)
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");
?>
regards,
Martynas Sklizmantas
Gaumina systems integrator
--
:-) < slut
----- End forwarded message -----
Petr Cech
--
Debian GNU/Linux maintainer - www.debian.{org,cz}
cech@atrey.karlin.mff.cuni.cz
<Myth> thats \\GNU\Linux$ to you