From dev-return-24315-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Fri Jul 22 04:43:00 2011 Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 611587AC5 for ; Fri, 22 Jul 2011 04:43:00 +0000 (UTC) Received: (qmail 85381 invoked by uid 500); 22 Jul 2011 04:42:53 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 84752 invoked by uid 500); 22 Jul 2011 04:42:29 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 84718 invoked by uid 99); 22 Jul 2011 04:42:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 04:42:22 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jlpoole56@gmail.com designates 209.85.210.178 as permitted sender) Received: from [209.85.210.178] (HELO mail-iy0-f178.google.com) (209.85.210.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2011 04:42:16 +0000 Received: by iyb26 with SMTP id 26so1842626iyb.37 for ; Thu, 21 Jul 2011 21:41:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type; bh=ewOFE+ORGL++cz6gdw9Q9vLFqQ8hygkPugFg3RtXyzE=; b=ZAuYLy2YWciwM+AWXVK4fIsrK4DeP2b9FdnVnKUBLMzGfVrqAkyYg2i86AJqmz7gS3 WYZOmJLeJPj4fNgroMxRwnRpPGAyGknWzEhGnoSb2eyBs6NDWL7hHtsqyKeV2NAAavlH z4FeXKvePfLaeUz54uQgH5Ue4Oo8h78qBmlXI= Received: by 10.231.112.88 with SMTP id v24mr936496ibp.80.1311309715692; Thu, 21 Jul 2011 21:41:55 -0700 (PDT) Received: from [192.168.168.3] (70-36-204-192.dsl.static.sonic.net [70.36.204.192]) by mx.google.com with ESMTPS id y3sm1361247iba.38.2011.07.21.21.41.54 (version=SSLv3 cipher=OTHER); Thu, 21 Jul 2011 21:41:55 -0700 (PDT) Message-ID: <4E28FF99.5050200@gmail.com> Date: Thu, 21 Jul 2011 21:42:01 -0700 From: "John L. Poole" Reply-To: jlpoole56@gmail.com User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: dev@apr.apache.org Subject: Segment Fault: apr_palloc() in libapr-1.so.0 Content-Type: multipart/mixed; boundary="------------080201060106020301000201" This is a multi-part message in MIME format. --------------080201060106020301000201 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit My instance of Apache has started to segment fault, it occurred around June 30, 2011. Here's my system: plug src # uname -a Linux plug 2.6.33.5 #3 PREEMPT Thu Sep 2 07:47:34 PDT 2010 armv5tel Feroceon 88FR131 rev 1 (v5l) Marvell SheevaPlug Reference Board GNU/Linux plug src # Apache version: Installed versions: 2.2.17(2)(07:46:19 PM 07/21/2011)... [listing of modules] I've tried running Apache without any OPTS by remming my APACHE2_OPTS variable, this was it is a simple instance of pure Apache and no modules: #APACHE2_OPTS="${APACHE2_OPTS} ....." and I get the same result in the gdb session (see below) with or without APACHE2_OPTS, so it looks like the problem is in apr. Here's what I have installed: dev-libs/apr plug src # eix -I apr [I] dev-libs/apr Available versions: (1) 1.4.4!t (~)1.4.5!t {doc elibc_FreeBSD older-kernels-compatibility +urandom +uuid} Installed versions: 1.4.5(1)!t(07:20:04 PM 07/21/2011)(urandom uuid -doc -elibc_FreeBSD -older-kernels-compatibility) Homepage: http://apr.apache.org/ Description: Apache Portable Runtime Library [I] dev-libs/apr-util Available versions: (1) 1.3.11!t {berkdb doc freetds gdbm ldap mysql odbc postgres sqlite sqlite3} Installed versions: 1.3.11(1)!t(12:54:25 PM 07/04/2011)(berkdb gdbm ldap mysql postgres -doc -freetds -odbc -sqlite -sqlite3) Homepage: http://apr.apache.org/ Description: Apache Portable Runtime Utility Library Note: I had installed 1.4.4 and had the same problem, so I allowed the "unstable" version for the ARM platform, 1.4.5, to install. When apr was compiling, I got this warning at the end: * QA Notice: The following files contain runtime text relocations * Text relocations force the dynamic linker to perform extra * work at startup, waste system resources, and may pose a security * risk. On some architectures, the code may not even function * properly, if at all. * For more information, see http://hardened.gentoo.org/pic-fix-guide.xml * Please include the following list of files in your report: * TEXTREL usr/lib/libapr-1.so.0.4.4 I've tried going outside of Gentoo's package system and I installed APR directly. I ran ./configure, make test, and make install. "make test" gave me: "All tests passed." before testing some database tasks which also passed, for the most part. Here's my session in gdb which suggests "apr_palloc" is where the problem occurs: plug apr # gdb /usr/sbin/apache2 GNU gdb (Gentoo 7.2 p1) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "armv5tel-softfloat-linux-gnueabi". For bug reporting instructions, please see: ... Reading symbols from /usr/sbin/apache2...(no debugging symbols found)...done. (gdb) run Starting program: /usr/sbin/apache2 [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x4029c334 in apr_palloc () from /usr/lib/libapr-1.so.0 (gdb) quit Here's the build log for Apache: http://pastebin.com/U6uj4FHj Here's the build lof for apr: http://pastebin.com/XRYAtmqu I have saved the complete build staging area and can provide any portion thereof. Unfortunately, back-stepping to older versions of apr is very difficult as the maintainer basically removed the older versions from being available via emerge. What can I provide and/or do to help uncover what is causing this problem? Should I log a bug? -- John --------------080201060106020301000201 Content-Type: text/x-vcard; charset=utf-8; name="jlpoole56.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jlpoole56.vcf" begin:vcard fn:John Poole n:Poole;John adr:;;P.O. Box 6566;Napa;CA;94581-6566;USA email;internet:jlpoole56@gmail.net tel;work:650-607-0853 tel;home:707-812-1323 note:For street address, email me. version:2.1 end:vcard --------------080201060106020301000201--