[users@httpd] mod_proxy_html Segmentation fault problem with Apache 2.1.6 on FreeBSD 4.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am running Apache 2.1.6 on FreeBSD 4.9.  It is running on port 8080
because another version of Apache is running on port 80.
 
I set up my reverse proxy generally following the instructions in
http://www.apacheweek.com/features/reverseproxies.  I will be using this
reverse proxy to pass requests to an arbitrary site that I specify - for my
test setup, I chose www.google.com.  The problem is that almost every
request results in a segmentation fault error and the page is not served.  I
have tried pointing my reverse proxy at several different websites and they
all produce this result for some or most of my requests.  Strangely, some of
my requests are served properly.
 
Any ideas why?  I don't know much about this so all help appreciated.  A
bunch of possibly relevant debugging info follows.
 
-Rebekah
 
>From the Apache error log (LogLevel debug):
[Wed Jul 27 17:57:49 2005] [debug] mod_proxy_http.c(54): proxy: HTTP:
canonicalising URL //www.google.com/
[Wed Jul 27 17:57:49 2005] [debug] proxy_util.c(1334): [client
66.159.241.126] proxy: *: found reverse proxy worker for
http://www.google.com/
[Wed Jul 27 17:57:49 2005] [debug] mod_proxy.c(648): Running scheme http
handler (attempt 0)
[Wed Jul 27 17:57:49 2005] [debug] mod_proxy_http.c(1478): proxy: HTTP:
serving URL http://www.google.com/
[Wed Jul 27 17:57:49 2005] [debug] proxy_util.c(1691): proxy: HTTP: has
acquired connection for (*)
[Wed Jul 27 17:57:49 2005] [debug] proxy_util.c(1748): proxy: connecting
http://www.google.com/ to www.google.com:80
[Wed Jul 27 17:57:49 2005] [debug] proxy_util.c(1844): proxy: connected / to
www.google.com:80
[Wed Jul 27 17:57:49 2005] [debug] proxy_util.c(1936): proxy: HTTP: fam 2
socket created to connect to *
[Wed Jul 27 17:57:49 2005] [debug] proxy_util.c(2029): proxy: HTTP:
connection complete to 66.102.7.104:80 (www.google.com)
[Wed Jul 27 17:57:49 2005] [debug] mod_proxy_http.c(1260): proxy: start body
send
[Wed Jul 27 17:57:49 2005] [info] [client 66.159.241.126] Content-Type is
text/html
[Wed Jul 27 17:57:49 2005] [notice] child pid 59821 exit signal Segmentation
fault (11)

 
How I set up my server:
My configure command:
./configure --prefix=/usr/home/rebekah/apache21 --enable-so
--enable-ext-filter --enable-mods-shared=proxy proxy_http proxy_ftp
proxy_connect headers


My apxs command to install mod_proxy_html:
./apache21/bin/apxs -c -I/usr/local/include/libxml2
-I/usr/local/include/apache -i mod_proxy_html.c
(I had to add /usr/local/include/apache to the include path to avoid
messages about a missing header file)
This gave me a bunch of warnings, but compiled OK:
mod_proxy_html.c: In function `dump_content':
mod_proxy_html.c:227: warning: passing arg 1 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:227: warning: passing arg 4 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:231: warning: passing arg 5 of `ap_pregsub' from
incompatible pointer type
mod_proxy_html.c: In function `pstartElement':
mod_proxy_html.c:426: warning: passing arg 1 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:426: warning: passing arg 4 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:431: warning: passing arg 5 of `ap_pregsub' from
incompatible pointer type
mod_proxy_html.c:485: warning: passing arg 1 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:485: warning: passing arg 4 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:489: warning: passing arg 5 of `ap_pregsub' from
incompatible pointer type
mod_proxy_html.c: In function `proxy_html_child_init':
mod_proxy_html.c:591: warning: assignment from incompatible pointer type
mod_proxy_html.c:593: warning: assignment from incompatible pointer type
mod_proxy_html.c:595: warning: assignment from incompatible pointer type
mod_proxy_html.c: In function `sniff_encoding':
mod_proxy_html.c:641: warning: passing arg 1 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:641: warning: passing arg 4 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:644: warning: passing arg 1 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:644: warning: passing arg 4 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c: In function `metafix':
mod_proxy_html.c:680: warning: passing arg 1 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c:680: warning: passing arg 4 of `ap_regexec' from
incompatible pointer type
mod_proxy_html.c: In function `set_urlmap':
mod_proxy_html.c:951: warning: assignment from incompatible pointer type



Relevant lines from my apache config files:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule headers_module modules/mod_headers.so
LoadFile   /usr/local/lib/libxml2.so
LoadModule proxy_html_module modules/mod_proxy_html.so

ProxyRequests Off
ProxyPass / http://www.google.com/
ProxyPassReverse / http://www.google.com/
 
ProxyHTMLExtended On
ProxyHTMLURLMap http://www.google.com/ /
 
ProxyPassReverseCookiePath / /
ProxyPassReverseCookieDomain stan.newcars.com google.com
 
ProxyHTMLLogVerbose On
#LogLevel Info
 
<Location />
        SetOutputFilter proxy-html
        RequestHeader unset Accept-Encoding
</Location>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux