httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@covalent.net>
Subject Re: mod_negotiation:find_lang_index() segfault
Date Tue, 01 Jan 2002 18:12:01 GMT
Clearly my fault.  Thanks for the backtrace, I'm debugging right now...
more news in just a bit.


----- Original Message -----
From: "Jeff Trawick" <trawick@attglobal.net>
To: <dev@httpd.apache.org>
Sent: Tuesday, January 01, 2002 10:23 AM
Subject: mod_negotiation:find_lang_index() segfault


> CVS HEAD, request sent to protected page...  my configuration may be
> bogus, as I'm trying to migrate a site running Apache 1.3.9 to Apache
> 2.0...
>
> here is some basic information...  I don't have any time to look into
> it at the moment...
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x40279f11 in find_lang_index (accept_langs=0x8120090, lang=0x81254e8
> "de") at mod_negotiation.c:1380
> 1380            if (!strncmp(lang, accs[i].name,
> strlen(accs[i].name))) {
> (gdb) bt
> #0  0x40279f11 in find_lang_index (accept_langs=0x8120090,
> lang=0x81254e8 "de")
>     at mod_negotiation.c:1380
> #1  0x4027a244 in set_language_quality (neg=0x8122cd8,
> variant=0x8122d58) at mod_negotiation.c:1627
> #2  0x4027aa5e in best_match (neg=0x8122cd8, pbest=0xbffffa88) at
> mod_negotiation.c:2179
> #3  0x4027b546 in do_negotiation (r=0x811f558, neg=0x8122cd8,
> bestp=0xbffffa88, prefer_scripts=0)
>     at mod_negotiation.c:2672
> #4  0x4027b6c4 in handle_map_file (r=0x811f558) at
> mod_negotiation.c:2781
> #5  0x8065bb2 in ap_hook_handler (pf=0x811f558, aszPre=0x808cd98,
> aszSucc=0x811f558, nOrder=135390256)
>     at config.c:185
> #6  0x8066107 in ap_invoke_handler (r=0x811f558) at config.c:332
> #7  0x80638a9 in ap_internal_fast_redirect (rr=0x80cf990, r=0x811e430)
> at http_request.c:441
> #8  0x8063339 in ap_die (type=401, r=0x811e430) at http_request.c:195
> #9  0x806345f in check_pipeline_flush (r=0x811e430) at
> http_request.c:261
> #10 0x805f751 in chunk_filter (f=0x8119d00, b=0x808cd98) at
> http_core.c:253
> #11 0x806d7ce in ap_hook_process_connection (pf=0x8119d00,
> aszPre=0x808cd98, aszSucc=0x8119d00,
>     nOrder=-1073742920) at connection.c:84
> #12 0x806da8b in ap_lingering_close (c=0x8119d00) at connection.c:208
> #13 0x806480b in child_main (child_num_arg=0) at prefork.c:694
> #14 0x806493b in make_child (s=0x8097fa0, slot=0) at prefork.c:755
> #15 0x80649a1 in make_child (s=0x5, slot=134794648) at prefork.c:800
> #16 0x8064cf6 in ap_mpm_run (_pconf=0x80966d8, plog=0x80bc770,
> s=0x8097fa0) at prefork.c:996
> #17 0x8069d17 in main (argc=1, argv=0xbffffce4) at main.c:448
> (gdb) p lang
> $1 = 0x81254e8 "de"
> (gdb) p i
> $2 = 6
> (gdb) p accs[i]
> Cannot access memory at address 0x5f.
> (gdb) p accs
> $3 = (accept_rec *) 0xffffffff
> (gdb)
>
> Here is accept_langs:
>
> (gdb) p *accept_langs
> $7 = {pool = 0x811e3f8, elt_size = 4, nelts = 23, nalloc = 32, elts =
> 0x81200a8
>
> Here is info on the map file:
>
> (gdb) p *map
> $5 = {cntxt = 0x811e3f8, filedes = 11,
>   fname = 0x8123a20
> "/usr/local/apache2/error/HTTP_UNAUTHORIZED.html.var", flags = 129,
> eof_hit = 1,
>   pipe = 0, timeout = -1, buffered = 1, blocking = BLK_ON, ungetchar =
> -1,
>   buffer = 0x8124480 "Content-language: de\nContent-type:
> text/html\nBody:----------de--\n<!--#set var=\"TITLE\" value=\"Authentikation fehlgeschlagen!\"
-->\n<!--#include
virtual=\"include/top.html\" -->\n\n    Der Server konnte nich"..., bufpos = 3143, dataRead
= 3143, direction = 0, filePtr = 3143,
>   thlock = 0x8125480}
> --
> Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
>        http://www.geocities.com/SiliconValley/Park/9289/
>              Born in Roswell... married an alien...
>


Mime
View raw message