NetBSD Problem Report #45716

From dholland@netbsd.org  Fri Dec 16 14:51:34 2011
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0DCA863D9CE
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 16 Dec 2011 14:51:34 +0000 (UTC)
Message-Id: <20111216145136.52AA214A1A9@mail.netbsd.org>
Date: Fri, 16 Dec 2011 14:51:36 +0000 (UTC)
From: dholland@NetBSD.org
Reply-To: dholland@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: emacs (various versions) dies on unwind stuff in gcc 4.5
X-Send-Pr-Version: 3.95

>Number:         45716
>Category:       pkg
>Synopsis:       emacs (various versions) dies on unwind stuff in gcc 4.5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dholland
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 16 14:55:00 +0000 2011
>Last-Modified:  Wed Sep 21 17:35:01 +0000 2016
>Originator:     David A. Holland
>Release:        NetBSD current
>Organization:
>Environment:
n/a
>Description:

When built with gcc 4.5, multiple versions of emacs die during build
(temacs receives SIGSEGV) due to something bogus going on in unwind
handling.

Christos committed a workaround to NetBSD HEAD in October so this
problem is not live, but it ought to be investigated to figure out if
emacs or gcc or NetBSD or what is at fault.

I'm not clear at the moment on whether this is an amd64-specific issue
or not.

>How-To-Repeat:

Revert Christos's workaround (Christos should please forward the
necessary info to this PR) and build emacs. emacs20 is smallest and we
believe it's affected; but this hasn't actually been confirmed yet.

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->dholland
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Fri, 16 Dec 2011 15:00:52 +0000
Responsible-Changed-Why:
I will look into it (at some point)


From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45716 CVS commit: pkgsrc/editors/mule
Date: Mon, 19 Dec 2011 21:36:08 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Mon Dec 19 21:36:08 UTC 2011

 Modified Files:
 	pkgsrc/editors/mule: Makefile distinfo
 	pkgsrc/editors/mule/patches: patch-ad

 Log Message:
 Try to fix build.

 * Merge checks in emacs20's patch-ab. Fix PR pkg/45669 like problem.
 * Now I have gotten temacs sagfault, maybe related to PR pkg/45716.


 To generate a diff of this commit:
 cvs rdiff -u -r1.46 -r1.47 pkgsrc/editors/mule/Makefile
 cvs rdiff -u -r1.8 -r1.9 pkgsrc/editors/mule/distinfo
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/editors/mule/patches/patch-ad

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45716 CVS commit: src/external/gpl3/gcc/dist/libgcc
Date: Wed, 20 Aug 2014 09:29:08 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Wed Aug 20 13:29:07 UTC 2014

 Modified Files:
 	src/external/gpl3/gcc/dist/libgcc: unwind-dw2-fde.c

 Log Message:
 PR/45716: Anthony Mallet: emacs (various versions) dies on unwind stuff in gcc 4.8
 Apply fix that got missed as this file got moved from dist/gcc to dist/libgcc:

 Somehow emacs tries to unregister frame info for a symbol it did not register.
 Don't abort for now. This worked before because the previous version of gcc
 did not bother unregistering. Adding debugging printfs makes emacs core
 dump, where other programs work fine.

 XXX: pullup 7


 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.1 -r1.2 \
     src/external/gpl3/gcc/dist/libgcc/unwind-dw2-fde.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/45716
Date: Wed, 21 Sep 2016 17:34:19 +0000

 Hi

 This is still happening in NetBSD-current with gcc 5.4, see pkg/51439
 Is a similar fix needed again?

>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.