Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 10547 invoked by uid 500); 1 Jan 2002 16:24:45 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 10536 invoked from network); 1 Jan 2002 16:24:44 -0000 X-Authentication-Warning: rdu163-40-092.nc.rr.com: trawick set sender to trawick@attglobal.net using -f Sender: trawick@rdu163-40-092.nc.rr.com To: dev@httpd.apache.org Subject: mod_negotiation:find_lang_index() segfault From: Jeff Trawick Date: 01 Jan 2002 11:23:02 -0500 Message-ID: Lines: 78 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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\n\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...