Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68C8D1001F for ; Wed, 18 Sep 2013 11:54:12 +0000 (UTC) Received: (qmail 59529 invoked by uid 500); 18 Sep 2013 11:54:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 59252 invoked by uid 500); 18 Sep 2013 11:54:07 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 59239 invoked by uid 99); 18 Sep 2013 11:54:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 11:54:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dnt@gmx.com designates 212.227.17.21 as permitted sender) Received: from [212.227.17.21] (HELO mout.gmx.net) (212.227.17.21) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 11:53:57 +0000 Received: from mailout-eu.gmx.com ([10.1.101.212]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0M21p7-1WB4rS3B2x-00u401 for ; Wed, 18 Sep 2013 13:53:37 +0200 Received: (qmail 21144 invoked by uid 0); 18 Sep 2013 11:53:37 -0000 Received: from 213.172.118.234 by rms-eu012 with HTTP Content-Type: text/plain; charset="utf-8" Date: Wed, 18 Sep 2013 13:53:35 +0200 From: "dnt" Message-ID: <20130918115335.243430@gmx.com> MIME-Version: 1.0 To: users@httpd.apache.org X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: aPFLcnM+eSEqJry8nHYhX9B+IGRvb8Di X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] seg fault when using mod_dbd Found the error: res and row must be initialized with NULL, otherwise no memory will be allocated in the called functions. > ----- Original Message ----- > From: dnt > Sent: 09/18/13 01:02 PM > To: users@httpd.apache.org > Subject: [users@httpd] seg fault when using mod_dbd > > Hi, > > I want to use mod_dbd with MySQL on a system with CentOS 6.4 (x86_64). > I can execute a select statement, but getting a row fails. Finally I get a segmentation fault. > Attached is a simple test module which leads to the error. > The log output until apr_dbd_get_row is as expected. > Line 57 writes the last line into the log before I get the seg fault. > > If I disable random access in the call of apr_dbd_select the seg fault already happens in line 56 when calling apr_dbd_get_row. > > Do you have an idea whats wrong? > > Installed are the current packages of CentOS 6.4 > httpd-2.2.15 > apr-util-1.3.9 > apr-util-mysql-1.3.9 > mysql-5.1.69 > > Thanks in advance > Dominic --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org