NetBSD Problem Report #45431

From www@NetBSD.org  Wed Oct  5 18:57:58 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id B927C63BA05
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  5 Oct 2011 18:57:58 +0000 (UTC)
Message-Id: <20111005185757.C2D5463B86C@www.NetBSD.org>
Date: Wed,  5 Oct 2011 18:57:57 +0000 (UTC)
From: cfuhrman@panix.com
Reply-To: cfuhrman@panix.com
To: gnats-bugs@NetBSD.org
Subject: (re-)alpine will crash when compiled with pthreads
X-Send-Pr-Version: www-1.0

>Number:         45431
>Category:       pkg
>Synopsis:       (re-)alpine will crash when compiled with pthreads
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    reed
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 05 19:00:01 +0000 2011
>Last-Modified:  Thu Oct 13 10:59:10 +0000 2011
>Originator:     Christopher M. Fuhrman
>Release:        NetBSD 5.1
>Organization:
>Environment:
NetBSD scuzzbuilder 5.1 NetBSD 5.1 (GENERIC) #0: Sat Nov  6 13:19:33 UTC 2010  builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/amd64/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
re-alpine will crash when attempting to invoke a third-party program, such as a web-browser or GnuPG encryption client only when it is compiled with pthreads (i.e., compiled _without_ --without-pthreads.
>How-To-Repeat:
Install either re-alpine or alpine via pkgsrc and open an email containing a web address or another third-party link (e.g., http://www.netbsd.org/ or http://www.google.com)

The program will then crash with the following output:

Problem detected: "Received abort signal(sig=11)".
Alpine Exiting.


       Attempting to save debug file to /home/cfuhrman/.pine-crash

Alpine can only then be killed via kill -9
>Fix:
Re-compile (re-)alpine _without_ pthreads under NetBSD.  All patches listed here are based off the pkgsrc-2011Q3 tree:

--PATCH FOR ALPINE--

--- Makefile.~1.24.~	2011-07-08 11:08:52.000000000 -0700
+++ Makefile	2011-10-05 11:50:36.000000000 -0700
@@ -28,7 +28,7 @@
 MAKE_JOBS_SAFE=         no
 INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

-.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M4.99.*) && empty(OS_VERSION:M[5-9]*)
+.if ${OPSYS} == "NetBSD"
 CONFIGURE_ARGS+= --without-pthread
 .endif

--PATCH FOR RE-ALPINE--

--- Makefile.~1.2.~	2010-01-17 04:02:25.000000000 -0800
+++ Makefile	2011-10-05 11:37:39.000000000 -0700
@@ -29,7 +29,7 @@
 MAKE_JOBS_SAFE=         no
 INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

-.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M4.99.*) && empty(OS_VERSION:M[5-9]*)
+.if ${OPSYS} == "NetBSD"
 CONFIGURE_ARGS+= --without-pthread
 .endif


>Release-Note:

>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45431: (re-)alpine will crash when compiled with pthreads
Date: Wed, 5 Oct 2011 14:59:50 -0500 (CDT)

 I do not seem to have this problem. I look at thousands of emails each 
 week that have URLs in them. Sometimes I click on them and open in a 
 browser (elinks).

From: "Christopher M. Fuhrman" <cfuhrman@panix.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/45431: (re-)alpine will crash when compiled with pthreads
Date: Wed, 5 Oct 2011 16:02:01 -0700 (PDT)

 On Wed, 5 Oct 2011 at 1:00pm, Jeremy C. Reed wrote:

 > The following reply was made to PR pkg/45431; it has been noted by GNATS.
 >
 >  I do not seem to have this problem. I look at thousands of emails each
 >  week that have URLs in them. Sometimes I click on them and open in a
 >  browser (elinks).

 Note: I've only seen this issue on NetBSD with versions of (re-)alpine
 compiled with pthreads.  I have not seen this same behavior with Mac OS X
 (Darwin).

 -- 
 Chris Fuhrman
 cfuhrman@panix.com


Responsible-Changed-From-To: pkg-manager->reed
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Thu, 13 Oct 2011 10:59:10 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.