Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 2201 invoked by uid 500); 26 Aug 2002 22:14:41 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 2178 invoked from network); 26 Aug 2002 22:14:40 -0000 From: Jim Jagielski Message-Id: <200208262214.SAA24360@devsys.jaguNET.com> Subject: Re: Segfault in ap_vformatter on httpd startup To: rbb@apache.org Date: Mon, 26 Aug 2002 18:14:42 -0400 (EDT) Cc: jerenkrantz@apache.org (Justin Erenkrantz), dev@apr.apache.org Reply-To: jim@jaguNET.com In-Reply-To: from "rbb@apache.org" at Aug 26, 2002 06:04:28 PM X-Mailer: ELM [version 2.5 PL5] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I may have some cycles tonight as well... rbb@apache.org wrote: > > > I have done just enough looking at this problem to be thoroughly=20 > confused. Basically, if I run test/teststr, I get the seg fault, but if > I run test/.libs/teststr, everything just works. I have re-built > multiple times, so I am at a complete loss here. I'll try to look at this > later tonight when I get home. > > Ryan > > On Mon, 26 Aug 2002, Justin Erenkrantz wrote: > > > Something is hosed (yes, I did a clean rebuild). > >=20 > > I don't really trust this stack trace as ap_log_pid does get a > > filename on entry, so I expect that the stack is smashed. I > > also ran teststr and that generates a 'bus error.' > >=20 > > I gotta run out the door right now. If no one fixes it by the > > time I get back, I'll bring out the cluebat and apply it > > liberally. -- justin > >=20 > > Program received signal EXC_BAD_ACCESS, Could not access memory. > > 0x00662e84 in apr_vformatter (flush_func=3D0x663c5c , vbu= > ff=3D0xbfffd6d0, fmt=3D0x68118 "[%s] ", ap=3D0xbfffd714 "") at /Users/jeren= > k/cvs-apache/httpd-2.0/srclib/apr/strings/apr_snprintf.c:730 > > 730 INS_CHAR(*fmt, sp, bep, cc); > > #1 0x00663cc4 in apr_snprintf (buf=3D0x663c5c "8`=FF=FFN\200", len=3D816= > 5, format=3D0x5b
) at /Users/jerenk/cvs-apache/= > httpd-2.0/srclib/apr/strings/apr_snprintf.c:1268 > > #2 0x0003d7ec in log_error_core (file=3D0x68000 "/Users/jerenk/cvs-apach= > e/httpd-2.0/server/log.c", line=3D607, level=3D4, status=3D0, s=3D0x0, r=3D= > 0x0, pool=3D0x2b3658, fmt=3D0x4eed20 "pid file /Users/jerenk/apache-2.0-cvs= > /logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?", a= > rgs=3D0xbffff880 "") at /Users/jerenk/cvs-apache/httpd-2.0/server/log.c:455 > > #3 0x0003d9d4 in ap_log_perror (file=3D0x663c5c "8`=FF=FFN\200", line=3D= > -1073752368, level=3D91, status=3D-1073752300, p=3D0x5b, fmt=3D0x30 s 0x30 out of bounds>) at /Users/jerenk/cvs-apache/httpd-2.0/server/log.c:5= > 45 > > #4 0x0003db68 in ap_log_pid (p=3D0x2b3658, filename=3D0x2dc3 "") at /Use= > rs/jerenk/cvs-apache/httpd-2.0/server/log.c:607 > > #5 0x000329cc in ap_mpm_run (_pconf=3D0x2b3658, plog=3D0xbfffd6d0, s=3D0= > x2b60f8) at /Users/jerenk/cvs-apache/httpd-2.0/server/mpm/prefork/prefork.c= > :954 > > #6 0x00034460 in main (argc=3D2, argv=3D0xbffffb20) at /Users/jerenk/cvs= > -apache/httpd-2.0/server/main.c:645 > > #7 0x00002210 in _start (argc=3D2, argv=3D0xbffffb20, envp=3D0xbffffb2c)= > at /SourceCache/Csu/Csu-45/crt.c:267 > > #8 0x00002090 in start () > >=20 > > teststr bt: > > Program received signal EXC_BAD_ACCESS, Could not access memory. > > 0x000adcd4 in apr_snprintf (buf=3D0xffffffff
ounds>, len=3D100, format=3D0x73
) at /Users/je= > renk/cvs-apache/httpd-2.0/srclib/apr/strings/apr_snprintf.c:1271 > > 1271 *vbuff.curpos =3D '\0'; > > (gdb) bt > > #0 0x000adcd4 in apr_snprintf (buf=3D0xffffffff
of bounds>, len=3D100, format=3D0x73
) at /User= > s/jerenk/cvs-apache/httpd-2.0/srclib/apr/strings/apr_snprintf.c:1271 > > #1 0x00002920 in test_snprintf (p=3D0xffffffff) at /Users/jerenk/cvs-apa= > che/httpd-2.0/srclib/apr/test/teststr.c:138 > > #2 0x00002a2c in main (argc=3D-1, argv=3D0xbffff8a0) at /Users/jerenk/cv= > s-apache/httpd-2.0/srclib/apr/test/teststr.c:163 > > #3 0x000024f4 in _start (argc=3D1, argv=3D0xbffffa9c, envp=3D0xbffffaa4)= > at /SourceCache/Csu/Csu-45/crt.c:267 > > #4 0x00002374 in start () > >=20 > > --=20 > > ___________________________________________________________________________= > ____ > Ryan Bloom =09rbb@apache.org > 550 Jean St > Oakland CA 94610 > ---------------------------------------------------------------------------= > ---- > -- =========================================================================== Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/ "A society that will trade a little liberty for a little order will lose both and deserve neither" - T.Jefferson