From owner-freebsd-ports@FreeBSD.ORG Sun Sep 14 17:43:54 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2606C106566B for ; Sun, 14 Sep 2008 17:43:54 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA07.westchester.pa.mail.comcast.net (qmta07.westchester.pa.mail.comcast.net [76.96.62.64]) by mx1.freebsd.org (Postfix) with ESMTP id 7D9028FC0C for ; Sun, 14 Sep 2008 17:43:53 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA07.westchester.pa.mail.comcast.net with comcast id EbeP1a00D0EZKEL57hjsCi; Sun, 14 Sep 2008 17:43:52 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA01.westchester.pa.mail.comcast.net with comcast id Ehjr1a00C4v8bD73Mhjstf; Sun, 14 Sep 2008 17:43:52 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=plDZx60bDJAoXRFZPN0A:9 a=e511c0zQw2Rz_fZ_EOU2SbCIxGAA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 5F89917B81A; Sun, 14 Sep 2008 10:43:51 -0700 (PDT) Date: Sun, 14 Sep 2008 10:43:51 -0700 From: Jeremy Chadwick To: Matias Surdi Message-ID: <20080914174351.GA16390@icarus.home.lan> References: <20080912095828.GA52822@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-ports@freebsd.org Subject: Re: mod_python core dump X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2008 17:43:54 -0000 On Sun, Sep 14, 2008 at 05:45:59PM +0200, Matias Surdi wrote: > Jeremy Chadwick escribió: >> On Fri, Sep 12, 2008 at 11:39:35AM +0200, Matias Surdi wrote: >>> I've installed mod_python from the ports on a recently installed >>> FreeBSD 7 box and, despite all the build process goes well, when I >>> try to start apache I get a core dump. If I disable the "Loadmodule" >>> directive for mod_python in httpd.conf, then apache starts >>> perfectly. >>> >>> The versions I'm using are: >>> >>> # pkg_version -v >>> apache-2.0.63_2 = up-to-date with port >>> autoconf-2.62 = up-to-date with port >>> autoconf-wrapper-20071109 = up-to-date with port >>> bash-3.2.39_1 = up-to-date with port >>> dovecot-1.1.3 = up-to-date with port >>> expat-2.0.1 = up-to-date with port >>> gettext-0.17_1 = up-to-date with port >>> gmake-3.81_3 = up-to-date with port >>> help2man-1.36.4_2 = up-to-date with port >>> libiconv-1.11_1 = up-to-date with port >>> libtool-1.5.26 = up-to-date with port >>> linux_base-fc-4_10 < needs updating (port has 4_13) >>> m4-1.4.11,1 = up-to-date with port >>> mod_python-3.3.1_2 = up-to-date with port >>> p5-gettext-1.05_2 = up-to-date with port >>> pcre-7.7_1 = up-to-date with port >>> perl-5.8.8_1 = up-to-date with port >>> pkg-config-0.23_1 = up-to-date with port >>> postfix-2.5.4,1 = up-to-date with port >>> py25-sqlite3-2.5.2_1 = up-to-date with port >>> python25-2.5.2_3 = up-to-date with port >>> sqlite3-3.5.6 = up-to-date with port >>> >>> Any help will be appreciated, thanks. >> >> You'll need to provide a gdb backtrace to determine the cause of the >> core, and provide any error messages shown in Apache's error log >> (default: /var/log/httpd-error.log). The above information doesn't >> provide enough detail. >> >> Please also be aware that, quite often, debugging Apache and Apache >> modules is a tedious and difficult task. It's rarely a simple thing. >> > > I've noticed that compiling python without threads support fixes the > problem, but that's not a solution for me as I need threads. Any other > ideas? Doesn't surprise me. I'd recommend first reporting your problem upstream to the mod_python authors, as this does not appear to be a FreeBSD or FreeBSD ports issue. As for solution, the solution here is to not use mod_python. Surely something like cgiwrap or FastCGI could be made to work with python. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |