httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Heimann <heima...@web.de>
Subject Apache segmentation fault on AIX when loading mod_apreq
Date Tue, 21 Jul 2009 06:56:02 GMT
AIX 5.3, IBM cc 7.0.0.7, Perl 5.8.8, httpd-2.2.11, libapreq2-2.12

Apache segfaults during initialization, when loading mod_apreq2.so.
When commenting out the "LoadModule apreq_module modules/mod_apreq2.so"
line
in the config file, the httpd binary runs without problems.

During "make test", some test cases fail:
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
parsers.t                542    5   0.92%  5 8 500 504 528
Failed 1/6 test scripts, 83.33% okay. 5/757 subtests failed, 99.34% okay.
% ./parsers
not ok 5 - rv == APR_SUCCESS, as integers # at (parsers.c:168) test 2 in
parse_urlencoded
not ok 8 - apr_table_get(body,"omega") == "last+last", as strings # at
(parsers. c:172) test 5 in parse_urlencoded
not ok 500 - rv == APR_SUCCESS, as integers # at (parsers.c:334) test 1
in parse_generic
not ok 504 - rv == APR_SUCCESS, as integers # at (parsers.c:367) test 1
in hook_discard
not ok 528 - rv == APR_SUCCESS, as integers # at (parsers.c:478) test 1
in parse_mixed


Similar results with libapreq2-2.08, httpd-2.2.8 and httpd-2.2.3.

I had to copy module/apache2/.libs/mod_apreq2.so to
/usr/local/apache/modules
manually during installation.

How can the segmentation fault be further diagnosed or fixed?

Stack backtrace:

