httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Beard <j...@cyberxape.com>
Subject Re: mod_cache coredumps
Date Tue, 02 Jul 2002 16:29:06 GMT
I think they meant the developers list: new-httpd.

--Jeff

On Tue, 2 Jul 2002, Alex Rousskov wrote:

> Hi there,
>
> 	Please find configuration info and a stack trace from a
> coredump that occurred while testing Apache 2.0.39 in a caching proxy
> mode. I am submitting this to the mailing list instead of the bugzilla
> database according to the bug reporting instructions for Apache httpd.
> I found no mod_cache matches in bugzilla.
>
> 	Httpd dumps core on the first request for the previously
> cached (and still fresh) object. Requests for other objects are not
> affected. If you need more information, please contact me directly.
>
> HTH,
>
> Alex.
>
>
> # uname -a
> FreeBSD 4.5-STABLE FreeBSD 4.5-STABLE #12: Tue Feb 19 13:19:25 EST 2002 i386
>
> # gcc -v
> Using builtin specs.
> gcc version 2.95.3 20010315 (release) [FreeBSD]
>
> # ./configure --enable-proxy --enable-cache --enable-disk-cache
>
> # /usr/local/apache2/bin/httpd -V
> Server version: Apache/2.0.39
> Server built:   Jul  1 2002 16:40:33
> Server's Module Magic Number: 20020612:1
> Architecture:   32-bit
> Server compiled with....
>  -D APACHE_MPM_DIR="server/mpm/prefork"
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_HAVE_IPV6
>  -D APR_USE_FLOCK_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D HTTPD_ROOT="/usr/local/apache2"
>  -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
>  -D DEFAULT_PIDLOG="logs/httpd.pid"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_LOCKFILE="logs/accept.lock"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"
>
>
>
> # diff -u /usr/local/apache2/conf/{httpd-std,httpd}.conf
> --- /usr/local/apache2/conf/httpd-std.conf	Mon Jul  1 16:43:53 2002
> +++ /usr/local/apache2/conf/httpd.conf	Mon Jul  1 18:46:13 2002
> @@ -285,8 +285,8 @@
>  # If your host doesn't have a registered DNS name, enter its IP address here.
>  # You will have to access it by its address anyway, and this will make
>  # redirections work in a sensible way.
> -#
> -#ServerName new.host.name:80
> +
> +ServerName 172.16.0.7:80
>
>  #
>  # UseCanonicalName: Determines how Apache constructs self-referencing
> @@ -963,35 +963,37 @@
>  # Proxy Server directives. Uncomment the following lines to
>  # enable the proxy server:
>  #
> -#<IfModule mod_proxy.c>
> -#ProxyRequests On
> -#
> -#<Proxy *>
> -#    Order deny,allow
> -#    Deny from all
> +<IfModule mod_proxy.c>
> +ProxyRequests On
> +
> +<Proxy *>
> +    Order deny,allow
> +    Allow from all
>  #    Allow from .your-domain.com
> -#</Proxy>
> +</Proxy>
>
>  #
>  # Enable/disable the handling of HTTP/1.1 "Via:" headers.
>  # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
>  # Set to one of: Off | On | Full | Block
>  #
> -#ProxyVia On
> +ProxyVia On
>
>  #
>  # To enable the cache as well, edit and uncomment the following lines:
>  # (no cacheing without CacheRoot)
>  #
> -#CacheRoot "/usr/local/apache2/proxy"
> -#CacheSize 5
> -#CacheGcInterval 4
> -#CacheMaxExpire 24
> -#CacheLastModifiedFactor 0.1
> -#CacheDefaultExpire 1
> +CacheOn On
> +CacheRoot "/usr/local/apache2/proxy"
> +CacheSize 5
> +CacheGcInterval 4
> +CacheMaxExpire 24
> +CacheLastModifiedFactor 0.1
> +CacheDefaultExpire 1
> +CacheEnable disk /
>  #NoCache a-domain.com another-domain.edu joes.garage-sale.com
>
> -#</IfModule>
> +</IfModule>
>  # End of proxy directives.
>
>
>
> (gdb) where
> #0  0x281a5677 in strncmp () from /usr/lib/libc.so.4
> #1  0x815fa50 in ?? ()
> #2  0x8098dd8 in ap_run_map_to_storage (r=0x8169050) at request.c:110
> #3  0x809957d in ap_process_request_internal (r=0x8169050) at request.c:176
> #4  0x8076e8e in ap_process_request (r=0x8169050) at http_request.c:255
> #5  0x8072ccb in ap_process_http_connection (c=0x8165120) at http_core.c:291
> #6  0x808f814 in ap_run_process_connection (c=0x8165120) at connection.c:85
> #7  0x808faab in ap_process_connection (c=0x8165120, csd=0x8165050) at connection.c:207
> #8  0x8085786 in child_main (child_num_arg=0) at prefork.c:692
> #9  0x8085844 in make_child (s=0x80c9200, slot=0) at prefork.c:732
> #10 0x8085936 in startup_children (number_to_start=5) at prefork.c:804
> #11 0x8085c1c in ap_mpm_run (_pconf=0x80c6018, plog=0x8108018, s=0x80c9200) at prefork.c:1020
> #12 0x808ad3e in main (argc=2, argv=0xbfbff81c) at main.c:642
> #13 0x805fb31 in _start ()
>
>
> $15 = {
>   pool = 0x8169018,
>   connection = 0x8165120,
>   server = 0x80c9200,
>   next = 0x0,
>   prev = 0x0,
>   main = 0x0,
>   the_request = 0x8169830 "GET http://www.life-gone-hazy.com/index-two.html HTTP/1.0",
>   assbackwards = 0,
>   proxyreq = 1,
>   header_only = 0,
>   protocol = 0x8169930 "HTTP/1.0",
>   proto_num = 1000,
>   hostname = 0x8169d28 "www.life-gone-hazy.com",
>   request_time = 1025561942710522,
>   status_line = 0x816a398 "200 OK",
>   status = 200,
>   method = 0x8169880 "GET",
>   method_number = 0,
>   allowed = 0,
>   allowed_xmethods = 0x0,
>   allowed_methods = 0x81691e8,
>   sent_bodyct = 0,
>   bytes_sent = 0,
>   mtime = 1023348889000000,
>   chunked = 0,
>   range = 0x0,
>   clength = 0,
>   remaining = 0,
>   read_length = 0,
>   read_body = 0,
>   read_chunked = 0,
>   expecting_100 = 0,
>   headers_in = 0x8169218,
>   headers_out = 0x81694a8,
>   err_headers_out = 0x8169550,
>   subprocess_env = 0x8169360,
>   notes = 0x81695a8,
>   content_type = 0x816a1f8 "text/html",
>   handler = 0x80a4647 "proxy-server",
>   content_encoding = 0x0,
>   content_languages = 0x0,
>   vlist_validator = 0x0,
>   user = 0x0,
>   ap_auth_type = 0x0,
>   no_cache = 0,
>   no_local_copy = 0,
>   unparsed_uri = 0x81698b8 "http://www.life-gone-hazy.com/index-two.html",
>   uri = 0x81698b8 "http://www.life-gone-hazy.com/index-two.html",
>   filename = 0x0,
>   canonical_filename = 0x0,
>   path_info = 0x0,
>   args = 0x0,
>   finfo = {
>     pool = 0x0,
>     valid = 0,
>     protection = 0,
>     filetype = APR_NOFILE,
>     user = 0,
>     group = 0,
>     inode = 0,
>     device = 0,
>     nlink = 0,
>     size = 0,
>     csize = 0,
>     atime = 0,
>     mtime = 0,
>     ctime = 0,
>     fname = 0x0,
>     name = 0x0,
>     filehand = 0x0
>   },
>   parsed_uri = {
>     scheme = 0x81698e8 "http",
>     hostinfo = 0x81698f0 "www.life-gone-hazy.com",
>     user = 0x0,
>     password = 0x0,
>     hostname = 0x8169908 "www.life-gone-hazy.com",
>     port_str = 0x0,
>     path = 0x8169920 "/index-two.html",
>     query = 0x0,
>     fragment = 0x0,
>     hostent = 0x0,
>     port = 0,
>     is_initialized = 1,
>     dns_looked_up = 0,
>     dns_resolved = 0
>   },
>   used_path_info = 2,
>   per_dir_config = 0x810ca18,
>   request_config = 0x8169600,
>   htaccess = 0x0,
>   output_filters = 0x816a3a0,
>   input_filters = 0x81697a8,
>   proto_output_filters = 0x81697c0,
>   proto_input_filters = 0x81697a8,
>   eos_sent = 0
> }
>
> (gdb) p _hooks
> $16 = {
>   link_translate_name = 0x815f9d0,
>   link_map_to_storage = 0x815fa38,
>   link_check_user_id = 0x815fdc8,
>   link_fixups = 0x815fc10,
>   link_type_checker = 0x815fbb8,
>   link_access_checker = 0x815fcb8,
>   link_auth_checker = 0x815fdf8,
>   link_insert_filter = 0x815fd98,
>   link_create_request = 0x815fcf8
> }
>
> (gdb) p n
> $17 = 135696464
> (gdb) p rv
> $18 = 0
> (gdb) p pHook
> $19 = (ap_LINK_map_to_storage_t *) 0x0
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

--
Jeff Beard | Systems Architect, Programmer, Sysadmin
Contact    | jeff at cyberxape dot com
Location   | In front of the computer, Boulder, CO, USA


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message