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 5830011A41 for ; Sat, 11 May 2013 16:42:57 +0000 (UTC) Received: (qmail 89612 invoked by uid 500); 11 May 2013 16:42:57 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 89564 invoked by uid 500); 11 May 2013 16:42:57 -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 89556 invoked by uid 99); 11 May 2013 16:42:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2013 16:42:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [81.93.193.11] (HELO mail.datatrans.hu) (81.93.193.11) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 May 2013 16:42:50 +0000 Received: from [192.168.1.102] (p5799563D.dip0.t-ipconnect.de [87.153.86.61]) by mail.datatrans.hu (Postfix) with ESMTPSA id B17ED4B95A for ; Sat, 11 May 2013 18:42:26 +0200 (CEST) Message-ID: <518E74F1.6040801@datatrans.hu> Date: Sat, 11 May 2013 18:42:25 +0200 From: =?ISO-8859-2?Q?Graf_L=E1szl=F3?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Core dump Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.97.6 at mail X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have written a simple module but when I access the location all what I can see in the error_log is that "possible core dump in $APACHE_HOME. This occures when I the last line in the dump_request_rec method., see below. Could somebody tell me why? Thank you. Best regards, Graf L�szl� /* LoadModule xyl_module modules/mod_xyl.so SetHandler xyl */ #include "httpd.h" #include "http_config.h" #include "http_protocol.h" #include "apr_time.h" #define KILO_BYTES 1024 static void dump_request_rec(request_rec *r); static int xyl_handler(request_rec *r) { if (strcmp(r->handler, "xyl")) { return DECLINED; } ap_set_content_type(r, "text/html; charset=ISO-8859-2"); ap_rputs(DOCTYPE_XHTML_1_0T "\n" "\n" " mod_xyl\n" "\n", r); ap_rputs(" \n", r); dump_request_rec(r); ap_rputs(" \n", r); ap_rputs("\n", r); return OK; } static void xyl_register_hooks(apr_pool_t *p) { ap_hook_handler(xyl_handler, NULL, NULL, APR_HOOK_MIDDLE); } module AP_MODULE_DECLARE_DATA xyl_module = { STANDARD20_MODULE_STUFF, NULL, NULL, NULL, NULL, NULL, xyl_register_hooks }; static void dump_request_rec(request_rec *r) { ap_rputs(" got a poolaaa\n", r); char *datestring = apr_palloc(r->pool, APR_RFC822_DATE_LEN); apr_rfc822_date(datestring, apr_time_now()); char *buff = apr_palloc(r->pool, KILO_BYTES); buff = apr_psprintf(r->pool, "time now: %s\n", datestring, NULL); ap_rputs(buff, r); }