Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 86788 invoked from network); 21 Jul 2009 06:55:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jul 2009 06:55:34 -0000 Received: (qmail 43476 invoked by uid 500); 21 Jul 2009 06:56:39 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 43439 invoked by uid 500); 21 Jul 2009 06:56:39 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 43430 invoked by uid 99); 21 Jul 2009 06:56:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 06:56:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.72.192.227] (HELO fmmailgate02.web.de) (217.72.192.227) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2009 06:56:30 +0000 Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id 7D97210C10186 for ; Tue, 21 Jul 2009 08:56:10 +0200 (CEST) Received: from [79.220.39.56] (helo=[192.168.0.129]) by smtp08.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #277) id 1MT9Gk-0007BF-00 for apreq-dev@httpd.apache.org; Tue, 21 Jul 2009 08:56:10 +0200 Message-ID: <4A656682.6050004@web.de> Date: Tue, 21 Jul 2009 08:56:02 +0200 From: Peter Heimann User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: apreq-dev@httpd.apache.org Subject: Apache segmentation fault on AIX when loading mod_apreq Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: heimannp@web.de X-Sender: heimannp@web.de X-Provags-ID: V01U2FsdGVkX1+qigypZF33hdTauIIAiYd69eDpbbMZeMu4inzc rtS9gUr/xdHCn74xyYxryEwy7YdVf1OJ0e9ybaaRNWcCYAvlWX IV7nLCyrk= X-Virus-Checked: Checked by ClamAV on apache.org 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"