NetBSD Problem Report #58433

From www@netbsd.org  Tue Jul 16 17:11:35 2024
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 CE4FB1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Jul 2024 17:11:35 +0000 (UTC)
Message-Id: <20240716171134.D33631A923A@mollari.NetBSD.org>
Date: Tue, 16 Jul 2024 17:11:34 +0000 (UTC)
From: bruno@haible.de
Reply-To: bruno@haible.de
To: gnats-bugs@NetBSD.org
Subject: pkg_add segmentation fault
X-Send-Pr-Version: www-1.0

>Number:         58433
>Category:       pkg
>Synopsis:       pkg_add segmentation fault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 16 17:15:00 +0000 2024
>Last-Modified:  Sun Aug 25 06:10:01 +0000 2024
>Originator:     Bruno Haible
>Release:        10.0
>Organization:
GNU
>Environment:
NetBSD ***** 10.0 NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
This command, run as root

/usr/sbin/pkg_add gjs

produces some output, ending in

/usr/pkg/lib/libgtk-3.so.0: Shared object "libfontconfig.so.2" not found

and then crashes with a segmentation fault.

>How-To-Repeat:
/usr/sbin/pkg_add gjs
>Fix:

>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/58433: pkg_add segmentation fault
Date: Wed, 17 Jul 2024 14:44:14 +0200

 Did you install the X sets when installing NetBSD?

 I think the published binary packages assume that those are installed
 and this looks like it might be related to this.

 (Not that I think that the core dump is proper behaviour, but just to
 get you further along in what you wanted to do.)
  Thomas

From: Bruno Haible <bruno@clisp.org>
To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/58433: pkg_add segmentation fault
Date: Wed, 17 Jul 2024 14:50:31 +0200

 >  Did you install the X sets when installing NetBSD?

 No.



From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/58433: pkg_add segmentation fault
Date: Wed, 17 Jul 2024 14:58:13 +0200

 On Wed, Jul 17, 2024 at 12:55:02PM +0000, Bruno Haible wrote:
 > The following reply was made to PR pkg/58433; it has been noted by GNATS.
 > 
 > From: Bruno Haible <bruno@clisp.org>
 > To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/58433: pkg_add segmentation fault
 > Date: Wed, 17 Jul 2024 14:50:31 +0200
 > 
 >  >  Did you install the X sets when installing NetBSD?
 >  
 >  No.

 Do, if you want to use the binary packages.
  Thomas

From: Bruno Haible <bruno@clisp.org>
To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/58433: pkg_add segmentation fault
Date: Wed, 17 Jul 2024 15:41:42 +0200

 >  >  >  Did you install the X sets when installing NetBSD?
 >  >  
 >  >  No.
 >  
 >  Do, if you want to use the binary packages.

 First and foremost, I want a package manager that tells me through
 an error message if it cannot install some package.



From: Thomas Klausner <wiz@gatalith.at>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/58433: pkg_add segmentation fault
Date: Wed, 17 Jul 2024 15:50:16 +0200

 >  First and foremost, I want a package manager that tells me through
 >  an error message if it cannot install some package.

 I understand your frustration, and I agree that the core dump is bad.

 The recommended package manager for pkgsrc is pkgin though, not
 pkg_add directly.
  Thomas

From: =?UTF-8?Q?J=C3=B6rg_Sonnenberger?= <joerg@bec.de>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org, bruno@haible.de
Cc: 
Subject: Re: pkg/58433: pkg_add segmentation fault
Date: Thu, 18 Jul 2024 00:27:41 +0200

 On 7/17/24 3:45 PM, Bruno Haible wrote:
 > The following reply was made to PR pkg/58433; it has been noted by GNATS.
 > 
 > From: Bruno Haible <bruno@clisp.org>
 > To: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: pkg/58433: pkg_add segmentation fault
 > Date: Wed, 17 Jul 2024 15:41:42 +0200
 > 
 >   >  >  >  Did you install the X sets when installing NetBSD?
 >   >  >
 >   >  >  No.
 >   >
 >   >  Do, if you want to use the binary packages.
 >   
 >   First and foremost, I want a package manager that tells me through
 >   an error message if it cannot install some package.

 But it isn't pkg_add that's segfaulting, but something
 using libgtk-3.so.0.

 Joerg

From: Bruno Haible <bruno@clisp.org>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, =?ISO-8859-1?Q?J=F6rg?= Sonnenberger <joerg@bec.de>
Cc: 
Subject: Re: pkg/58433: pkg_add segmentation fault
Date: Thu, 18 Jul 2024 05:56:44 +0200

 J=F6rg Sonnenberger wrote:
 > But it isn't pkg_add that's segfaulting, but something
 > using libgtk-3.so.0.

 No. See:

 # pkg_add gjs
 =2E..
 # echo $?
 139




From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58433 CVS commit: pkgsrc/pkgtools/pkg_install/files
Date: Sun, 25 Aug 2024 06:08:01 +0000

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Sun Aug 25 06:08:01 UTC 2024

 Modified Files:
 	pkgsrc/pkgtools/pkg_install/files/add: perform.c
 	pkgsrc/pkgtools/pkg_install/files/lib: version.h

 Log Message:
 pkg_install: check REQUIRES lines on installation

 Fail if any of the required libraries is missing; in particular,
 for files from the X set on NetBSD, suggest installing the X sets.

 Should fix PR 58433.


 To generate a diff of this commit:
 cvs rdiff -u -r1.122 -r1.123 pkgsrc/pkgtools/pkg_install/files/add/perform.c
 cvs rdiff -u -r1.193 -r1.194 pkgsrc/pkgtools/pkg_install/files/lib/version.h

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

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