NetBSD Problem Report #54464
From www@netbsd.org Wed Aug 14 12:58:48 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 5A5C67A10E
for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Aug 2019 12:58:48 +0000 (UTC)
Message-Id: <20190814125847.65D937A1E1@mollari.NetBSD.org>
Date: Wed, 14 Aug 2019 12:58:47 +0000 (UTC)
From: ottavio2006-usenet2012@yahoo.com
Reply-To: ottavio2006-usenet2012@yahoo.com
To: gnats-bugs@NetBSD.org
Subject: editors/vim crashes with "Caught deadly signal ABRT" on Linux
X-Send-Pr-Version: www-1.0
>Number: 54464
>Category: pkg
>Synopsis: editors/vim crashes with "Caught deadly signal ABRT" on Linux
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: morr
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Aug 14 13:00:00 +0000 2019
>Closed-Date: Fri Aug 30 20:53:48 +0000 2019
>Last-Modified: Fri Aug 30 20:53:48 +0000 2019
>Originator: Ottavio Caruso
>Release: pkgsrc current
>Organization:
>Environment:
Linux e130 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux
>Description:
As reported on [1] and [2], when editors/vim is built on Linux, it creates and installs a package, but then it crashes at startup:
$vim
Vim: Caught deadly signal ABRT
Vim: Finished.
As per upstream's [2] response, they are adamant that this is due to pkgsrc using -D_FORTIFY_SOURCE=2 and running into false positives.
While this approach may be debatable, it's clear that upstream think there's no bug involved here and won't debate the matter further.
References:
[1] https://mail-index.netbsd.org/pkgsrc-users/2019/07/10/msg028950.html
[2] https://groups.google.com/forum/#!topic/vim_use/FAHE5A_st-A
>How-To-Repeat:
$cd ~/pkgsrc/current/pkgsrc/editor/vim
$bmake install
$cd
$vim
Vim: Caught deadly signal ABRT
Vim: Finished.
>Fix:
This patch to editors/vim-share/Makefile.common sets:
PKGSRC_USE_FORTIFY= weak
on Linux
--- Makefile.common.old 2019-08-14 13:04:01.371682068 +0100
+++ Makefile.common 2019-08-14 13:32:27.903076508 +0100
@@ -52,6 +52,10 @@
BUILDLINK_PASSTHRU_DIRS+= /Developer/Headers/FlatCarbon
.endif
+.if ${OPSYS} == "Linux"
+PKGSRC_USE_FORTIFY= weak
+.endif
+
.if empty(PKGNAME:Mvim-share*)
ALTERNATIVES_SRC= ${.CURDIR}/../../editors/vim-share/ALTERNATIVES
.else
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->morr
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Wed, 14 Aug 2019 14:00:16 +0000
Responsible-Changed-Why:
Daniel, can you please give it a look?
(over to MAINTAINER)
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/54464: editors/vim crashes with "Caught deadly signal ABRT" on Linux
Date: Wed, 14 Aug 2019 15:59:14 +0200
ottavio2006-usenet2012@yahoo.com writes:
> [...]
> >Fix:
> This patch to editors/vim-share/Makefile.common sets:
> PKGSRC_USE_FORTIFY= weak
> on Linux
> [...]
Minor nit: this should be:
FORTIFY_SUPPORTED= no
(PKGSRC_USE_FORTIFY is a global variable, not a package-settable
variable.)
From: Jonathan Perkin <jperkin@joyent.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/54464: editors/vim crashes with "Caught deadly signal ABRT"
on Linux
Date: Thu, 15 Aug 2019 08:39:32 +0100
* On 2019-08-15 at 06:13 BST, ottavio2006-usenet2012@yahoo.com wrote:
> This patch to editors/vim-share/Makefile.common sets:
> PKGSRC_USE_FORTIFY= weak
> on Linux
As we've said on IRC at least 3 times, this is a user variable and not
for package use. The correct fix is FORTIFY_SUPPORTED=no.
--
Jonathan Perkin - Joyent, Inc. - www.joyent.com
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/54464 CVS commit: pkgsrc/editors
Date: Tue, 27 Aug 2019 09:26:02 +0000
Module Name: pkgsrc
Committed By: maya
Date: Tue Aug 27 09:26:02 UTC 2019
Modified Files:
pkgsrc/editors/vim: Makefile
pkgsrc/editors/vim-gtk2: Makefile
pkgsrc/editors/vim-gtk3: Makefile
pkgsrc/editors/vim-lang: Makefile
pkgsrc/editors/vim-motif: Makefile
pkgsrc/editors/vim-share: Makefile.common
pkgsrc/editors/vim-xaw: Makefile
Log Message:
vim*: disable fortify
The package lowers it to weaker fortify, but this doesn't work in some
circumstances, like PR pkg/54464.
Must be done before including bsd.prefs.mk.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 pkgsrc/editors/vim/Makefile
cvs rdiff -u -r1.84 -r1.85 pkgsrc/editors/vim-gtk2/Makefile
cvs rdiff -u -r1.16 -r1.17 pkgsrc/editors/vim-gtk3/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/editors/vim-lang/Makefile
cvs rdiff -u -r1.38 -r1.39 pkgsrc/editors/vim-motif/Makefile
cvs rdiff -u -r1.163 -r1.164 pkgsrc/editors/vim-share/Makefile.common
cvs rdiff -u -r1.61 -r1.62 pkgsrc/editors/vim-xaw/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Ottavio Caruso <ottavio2006-usenet2012@yahoo.com>
To: gnats-bugs@netbsd.org
Cc: morr@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: PR/54464 CVS commit: pkgsrc/editors
Date: Tue, 27 Aug 2019 12:21:25 +0100
On Tue, 27 Aug 2019 at 10:30, Maya Rashish <maya@netbsd.org> wrote:
> Module Name: pkgsrc
> Committed By: maya
> Date: Tue Aug 27 09:26:02 UTC 2019
>
> Log Message:
> vim*: disable fortify
>
> The package lowers it to weaker fortify, but this doesn't work in some
> circumstances, like PR pkg/54464.
I've made a clean reinstall of the package and its dependencies and I
can confirm it works fine on my system:
$ uname -a
Linux e130 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08)
x86_64 GNU/Linux
$ pkg_info |grep vim
vim-share-8.1.1778nb1 Data files for the vim editor (vi clone)
vim-8.1.1778nb1 Vim editor (vi clone) without GUI
--
Ottavio Caruso
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 30 Aug 2019 20:53:48 +0000
State-Changed-Why:
reported fixed. thanks for the report.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.