NetBSD Problem Report #59090

From www@netbsd.org  Thu Feb 20 16:50:28 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 378951A923D
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 20 Feb 2025 16:50:28 +0000 (UTC)
Message-Id: <20250220165026.D46601A923F@mollari.NetBSD.org>
Date: Thu, 20 Feb 2025 16:50:26 +0000 (UTC)
From: ferorborja@gmail.com
Reply-To: ferorborja@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Neovim SEGFAULT on aarch64 (Raspberry Pi 4)
X-Send-Pr-Version: www-1.0

>Number:         59090
>Category:       pkg
>Synopsis:       Neovim SEGFAULT on aarch64 (Raspberry Pi 4)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 20 16:55:00 +0000 2025
>Last-Modified:  Thu Feb 20 17:20:01 +0000 2025
>Originator:     Lem
>Release:        NetBSD 10.1
>Organization:
>Environment:
NetBSD raspberrypi-nbsd 10.1_STABLE NetBSD 10.1_STABLE (GENERIC64) #0: Sun Feb  2 15:05:07 UTC 2025  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm

>Description:
Neovim installed from pkgsrc sends a Segmentation Fault when installing on a fresh installation on aarch64. Tested on a Raspberry Pi 4
>How-To-Repeat:
Install neovim on aarch64 with pkgin

Run nvim
>Fix:

>Audit-Trail:
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/59090: Neovim SEGFAULT on aarch64 (Raspberry Pi 4)
Date: Thu, 20 Feb 2025 18:17:19 +0100

 Hello Lem,

 ferorborja@gmail.com writes:
 > >Number:         59090
 > >Category:       pkg
 > >Synopsis:       Neovim SEGFAULT on aarch64 (Raspberry Pi 4)
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       high
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Thu Feb 20 16:55:00 +0000 2025
 > >Originator:     Lem
 > >Release:        NetBSD 10.1
 > >Organization:
 > >Environment:
 > NetBSD raspberrypi-nbsd 10.1_STABLE NetBSD 10.1_STABLE (GENERIC64) #0: Sun Feb  2 15:05:07 UTC 2025  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
 >
 > >Description:
 > Neovim installed from pkgsrc sends a Segmentation Fault when installing on a fresh installation on aarch64. Tested on a Raspberry Pi 4
 > >How-To-Repeat:
 > Install neovim on aarch64 with pkgin
 > [...]

 Adding possible more information... this is likely due the use of
 patchelf in post-install:

  | .if ${SHLIB_TYPE} == "ELF"
  | CFLAGS+=        ${COMPILER_RPATH_FLAG}${PREFIX}/lib/lua/5.1
  | 
  | TOOL_DEPENDS+=  patchelf-[0-9]*:../../devel/patchelf
  | 
  | post-install:
  |         ${TOOLBASE}/bin/patchelf ${DESTDIR}${PREFIX}/bin/nvim \
  |                 --replace-needed ${BUILDLINK_DIR.lua-lpeg}/lib/lua/5.1/lpeg.so lpeg.so
  | .endif

 I have locally workaround-ed that by getting rid of the post-install
 target and building with CHECK_SHLIBS=yes ... but we definitely need to
 figure out how to get rid of that kludge and properly linking to lpeg.so
 without needing patchelf.

 (If patchelf is problematic on aarch64... that's probably worth a PR
 too, but that's another story :))

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.