httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Yayon <li...@nbux.com>
Subject Re: mod_proxy error, segmentation fault
Date Sun, 04 Dec 2005 14:30:24 GMT
Christophe Yayon wrote:
> Hi,
> 
> Here is my configuration :
> 
> 
> <VirtualHost *>
>         ServerName portail.polen.xxxxxxx.fr
>         CustomLog /var/log/apache21/access-portail.log combined
>     <Location />
>                 Order deny,allow
>                 Allow from all
>         </Location>
>     RewriteEngine On
>         RewriteRule "(.*)" 
> "http://uxdev14.sofinco.fr:8080%{REQUEST_URI}" [P,L]
> </VirtualHost>
> 
> <VirtualHost *>
>         ServerName appli1.polen.xxxxxxxxx.fr
>         CustomLog /var/log/apache21/access-appli1.polen.log combined
>         RewriteEngine On
>         RewriteRule ^(\/?)(.*)?(.*)$ 
> http://portail.polen.xxxxxx.fr/polen/servlet/ProxyServlet?polenAppliBase=http://appli1.polen.xxxxxxxx.fr&polenAppli

> 
> Page=$2&%{QUERY_STRING} [P]
>         <Location />
>                 Order deny,allow
>                 Allow from all
>         </Location>
> </VirtualHost>
> 
> 
> # appli2
> <VirtualHost *>
>         # global
>         ServerName appli2.polen.xxxxxxxxxxxx.fr
>         CustomLog /var/log/apache21/access-appli2.polen.log combined
>         RewriteEngine On
>         RewriteRule ^(\/?)(.*)?(.*)$ 
> http://portail.polen.xxxxxxxxxx.fr/polen/servlet/ProxyServlet?polenAppliBase=http://appli2.polen.xxxxxxxx.fr&polenAppli

