Menu

#5 coredump under apache 2.2.13 on OS X

open
nobody
General (2)
5
2010-02-12
2010-02-12
pldove
No

Works from the command line, but when run under apache 2.2.13 (normal or single-threaded) memcpy() in strndup.c fails (arguments here are 'man2web -s 1 ls').

Compiled with CFLAGS = -g3 -O0 -DM2W_CLEANUP -Wall -Werror -DM2W_DEBUG.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xc0000000
0x000062ee in strndup (s=0xbffffaa2 "1&ls", n=1073743198) at strndup.c:13
13\t\tmemcpy(output, s, n);
#0 0x000062ee in strndup (s=0xbffffaa2 "1&ls", n=1073743198) at strndup.c:13
\toutput = 0x200000 "1&ls"

#1 0x000052e2 in init_query_tree (argc=4, argv=0xbffff5fc) at query_string.c:120
\tname_start = 0xbffffaa2 "1&ls"
\tvalue_end = 0x0
\thunk_end = 0xbffffaa3 "&ls"

\tvalue = 0x0
\tscript_name_dup = 0x100660 ""

\tname_end = 0x0
\tvalue_start = 0x0
\tname = 0x0
\tquery_string = 0xbffffaa2 "1&ls"
\tscript_name = 0xbffff8c2 "/man"

\tuser_agent = 0xbffff784 "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7"

#2 0x00002f8f in main (argc=4, argv=0xbffff5fc) at main.c:12
\tprogram = 0x0
\tsection = 0x0
\tline_no = 0

Discussion


Log in to post a comment.