Return-Path: X-Original-To: apmail-httpd-bugs-archive@www.apache.org Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C26FAF56D for ; Wed, 28 May 2014 13:01:20 +0000 (UTC) Received: (qmail 39418 invoked by uid 500); 28 May 2014 13:01:20 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 39378 invoked by uid 500); 28 May 2014 13:01:20 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 39370 invoked by uid 99); 28 May 2014 13:01:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2014 13:01:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2014 13:01:19 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 7B2731B753; Wed, 28 May 2014 13:00:59 +0000 (UTC) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: [Bug 56571] New: Apache 2.4: Segmentation fault with wrong reference from ap_get_module_config Date: Wed, 28 May 2014 13:00:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: Core X-Bugzilla-Version: 2.4.9 X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: s.shiva.p@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=56571 Bug ID: 56571 Summary: Apache 2.4: Segmentation fault with wrong reference from ap_get_module_config Product: Apache httpd-2 Version: 2.4.9 Hardware: PC OS: Linux Status: NEW Severity: blocker Priority: P2 Component: Core Assignee: bugs@httpd.apache.org Reporter: s.shiva.p@gmail.com Hello All, OS: RHEL 6 64 bit machine. Getting segmentation fault with the wrong reference pointer from ap_get_module_config. here while creating the ga_vs_config for module config in the code below(vs_config apr_palloc (p, s), it's returning the address 0x8477930, but while getting the reference from ap_get_module_config (vs_config = (ga_vs_config *)ap_get_module_config), it's returning 0x2009 and causing segmentation fault while assigning vsid to it (vs_config->vsid = vsid). Note: The issue is specific to 32 bit webserver on 64 bit machine, the same is working fine with 64 bit apache 2.4 webserver. can you please advice on the same. 13807 - -143320688 - ga_create_server_config: no name 0x841a0a8 0x845b9f0 13807 - -143320688 - ga_create_server_config: rhel6 0x841a0a8 0x8477930 13807 - -143320688 - cmd_gavsid: vs_config, module_index 27 0x2009 0x2009 13807 - -143320688 - cmd_gavsid: server_rec 0x84449c0 13807 - -143320688 - cmd_gavsid: server_rec->module_config 0x84449c0 typedef struct ga_vs_config { char *vsid; char *vsname; // Don't know if applicable yet } ga_vs_config; from ga_create_server_config for creating the module config file vs_config = (ga_vs_config *) apr_palloc (p, sizeof(ga_vs_config)); vs_config = (ga_vs_config *)ap_get_module_config((s)?s->module_config:NULL, &ga_module); if(vs_config) vs_config->vsid = vsid; } module AP_MODULE_DECLARE_DATA ga_module = { STANDARD20_MODULE_STUFF, NULL, /* per-directory config creator */ NULL, /* dir config merger */ ga_create_server_config, /* server config creator */ NULL, /* server config merger */ ga_cmds, /* command table */ ga_register_hooks, /* set up other request processing hooks */ }; Thanks, Shiva -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org