> 
> Page=$2&%{QUERY_STRING} [P]
>         <Location />
>                 Order deny,allow
>                 Allow from all
>         </Location>
> </VirtualHost>
> 
> 
> 
> Ruediger Pluem wrote:
>>
>> On 11/26/2005 07:40 PM, Christophe Yayon wrote:
>>> Hi all,
>>>
>>> i have just tried with the last 2.1.10 and i have the same problem :
>>>
>>> 1. in error logs :
>>> [Sat Nov 26 19:29:55 2005] [error] [client 10.133.2.63] proxy: error
>>> reading status line from remote server (null), referer:
>>> http://portail.polen.sofinco.fr/polen/
>>> [Sat Nov 26 19:29:55 2005] [error] [client 10.133.2.63] proxy: Error
>>> reading from remote server returned by /polen/images/passe.gif, referer:
>>> http://portail.polen.sofinco.fr/polen/
>>> [Sat Nov 26 19:29:56 2005] [notice] child pid 25976 exit signal
>>> Segmentation fault (11), possible coredump in /tmp
>>>
>>
>> Strange that the remote server is null. Please post your proxy 
>> configuration
>> and your RewriteRules.
>>
>> [..cut..]
>>
>>>> Reading symbols from /lib/tls/libresolv.so.2...done.
>>> Loaded symbols for /lib/tls/libresolv.so.2
>>> #0  apr_brigade_cleanup (data=0x8398980) at buckets/apr_brigade.c:44
>>> 44              apr_bucket_delete(e);
>>> (gdb) bt full
>>> #0  apr_brigade_cleanup (data=0x8398980) at buckets/apr_brigade.c:44
>>> No locals.
>>> #1  0xb7f24e7d in apr_brigade_destroy (b=0x8398980) at
>>> buckets/apr_brigade.c:53
>>> No locals.
>>> #2  0x080726f4 in ap_core_output_filter (f=0xaa083538, b=0x8398980) at
>>> core_filters.c:876
>>>         hdtr = {headers = 0xb41c3ff8, numheaders = 134740504, trailers =
>>> 0x8392910, numtrailers = 0}
>>>         bytes_sent = 0
>>>         flags = 0
>>>         nbytes = 1429
>>>         nvec_trailers = 0
>>>         vec = {{iov_base = 0x838d208, iov_len = 206}, {iov_base =
>>> 0x8394a09, iov_len = 1223}, {iov_base = 0x0, iov_len = 0}, {iov_base =
>>> 0xaa083aa0, iov_len = 2852666000}, {iov_base = 0xb41c3f48, iov_len =
>>> 3083217623}, {iov_base = 0x0,
>>>     iov_len = 2852666000}, {iov_base = 0xb41c3f48, iov_len =
>>> 3083217643}, {iov_base = 0x8392910, iov_len = 0}, {iov_base =
>>> 0xb41c3f30, iov_len = 0}, {iov_base = 0x838e938, iov_len = 0}, {iov_base
>>> = 0xb41c3f68, iov_len = 134646597}, {iov_base = 0x0,
>>>     iov_len = 0}, {iov_base = 0x0, iov_len = 0}, {iov_base = 0x8393960,
>>> iov_len = 137967992}, {iov_base = 0xb41c3ff8, iov_len = 134740481},
>>> {iov_base = 0x8393960, iov_len = 137967992}}
>>>         flen = Variable "flen" is not available.
>>> (gdb) thread apply all bt full
>>>
>>
>> Possibly a corrupted brigade. I am a little bit astonished that the 
>> stacktrace isn't longer.
>> So could you please do the following:
>>
>> 1. Add the contents of .gdbinit from the root directory of the 2.1.10 
>> tar ball to your .gdbinit
>>    (see http://httpd.apache.org/dev/debugging.html#gdb)
>>
>> 2. Issue the following commands:
>>
>> gdb /opt/apache21/bin/httpd /tmp/core.25976
>> bt
>> frame 2
>> dump_brigade b
>> dump_filters f
>>
>> [..cut..]
>>
>> Please open up a bugzilla report with your mail as Joe suggested.
>>
>> Regards
>>
>> RĂ¼diger
> 
> 
Hi again,


i have post a bug report, i encounter the problem again, even with 2.2.0 
release.
The bug number is 37770 
(http://issues.apache.org/bugzilla/show_bug.cgi?id=37770)

here is my last post which give more informations :

I have done some differents stress tests :

1. with a debug LogLevel : no problem (see my last post), i have the problem
only with any other level (warn, notice, info, crit, ...)

2. with others backends servers (simple .html on an apache 2.0.54 
instead of a
.jsp on a Tomcat-5.5.12) : no problem. Of course, no error on Tomcat backend
server, and when i bypass reverse proxy, or when i use apache 2.0.55 
(instead of
2.2.0 with mod_proxy), i don't get any error.

3. sometimes i get a segmentation fault  and here a trace (i have used 
.gdbinit
of httpd-2.2.0 directory) :

------------------
gdb /opt/apache22/bin/httpd /tmp/core.7637
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".

Core was generated by `/opt/apache22/bin/httpd -k start'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /opt/apache22/lib/libaprutil-1.so.0...done.
Loaded symbols for /opt/apache22/lib/libaprutil-1.so.0
Reading symbols from /usr/lib/libdb-4.3.so...done.
Loaded symbols for /usr/lib/libdb-4.3.so
Reading symbols from /usr/lib/libexpat.so.1...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /opt/apache22/lib/libapr-1.so.0...done.
Loaded symbols for /opt/apache22/lib/libapr-1.so.0
Reading symbols from /lib/tls/librt.so.1...done.
Loaded symbols for /lib/tls/librt.so.1
Reading symbols from /lib/tls/libcrypt.so.1...done.
Loaded symbols for /lib/tls/libcrypt.so.1
Reading symbols from /lib/tls/libpthread.so.0...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/tls/libdl.so.2...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/libnss_compat.so.2...done.
Loaded symbols for /lib/tls/libnss_compat.so.2
Reading symbols from /lib/tls/libnsl.so.1...done.
Loaded symbols for /lib/tls/libnsl.so.1
Reading symbols from /lib/tls/libnss_nis.so.2...done.
Loaded symbols for /lib/tls/libnss_nis.so.2
Reading symbols from /lib/tls/libnss_files.so.2...done.
Loaded symbols for /lib/tls/libnss_files.so.2
Reading symbols from /opt/apache22/modules/mod_authz_host.so...done.
Loaded symbols for /opt/apache22/modules/mod_authz_host.so
Reading symbols from /opt/apache22/modules/mod_dumpio.so...done.
Loaded symbols for /opt/apache22/modules/mod_dumpio.so
Reading symbols from /opt/apache22/modules/mod_include.so...done.
Loaded symbols for /opt/apache22/modules/mod_include.so
Reading symbols from /opt/apache22/modules/mod_log_config.so...done.
Loaded symbols for /opt/apache22/modules/mod_log_config.so
Reading symbols from /opt/apache22/modules/mod_logio.so...done.
Loaded symbols for /opt/apache22/modules/mod_logio.so
Reading symbols from /opt/apache22/modules/mod_env.so...done.
Loaded symbols for /opt/apache22/modules/mod_env.so
Reading symbols from /opt/apache22/modules/mod_expires.so...done.
Loaded symbols for /opt/apache22/modules/mod_expires.so
Reading symbols from /opt/apache22/modules/mod_headers.so...done.
Loaded symbols for /opt/apache22/modules/mod_headers.so
Reading symbols from /opt/apache22/modules/mod_ident.so...done.
Loaded symbols for /opt/apache22/modules/mod_ident.so
Reading symbols from /opt/apache22/modules/mod_usertrack.so...done.
Loaded symbols for /opt/apache22/modules/mod_usertrack.so
Reading symbols from /opt/apache22/modules/mod_unique_id.so...done.
Loaded symbols for /opt/apache22/modules/mod_unique_id.so
Reading symbols from /opt/apache22/modules/mod_setenvif.so...done.
Loaded symbols for /opt/apache22/modules/mod_setenvif.so
Reading symbols from /opt/apache22/modules/mod_version.so...done.
Loaded symbols for /opt/apache22/modules/mod_version.so
Reading symbols from /opt/apache22/modules/mod_proxy.so...done.
Loaded symbols for /opt/apache22/modules/mod_proxy.so
Reading symbols from /opt/apache22/modules/mod_proxy_connect.so...done.
Loaded symbols for /opt/apache22/modules/mod_proxy_connect.so
Reading symbols from /opt/apache22/modules/mod_proxy_http.so...done.
Loaded symbols for /opt/apache22/modules/mod_proxy_http.so
Reading symbols from /opt/apache22/modules/mod_proxy_balancer.so...done.
Loaded symbols for /opt/apache22/modules/mod_proxy_balancer.so
Reading symbols from /opt/apache22/modules/mod_mime.so...done.
Loaded symbols for /opt/apache22/modules/mod_mime.so
Reading symbols from /opt/apache22/modules/mod_status.so...done.
Loaded symbols for /opt/apache22/modules/mod_status.so
Reading symbols from /opt/apache22/modules/mod_autoindex.so...done.
Loaded symbols for /opt/apache22/modules/mod_autoindex.so
Reading symbols from /opt/apache22/modules/mod_asis.so...done.
Loaded symbols for /opt/apache22/modules/mod_asis.so
Reading symbols from /opt/apache22/modules/mod_info.so...done.
Loaded symbols for /opt/apache22/modules/mod_info.so
Reading symbols from /opt/apache22/modules/mod_vhost_alias.so...done.
Loaded symbols for /opt/apache22/modules/mod_vhost_alias.so
Reading symbols from /opt/apache22/modules/mod_dir.so...done.
Loaded symbols for /opt/apache22/modules/mod_dir.so
Reading symbols from /opt/apache22/modules/mod_alias.so...done.
Loaded symbols for /opt/apache22/modules/mod_alias.so
Reading symbols from /opt/apache22/modules/mod_rewrite.so...done.
Loaded symbols for /opt/apache22/modules/mod_rewrite.so
Reading symbols from /opt/apache22/modules/mod_cache.so...done.
Loaded symbols for /opt/apache22/modules/mod_cache.so
Reading symbols from /opt/apache22/modules/mod_mem_cache.so...done.
Loaded symbols for /opt/apache22/modules/mod_mem_cache.so
Reading symbols from /opt/apache22/modules/mod_ssl.so...done.
Loaded symbols for /opt/apache22/modules/mod_ssl.so
Reading symbols from /usr/lib/i686/cmov/libssl.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libssl.so.0.9.8
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/libnss_dns.so.2...done.
Loaded symbols for /lib/tls/libnss_dns.so.2
Reading symbols from /lib/tls/libresolv.so.2...done.
Loaded symbols for /lib/tls/libresolv.so.2
#0  0xb7dc43f1 in __read_nocancel () from /lib/tls/libpthread.so.0
(gdb) bt
#0  0xb7dc43f1 in __read_nocancel () from /lib/tls/libpthread.so.0
#1  0x08085ea7 in ap_mpm_pod_check (pod=0xfffffe00) at pod.c:54
#2  0x08083f69 in child_main (child_num_arg=Variable "child_num_arg" is not
available.
) at worker.c:1233
#3  0x080840d0 in make_child (s=0x80a7d88, slot=0) at worker.c:1316
#4  0x0808417b in startup_children (number_to_start=2) at worker.c:1350
#5  0x08084ce1 in ap_mpm_run (_pconf=0x80a60a8, plog=0x80d4160, 
s=0x80a7d88) at
worker.c:1700
#6  0x08061bef in main (argc=3, argv=0xbfe76ca4) at main.c:712
(gdb) frame 2
#2  0x08083f69 in child_main (child_num_arg=Variable "child_num_arg" is not
available.
) at worker.c:1233
1233                rv = ap_mpm_pod_check(pod);
(gdb) dump_brigade b
No symbol "b" in current context.
(gdb) dump_filters f
No symbol "f" in current context.
--------------------------------


Mime
View raw message