Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4CD6818F50 for ; Thu, 10 Mar 2016 21:00:21 +0000 (UTC) Received: (qmail 57301 invoked by uid 500); 10 Mar 2016 21:00:20 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 57256 invoked by uid 500); 10 Mar 2016 21:00:20 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 57242 invoked by uid 99); 10 Mar 2016 21:00:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 21:00:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D40DA18053B for ; Thu, 10 Mar 2016 21:00:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.271 X-Spam-Level: ** X-Spam-Status: No, score=2.271 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_SOFTFAIL=0.972] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=justinkennedy-ca.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id NBp25wJo5Vaq for ; Thu, 10 Mar 2016 21:00:18 +0000 (UTC) Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id EF7085FB17 for ; Thu, 10 Mar 2016 21:00:17 +0000 (UTC) Received: by mail-ig0-f171.google.com with SMTP id av4so2932260igc.1 for ; Thu, 10 Mar 2016 13:00:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=justinkennedy-ca.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=0TL8jtUlNAHe70O6r6diD6uc9t+Mp+7N2M26qkAviqs=; b=zoWah04mJPyLq2bFxZ19t7FqwRBUiecQNbeB8EtdNwWEhKq9i1xH/NsT0vNYOuEtEb fih7hgZKUf8rLJiivvwoTPjCxXmF3fqk1T4RO4XwZTWZhjelXLrVPQ/dmA0CAJqrZofy RPlrMgSgvL1SF4AHTv9KUA3h9qUoAzS/RKwLp/ZyQli7NYEwSTFG8WTslJhBk48cCf+7 Pb7nGKhWs7/Xkkp5pyNUJdSeBfU2kLF2igzt4+YNFFORCKMohx4uDOrxbfHe5Y3havPH 1PDX0oSiTi0y6HON4hrTMrL9naRbfoURw1vYiutIuhserMf1qph1UopsppONUlyMbLbU 19fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0TL8jtUlNAHe70O6r6diD6uc9t+Mp+7N2M26qkAviqs=; b=huxBMEhMQFhAoNXmSJERSKEGKdevuYw2VBVergCuiJSO/wiF8illAYylaF+oOeDwxB QT7cJJueb3rsmlEF9pIZ7hAiSyGBBOPVK5xqdM6g3SrcS2WTau59DpvumQ1vg7GlqKE3 OBUugt2VmhCkLTzHsjBjYR1JpQRMN5LpuoFzJI+BBrPhn37QMxWuF6QnF0cuhBx/zAqD MbF3rBfXxqI9MYKpqOR4WIIwesdLnj3gCz+KYi85XGBLeIUDANjeuWacDZppOaSXIJZq xW97Cr5Pj20JRDvsmZRfR3qWPQKdTouTTB7yEEb7go+ZqP8qFi8PVzxU70CisPhlK7Ww mNEQ== X-Gm-Message-State: AD7BkJJkbJ2p2v81BiriULz++SchGRKGYqtd0bXP9Z87cnaQAdya895iVYiSsY/n0+hedK/2v9Rnomq4/g/+xA== X-Received: by 10.50.176.138 with SMTP id ci10mr7733igc.93.1457643611185; Thu, 10 Mar 2016 13:00:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.25.15 with HTTP; Thu, 10 Mar 2016 12:59:51 -0800 (PST) From: Justin Kennedy Date: Thu, 10 Mar 2016 16:59:51 -0400 Message-ID: Subject: "hello world" module crashes 2.4 on CentOS 6.7 To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=089e0111d7faa78368052db819f5 --089e0111d7faa78368052db819f5 Content-Type: text/plain; charset=UTF-8 Good day, I have a pretty simple module that is crashing my server as soon as I dereference a pointer that comes from the request_rec pool. This is on CentOS 6.7, with Apache 2.4 compiled. It's a fresh VM on AWS. The module was compiled with apxs. The code is listed below. The output I get in the log files is: [Date...] [:error] [client ....] [pid ...] ***--- not nulll [Date...] [core:notice] [pid ...] AH00052: child pid 1365 exit signal Segmentation fault (11) //////////// CODE //////////////// #include #include #include #include #include #include #include #include #include #define EXAMPLE_NAME "mod_example" static int example_handler(request_rec *r) { const char *url; url = apr_psprintf(r->pool, "%s", "test"); if(url == NULL) { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "***--- null"); } else { ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "***--- not nulll"); ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "***--- url is: %s", url); } ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, "***--- done "); return DECLINED; } static void example_register_hooks(apr_pool_t *pool) { ap_hook_handler(example_handler, NULL, NULL, APR_HOOK_LAST); } module AP_MODULE_DECLARE_DATA example_module = { STANDARD20_MODULE_STUFF, NULL, NULL, NULL, NULL, NULL, example_register_hooks }; Any help is appreciated. -Justin --089e0111d7faa78368052db819f5--