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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 04 11:15:00 +0000 2013
>Closed-Date:    Tue Aug 18 09:50:12 +0000 2020
>Last-Modified:  Tue Aug 18 09:50:12 +0000 2020
>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

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 04 Sep 2019 21:45:38 +0000
State-Changed-Why:
Are binary emacs packages still a problem?
Note for information: this is an issue because emacs will dump its memory and restore it, and it is thus sensitive to difference in allowable memory ranges.


From: Havard Eidnes <he@NetBSD.org>
To: gnats-bugs@netbsd.org, maya@NetBSD.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
 gson@gson.org
Subject: Re: pkg/47992 (emacs23 and emacs24 i386/6.1 pre-compiled binaries
 fail)
Date: Fri, 06 Sep 2019 11:23:55 +0200 (CEST)

 > State-Changed-From-To: open->feedback
 > State-Changed-By: maya@NetBSD.org
 > State-Changed-When: Wed, 04 Sep 2019 21:45:38 +0000
 > State-Changed-Why:
 > Are binary emacs packages still a problem?
 > Note for information: this is an issue because emacs will dump
 > its memory and restore it, and it is thus sensitive to
 > difference in allowable memory ranges.

 I just tried installing a binary package for emacs25-nox11 (since
 emacs25 apparently isn't available, possibly due to svg/rust) on
 NetBSD/i386 8.1, and there it worked.  I beleive the emacs23 and
 emacs24 packages have been removed from pkgsrc in the mean time,
 so I can't exactly reproduce the problem, although this is an
 indication that it's solved.

 Wasn't the problem that the pkg build hosts ran the PAE i386
 variant in Xen(?), and that this was incompatible with native
 i386 address space layout?  Not sure how that has changed since
 the problem was reported.

 Best regards,

 - H=E5vard

From: maya@NetBSD.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47992 (emacs23 and emacs24 i386/6.1 pre-compiled binaries
 fail)
Date: Fri, 6 Sep 2019 09:39:55 +0000

 I suspect the fixing or PR 51654 helped this problem.

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 18 Aug 2020 09:50:12 +0000
State-Changed-Why:
(a) feedback received in September
(b) yes, duplicate of 51654


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.