From modules-dev-return-2475-apmail-httpd-modules-dev-archive=httpd.apache.org@httpd.apache.org Sat May 16 23:08:10 2009 Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 53042 invoked from network); 16 May 2009 23:08:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 May 2009 23:08:09 -0000 Received: (qmail 22457 invoked by uid 500); 16 May 2009 23:08:09 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 22375 invoked by uid 500); 16 May 2009 23:08:08 -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 22365 invoked by uid 99); 16 May 2009 23:08:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 May 2009 23:08:08 +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 [98.173.26.98] (HELO smtp.eiffel.com) (98.173.26.98) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 May 2009 23:07:55 +0000 Received: from naples.ise ([10.0.10.117]) by smtp.eiffel.com with esmtp (Exim 4.63) (envelope-from ) id 1M5SyU-0000QI-B7; Sat, 16 May 2009 16:07:26 -0700 Message-ID: <4A0F4734.3050103@eiffel.com> Date: Sat, 16 May 2009 16:07:32 -0700 From: Fabio Zund User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: modules-dev@httpd.apache.org CC: "Emmanuel Stapf [ES]" Subject: Re: Module segfault on Ubuntu apache References: <4A0EF1C5.7090905@eiffel.com> <4A0EF3FC.30604@joe-lewis.com> In-Reply-To: <4A0EF3FC.30604@joe-lewis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Joe Lewis wrote: > Fabio Zund wrote: >> However, when I compile and test the module on the apache (also >> version 2.2.11) that comes with Ubuntu 9.04, all i get are segfaults. >> >> Does anyone know differences between the original apache and the >> Ubuntu apache version? What in my module could cause such errors? > > Unfortunately, I have never looked at the sources and patches used on > ubuntu. I would suggest looking at the patches they include with > their source installation. I think that would be a very good place to > start. Additionally, debugging tools (e.g. gdb) might be a very good > place to start. Your hints for the day : run "gdb httpd" (or > whatever binary is used to start it, make sure you use the BINARY and > not an init script), and then at the gdb prompt, enter "run -X" - this > starts the binary in a single-instance mode. Point the browser to it > and generate the "errors". Then type "bt" to get a back trace. > Outside of that and looking at the patches, I am unable to help. > > Joe > > The back trace in gdb showed that the segfault was caused by apr_pstrcat () in /usr/lib/libapr-1.so.0. At this point I had libapr and libapr-util version 1.1.12 installed (from the packager manager). So I installed apr-1.3.3 from the website. The same error occured. Then I installed apr-util-1.3.4 as well, but after that I could not start apache anymore, it says: "/usr/sbin/apache2: symbol lookup error: /usr/sbin/apache2: undefined symbol: apr_ldap_ssl_init" I guess I'll just have to wait until the ubuntu guys add the new apr/apr-util versions to the packet manager repository and make it work.... But thanks for the help! - Fabio Zund