Something is hosed (yes, I did a clean rebuild).

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.'

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

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x00662e84 in apr_vformatter (flush_func=0x663c5c <snprintf_flush>, 
vbuff=0xbfffd6d0, fmt=0x68118 "[%s] ", ap=0xbfffd714 "") at 
/Users/jerenk/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=0x663c5c "8`ÿÿN\200", len=8165, format=0x5b 
<Address 0x5b out of bounds>) at 
/Users/jerenk/cvs-apache/httpd-2.0/srclib/apr/strings/apr_snprintf.c:1268
#2  0x0003d7ec in log_error_core (file=0x68000 
"/Users/jerenk/cvs-apache/httpd-2.0/server/log.c", line=607, level=4, status=0, 
s=0x0, r=0x0, pool=0x2b3658, fmt=0x4eed20 "pid file 
/Users/jerenk/apache-2.0-cvs/logs/httpd.pid overwritten -- Unclean shutdown of 
previous Apache run?", args=0xbffff880 "") at 
/Users/jerenk/cvs-apache/httpd-2.0/server/log.c:455
#3  0x0003d9d4 in ap_log_perror (file=0x663c5c "8`ÿÿN\200", line=-1073752368, 
level=91, status=-1073752300, p=0x5b, fmt=0x30 <Address 0x30 out of bounds>) at 
/Users/jerenk/cvs-apache/httpd-2.0/server/log.c:545
#4  0x0003db68 in ap_log_pid (p=0x2b3658, filename=0x2dc3 "") at 
/Users/jerenk/cvs-apache/httpd-2.0/server/log.c:607
#5  0x000329cc in ap_mpm_run (_pconf=0x2b3658, plog=0xbfffd6d0, s=0x2b60f8) at 
/Users/jerenk/cvs-apache/httpd-2.0/server/mpm/prefork/prefork.c:954
#6  0x00034460 in main (argc=2, argv=0xbffffb20) at 
/Users/jerenk/cvs-apache/httpd-2.0/server/main.c:645
#7  0x00002210 in _start (argc=2, argv=0xbffffb20, envp=0xbffffb2c) at 
/SourceCache/Csu/Csu-45/crt.c:267
#8  0x00002090 in start ()

teststr bt:
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x000adcd4 in apr_snprintf (buf=0xffffffff <Address 0xffffffff out of bounds>, 
len=100, format=0x73 <Address 0x73 out of bounds>) at 
/Users/jerenk/cvs-apache/httpd-2.0/srclib/apr/strings/apr_snprintf.c:1271
1271            *vbuff.curpos = '\0';
(gdb) bt
#0  0x000adcd4 in apr_snprintf (buf=0xffffffff <Address 0xffffffff out of 
bounds>, len=100, format=0x73 <Address 0x73 out of bounds>) at 
/Users/jerenk/cvs-apache/httpd-2.0/srclib/apr/strings/apr_snprintf.c:1271
#1  0x00002920 in test_snprintf (p=0xffffffff) at 
/Users/jerenk/cvs-apache/httpd-2.0/srclib/apr/test/teststr.c:138
#2  0x00002a2c in main (argc=-1, argv=0xbffff8a0) at 
/Users/jerenk/cvs-apache/httpd-2.0/srclib/apr/test/teststr.c:163
#3  0x000024f4 in _start (argc=1, argv=0xbffffa9c, envp=0xbffffaa4) at 
/SourceCache/Csu/Csu-45/crt.c:267
#4  0x00002374 in start ()

Reply via email to