You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Christophe Yayon <li...@nbux.com> on 2005/11/21 18:24:15 UTC
mod_proxy error, segmentation fault
Ji all,
I am trying to configure a apache 2.1.9-beta reverse proxy with mod_proxy
(or mod_rewrite [P]) and i encounter a strange problem, i think it is a
bug...
I encounter the problem when i do load tests with 10 simultaneous
users(with LoadRunner application). When i do single test request (a
standalone user), i have no error.
Here is the error message that i got in error log :
proxy: error reading status line from remote server (null), referer ...
proxy: Error reading from remote server returned by ...
[...]
child pid 18743 exit signal Segmentation fault (11) (sometimes only)
My configuration looks like this :
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule ident_module modules/mod_ident.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule mime_module modules/mod_mime.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule cache_module modules/mod_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule security_module modules/mod_security.so
[...]
RewriteEngine On
RewriteRule "(.*)" "http://my_backend_server:8080%{REQUEST_URI}" [P,L]
I have also tried with ProxyPass only (instead of mod_rewrite), and i have
the same problem.
Thanks in advance.
Re: mod_proxy error, segmentation fault
Posted by Joost de Heer <jo...@sanguis.xs4all.nl>.
>> RewriteRule "(.*)"
>> "http://uxdev14.sofinco.fr:8080%{REQUEST_URI}" [P,L]
Try without the " around the second argument?
Joost
Re: mod_proxy error, segmentation fault
Posted by Christophe Yayon <li...@nbux.com>.
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.
--------------------------------
Re: mod_proxy error, segmentation fault
Posted by Christophe Yayon <li...@nbux.com>.
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
Re: mod_proxy error, segmentation fault
Posted by Ruediger Pluem <rp...@apache.org>.
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
Re: mod_proxy error, segmentation fault
Posted by Christophe Yayon <li...@nbux.com>.
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
2. i used gdb to get a trace :
gdb /opt/apache21/bin/httpd /tmp/core.25976
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/apache21/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/apache21/lib/libaprutil-1.so.0...done.
Loaded symbols for /opt/apache21/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/apache21/lib/libapr-1.so.0...done.
Loaded symbols for /opt/apache21/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/apache21/modules/mod_authz_host.so...done.
Loaded symbols for /opt/apache21/modules/mod_authz_host.so
Reading symbols from /opt/apache21/modules/mod_dumpio.so...done.
Loaded symbols for /opt/apache21/modules/mod_dumpio.so
Reading symbols from /opt/apache21/modules/mod_include.so...done.
Loaded symbols for /opt/apache21/modules/mod_include.so
Reading symbols from /opt/apache21/modules/mod_log_config.so...done.
Loaded symbols for /opt/apache21/modules/mod_log_config.so
Reading symbols from /opt/apache21/modules/mod_logio.so...done.
Loaded symbols for /opt/apache21/modules/mod_logio.so
Reading symbols from /opt/apache21/modules/mod_env.so...done.
Loaded symbols for /opt/apache21/modules/mod_env.so
Reading symbols from /opt/apache21/modules/mod_expires.so...done.
Loaded symbols for /opt/apache21/modules/mod_expires.so
Reading symbols from /opt/apache21/modules/mod_headers.so...done.
Loaded symbols for /opt/apache21/modules/mod_headers.so
Reading symbols from /opt/apache21/modules/mod_ident.so...done.
Loaded symbols for /opt/apache21/modules/mod_ident.so
Reading symbols from /opt/apache21/modules/mod_usertrack.so...done.
Loaded symbols for /opt/apache21/modules/mod_usertrack.so
Reading symbols from /opt/apache21/modules/mod_unique_id.so...done.
Loaded symbols for /opt/apache21/modules/mod_unique_id.so
Reading symbols from /opt/apache21/modules/mod_setenvif.so...done.
Loaded symbols for /opt/apache21/modules/mod_setenvif.so
Reading symbols from /opt/apache21/modules/mod_version.so...done.
Loaded symbols for /opt/apache21/modules/mod_version.so
Reading symbols from /opt/apache21/modules/mod_proxy.so...done.
Loaded symbols for /opt/apache21/modules/mod_proxy.so
Reading symbols from /opt/apache21/modules/mod_proxy_connect.so...done.
Loaded symbols for /opt/apache21/modules/mod_proxy_connect.so
Reading symbols from /opt/apache21/modules/mod_proxy_http.so...done.
Loaded symbols for /opt/apache21/modules/mod_proxy_http.so
Reading symbols from /opt/apache21/modules/mod_proxy_balancer.so...done.
Loaded symbols for /opt/apache21/modules/mod_proxy_balancer.so
Reading symbols from /opt/apache21/modules/mod_mime.so...done.
Loaded symbols for /opt/apache21/modules/mod_mime.so
Reading symbols from /opt/apache21/modules/mod_status.so...done.
Loaded symbols for /opt/apache21/modules/mod_status.so
Reading symbols from /opt/apache21/modules/mod_autoindex.so...done.
Loaded symbols for /opt/apache21/modules/mod_autoindex.so
Reading symbols from /opt/apache21/modules/mod_asis.so...done.
Loaded symbols for /opt/apache21/modules/mod_asis.so
Reading symbols from /opt/apache21/modules/mod_info.so...done.
Loaded symbols for /opt/apache21/modules/mod_info.so
Reading symbols from /opt/apache21/modules/mod_vhost_alias.so...done.
Loaded symbols for /opt/apache21/modules/mod_vhost_alias.so
Reading symbols from /opt/apache21/modules/mod_dir.so...done.
Loaded symbols for /opt/apache21/modules/mod_dir.so
Reading symbols from /opt/apache21/modules/mod_alias.so...done.
Loaded symbols for /opt/apache21/modules/mod_alias.so
Reading symbols from /opt/apache21/modules/mod_rewrite.so...done.
Loaded symbols for /opt/apache21/modules/mod_rewrite.so
Reading symbols from /opt/apache21/modules/mod_cache.so...done.
Loaded symbols for /opt/apache21/modules/mod_cache.so
Reading symbols from /opt/apache21/modules/mod_mem_cache.so...done.
Loaded symbols for /opt/apache21/modules/mod_mem_cache.so
Reading symbols from /opt/apache21/modules/mod_ssl.so...done.
Loaded symbols for /opt/apache21/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 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
Thread 27 (process 25976):
#0 0x00000293 in ?? ()
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.
#2 0x00000000 in ?? ()
No symbol table info available.
#3 0x00000000 in ?? ()
No symbol table info available.
#4 0x00000000 in ?? ()
No symbol table info available.
#5 0x00000000 in ?? ()
No symbol table info available.
#6 0x00000000 in ?? ()
No symbol table info available.
#7 0x00000000 in ?? ()
No symbol table info available.
#8 0x00000000 in ?? ()
No symbol table info available.
#9 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
If someone could help ...
Thanks in advance.
Joe Orton wrote:
> On Mon, Nov 21, 2005 at 06:24:15PM +0100, Christophe Yayon wrote:
>> Ji all,
>>
>> I am trying to configure a apache 2.1.9-beta reverse proxy with mod_proxy
>> (or mod_rewrite [P]) and i encounter a strange problem, i think it is a
>> bug...
>>
>> I encounter the problem when i do load tests with 10 simultaneous
>> users(with LoadRunner application). When i do single test request (a
>> standalone user), i have no error.
>>
>> Here is the error message that i got in error log :
>> proxy: error reading status line from remote server (null), referer ...
>> proxy: Error reading from remote server returned by ...
>> [...]
>> child pid 18743 exit signal Segmentation fault (11) (sometimes only)
>
> Can you firstly try the 2.1.10 test tarball from here:
>
> http://people.apache.org/~pquerna/dev/httpd-2.1.10/
>
> if the problem still occurs, can you obtain a backtrace following the
> instructions here:
>
> http://httpd.apache.org/dev/debugging.html#crashes
>
> and file a bug in bugzilla http://issues.apache.org/bugzilla/ including
> the proxy configuration and details of the platform in use.
>
> Regards,
>
> joe
Re: mod_proxy error, segmentation fault
Posted by Joe Orton <jo...@redhat.com>.
On Mon, Nov 21, 2005 at 06:24:15PM +0100, Christophe Yayon wrote:
> Ji all,
>
> I am trying to configure a apache 2.1.9-beta reverse proxy with mod_proxy
> (or mod_rewrite [P]) and i encounter a strange problem, i think it is a
> bug...
>
> I encounter the problem when i do load tests with 10 simultaneous
> users(with LoadRunner application). When i do single test request (a
> standalone user), i have no error.
>
> Here is the error message that i got in error log :
> proxy: error reading status line from remote server (null), referer ...
> proxy: Error reading from remote server returned by ...
> [...]
> child pid 18743 exit signal Segmentation fault (11) (sometimes only)
Can you firstly try the 2.1.10 test tarball from here:
http://people.apache.org/~pquerna/dev/httpd-2.1.10/
if the problem still occurs, can you obtain a backtrace following the
instructions here:
http://httpd.apache.org/dev/debugging.html#crashes
and file a bug in bugzilla http://issues.apache.org/bugzilla/ including
the proxy configuration and details of the platform in use.
Regards,
joe