NetBSD Problem Report #47992

From he@smistad.uninett.no  Thu Jul  4 11:11:42 2013
Return-Path: <he@smistad.uninett.no>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id DCE437186F
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  4 Jul 2013 11:11:41 +0000 (UTC)
Message-Id: <20130704111138.11EC33D0B5@smistad.uninett.no>
Date: Thu,  4 Jul 2013 13:11:38 +0200 (CEST)
From: he@NetBSD.org
Reply-To: he@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: emacs23 and emacs24 i386/6.1 pre-compiled binaries fail
X-Send-Pr-Version: 3.95

>Number:         47992
>Notify-List:    gson@gson.org
>Category:       pkg
>Synopsis:       emacs23 and emacs24 i386/6.1 pre-compiled binaries fail
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 04 11:15:00 +0000 2013
>Last-Modified:  Tue Sep 08 10:05:00 +0000 2015
>Originator:     Havard Eidnes
>Release:        NetBSD 6.1
>Organization:
	None
>Environment:


System: NetBSD smistad.uninett.no 6.1 NetBSD 6.1 (MAANEN) #1: Mon Jul 1 14:33:56 CEST 2013 he@smistad.uninett.no:/usr/obj/sys/arch/i386/compile/MAANEN i386
Architecture: i386
Machine: i386
>Description:
	It appears that the pre-compiled binaries available in

	ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.1/All/

	for emacs23 and	emacs24 both segfault while starting on
	NetBSD/i386 6.1.

	Building emacs23 from pkgsrc-2013Q1 from source locally
	produces a working binary, which makes me wonder how the
	released binaries were built.	

>How-To-Repeat:
	Install emacs23 or emacs24 binary package, and see emacs
	segfault during startup.
>Fix:
	Rebuild from source (should not be necessary)

>Release-Note:

>Audit-Trail:
From: Mark Davies <mark@ecs.vuw.ac.nz>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47992: emacs23 and emacs24 i386/6.1 pre-compiled binaries fail
Date: Fri, 5 Jul 2013 00:05:33 +1200

 On Thu, 04 Jul 2013, you wrote:
 > 	It appears that the pre-compiled binaries available in
 > 
 > 	ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.1/All/
 > 
 > 	for emacs23 and	emacs24 both segfault while starting on
 > 	NetBSD/i386 6.1.
 > 
 > 	Building emacs23 from pkgsrc-2013Q1 from source locally
 > 	produces a working binary, which makes me wonder how the
 > 	released binaries were built.

 Are the precompiled binaries built on a XEN3PAE_DOMU box?

 I've found that emacs built on a XEN3PAE_DOMU i386 box will work 
 locally but segfault on a non XEN i386 box and vice versa.
 See the tail end of PR pkg/46632.

 This is the only noncompatible binary I've found between xen and non-
 xen and its somewhat annoying.

 cheers
 mark

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47992: emacs23 and emacs24 i386/6.1 pre-compiled binaries
 fail
Date: Thu, 4 Jul 2013 14:53:32 +0200

 On Thu, Jul 04, 2013 at 11:15:00AM +0000, he@NetBSD.org wrote:
 > 	It appears that the pre-compiled binaries available in
 > 	
 > 	ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/6.1/All/
 > 
 > 	for emacs23 and	emacs24 both segfault while starting on
 > 	NetBSD/i386 6.1.

 I wonder if this is the same issue as binaries built with compat32 on amd64.

 Joerg

From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47992: emacs23 and emacs24 i386/6.1 pre-compiled binaries
 fail
Date: Tue, 8 Sep 2015 06:01:25 -0400

 I confirm that this still occurs; I used some 32-bit prebuilt packages
 for the first time in years recently (32-bit hosts now being rare here,
 I wanted to avoid building only for that host), and all emacs-nox11
 versions crash at startup.

 Unfortunately those packages don't have debug symbols (should they, or
 are they available separately?), but ktrace shows SIGSEGV SEGV_ACCERR
 just after loading shared libraries and calling lwp_setprivate().

 I can't confirm for the netbsd-32 compat issue, but I remember getting
 some problem lately when trying to build a package under amd64 in a
 i686 chroot, something which I had done successfully in the past.  I'd
 have to try that again and file another PR if I discover the reason.

 -- 
 Matt

>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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.