Segmentation fault in apreq_parser_run at line 128 in file
"../../include/apreq_parser.h" ($t1)
(dbx) where
apreq_parser_run(psr = 0xf19ef404, t = (nil), bb = (nil)), line 128 in
"apreq_parser.h"
filter.register_hooks(p = 0x3002f350), line 448 in "filter.c"
ap_register_hooks(m = 0xf19eee50, p = 0x3002f350), line 427 in "config.c"
ap_add_module(m = 0xf19eee50, p = 0x3002f350), line 552 in "config.c"
ap_add_loaded_module(mod = 0xf19eee50, p = 0x3002f350), line 610 in
"config.c"
load_module(cmd = 0x2ff21460, dummy = 0x2ff213ac, modname =
"apreq_module", filename = "modules/mod_apreq2.so"), line 282 in "mod_so.c"
invoke_cmd(cmd = 0x3001b260, parms = 0x2ff21460, mconfig = 0x2ff213ac,
args = ""), line 796 in "config.c"
unnamed block in execute_now(cmd_line = "LoadModule", args =
"apreq_module modules/mod_apreq2.so", parms = 0x2ff21460, p =
0x3002f350, ptemp = 0x3006d540, sub_tree = 0x2ff213ac, parent = (nil)),
line 1437 in "config.c"
execute_now(cmd_line = "LoadModule", args = "apreq_module
modules/mod_apreq2.so", parms = 0x2ff21460, p = 0x3002f350, ptemp =
0x3006d540, sub_tree = 0x2ff213ac, parent = (nil)), line 1437 in "config.c"
unnamed block in ap_build_config_sub(p = 0x3002f350, temp_pool =
0x3006d540, l = "LoadModule apreq_module modules/mod_apreq2.so", parms =
0x2ff21460, current = 0x2ff21400, curr_parent = 0x2ff21404, conftree =
0x2ff21810), line 1008 in "config.c"
ap_build_config_sub(p = 0x3002f350, temp_pool = 0x3006d540, l =
"LoadModule apreq_module modules/mod_apreq2.so", parms = 0x2ff21460,
current = 0x2ff21400, curr_parent = 0x2ff21404, conftree = 0x2ff21810),
line 1008 in "config.c"
ap_build_config(parms = 0x2ff21460, p = 0x3002f350, temp_pool =
0x3006d540, conftree = 0x2ff21810), line 1220 in "config.c"
process_resource_config_nofnmatch(s = 0x3005f5d8, fname =
"/home/www/conf/hst.httpd.conf", conftree = 0x2ff21810, p = 0x3002f350,
ptemp = 0x3006d540, depth = 0), line 1630 in "config.c"
ap_process_resource_config(s = 0x3005f5d8, fname =
"/home/www/conf/hst.httpd.conf", conftree = 0x2ff21810, p = 0x3002f350,
ptemp = 0x3006d540), line 1662 in "config.c"
include_config(cmd = 0x2ff21b80, dummy = 0x2ff21acc, name =
"/home/www/conf/hst.httpd.conf"), line 2584 in "core.c"
invoke_cmd(cmd = 0x3000c858, parms = 0x2ff21b80, mconfig = 0x2ff21acc,
args = ""), line 786 in "config.c"
unnamed block in execute_now(cmd_line = "Include", args =
"/home/www/conf/hst.httpd.conf", parms = 0x2ff21b80, p = 0x3002f350,
ptemp = 0x3006d540, sub_tree = 0x2ff21acc, parent = (nil)), line 1437 in
"config.c"
execute_now(cmd_line = "Include", args =
"/home/www/conf/hst.httpd.conf", parms = 0x2ff21b80, p = 0x3002f350,
ptemp = 0x3006d540, sub_tree = 0x2ff21acc, parent = (nil)), line 1437 in
"config.c"
unnamed block in ap_build_config_sub(p = 0x3002f350, temp_pool =
0x3006d540, l = "Include /home/www/conf/hst.httpd.conf", parms =
0x2ff21b80, current = 0x2ff21b20, curr_parent = 0x2ff21b24, conftree =
0x2ff21f30), line 1008 in "config.c"
ap_build_config_sub(p = 0x3002f350, temp_pool = 0x3006d540, l = "Include
/home/www/conf/hst.httpd.conf", parms = 0x2ff21b80, current =
0x2ff21b20, curr_parent = 0x2ff21b24, conftree = 0x2ff21f30), line 1008
in "config.c"
ap_build_config(parms = 0x2ff21b80, p = 0x3002f350, temp_pool =
0x3006d540, conftree = 0x2ff21f30), line 1220 in "config.c"
process_resource_config_nofnmatch(s = 0x3005f5d8, fname =
"/home/www/conf/httpd.conf", conftree = 0x2ff21f30, p = 0x3002f350,
ptemp = 0x3006d540, depth = 0), line 1630 in "config.c"
ap_process_resource_config(s = 0x3005f5d8, fname =
"/home/www/conf/httpd.conf", conftree = 0x2ff21f30, p = 0x3002f350,
ptemp = 0x3006d540), line 1662 in "config.c"
include_config(cmd = 0x2ff222a0, dummy = 0x2ff221ec, name =
"/home/www/conf/httpd.conf"), line 2584 in "core.c"
invoke_cmd(cmd = 0x3000c858, parms = 0x2ff222a0, mconfig = 0x2ff221ec,
args = ""), line 786 in "config.c"
unnamed block in execute_now(cmd_line = "Include", args =
"/home/www/conf/httpd.conf", parms = 0x2ff222a0, p = 0x3002f350, ptemp =
0x3006d540, sub_tree = 0x2ff221ec, parent = (nil)), line 1437 in "config.c"
execute_now(cmd_line = "Include", args = "/home/www/conf/httpd.conf",
parms = 0x2ff222a0, p = 0x3002f350, ptemp = 0x3006d540, sub_tree =
0x2ff221ec, parent = (nil)), line 1437 in "config.c"
unnamed block in ap_build_config_sub(p = 0x3002f350, temp_pool =
0x3006d540, l = "Include /home/www/conf/httpd.conf", parms = 0x2ff222a0,
current = 0x2ff22240, curr_parent = 0x2ff22244, conftree = 0x3001ba40),
line 1008 in "config.c"
ap_build_config_sub(p = 0x3002f350, temp_pool = 0x3006d540, l = "Include
/home/www/conf/httpd.conf", parms = 0x2ff222a0, current = 0x2ff22240,
curr_parent = 0x2ff22244, conftree = 0x3001ba40), line 1008 in "config.c"
ap_build_config(parms = 0x2ff222a0, p = 0x3002f350, temp_pool =
0x3006d540, conftree = 0x3001ba40), line 1220 in "config.c"
process_resource_config_nofnmatch(s = 0x3005f5d8, fname =
"/usr/local/apache/conf/httpd.conf", conftree = 0x3001ba40, p =
0x3002f350, ptemp = 0x3006d540, depth = 0), line 1630 in "config.c"
ap_process_resource_config(s = 0x3005f5d8, fname =
"/usr/local/apache/conf/httpd.conf", conftree = 0x3001ba40, p =
0x3002f350, ptemp = 0x3006d540), line 1662 in "config.c"
ap_read_config(process = 0x3002d3d0, ptemp = 0x3006d540, filename =
"conf/httpd.conf", conftree = 0x3001ba40), line 2022 in "config.c"
main(argc = 2, argv = 0x2ff22790), line 633 in "main.c"

Mime
View raw message