NetBSD Problem Report #56229

From www@netbsd.org  Thu Jun  3 05:42:03 2021
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 7598D1A9250
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  3 Jun 2021 05:42:03 +0000 (UTC)
Message-Id: <20210603054201.E185C1A9251@mollari.NetBSD.org>
Date: Thu,  3 Jun 2021 05:42:01 +0000 (UTC)
From: vezhlys@gmail.com
Reply-To: vezhlys@gmail.com
To: gnats-bugs@NetBSD.org
Subject: pluma fails with segmentation fault on zh_CN in NetBSD 9.2
X-Send-Pr-Version: www-1.0

>Number:         56229
>Category:       pkg
>Synopsis:       pluma fails with segmentation fault on zh_CN in NetBSD 9.2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gutteridge
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 03 05:45:00 +0000 2021
>Closed-Date:    Sat Jun 12 22:36:06 +0000 2021
>Last-Modified:  Sat Jun 12 22:36:06 +0000 2021
>Originator:     Andrius V
>Release:        NetBSD 9.2
>Organization:
>Environment:
NetBSD  9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 22:13:25 EEST 2021  andriusv@:/home/andriusv/netbsd-src/sys/arch/amd64/compile/GENERIC amd64
>Description:
I am getting segmentation fault on pluma build in NetBSD 9.2. Something is wrong with zh_CN help folder. Removing it from source and PLIST makes it buildable again.


[1]   Segmentation fault (core dumped) (cd "zh_CN/" && /usr/pkgsrc/editors/pluma/work...
gmake[2]: *** [Makefile:592: zh_CN/zh_CN.stamp] Error 139
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/usr/pkgsrc/editors/pluma/work/pluma-1.24.2/help'
gmake[1]: *** [Makefile:519: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/editors/pluma/work/pluma-1.24.2'
gmake: *** [Makefile:451: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/editors/pluma
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/editors/pluma

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->gutteridge
Responsible-Changed-By: gutteridge@NetBSD.org
Responsible-Changed-When: Thu, 03 Jun 2021 12:53:47 +0000
Responsible-Changed-Why:
Take. This appears to be a tool issue caused by the update to Perl 5.34.

From: "David H. Gutteridge" <gutteridge@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56229 CVS commit: pkgsrc/editors/pluma
Date: Thu, 3 Jun 2021 16:31:13 +0000

 Module Name:	pkgsrc
 Committed By:	gutteridge
 Date:		Thu Jun  3 16:31:13 UTC 2021

 Modified Files:
 	pkgsrc/editors/pluma: Makefile PLIST distinfo
 Added Files:
 	pkgsrc/editors/pluma/patches: patch-help_Makefile.in

 Log Message:
 pluma: fix builds with latest itstool & py-libxml2 combination

 A (hopefully temporary) workaround to fix a regression where itstool
 with py-libxml2 2.9.12 ends up causing a Python segfault. (This did not
 occur with py-libxml2 2.9.10.) For now, disable the help file target
 that triggers the issue. Addresses PR pkg/56229 from Andrius V.


 To generate a diff of this commit:
 cvs rdiff -u -r1.39 -r1.40 pkgsrc/editors/pluma/Makefile
 cvs rdiff -u -r1.8 -r1.9 pkgsrc/editors/pluma/PLIST
 cvs rdiff -u -r1.11 -r1.12 pkgsrc/editors/pluma/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/editors/pluma/patches/patch-help_Makefile.in

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

From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56229 (pluma fails with segmentation fault on zh_CN in
 NetBSD 9.2)
Date: Thu, 03 Jun 2021 13:07:18 -0400

 Well, it was a recent tool dependency update that caused this breakage,
 but not Perl, rather, itstool's py-libxml2 dependency. (I'd forgotten
 MATE had moved from intltool to itstool.) With py-libxml2 2.9.12 we now
 end up with a segfault parsing that particular file where we didn't
 before. Given itstool's history of this sort of thing, it's likely it
 isn't handling some new error condition thrown by py-libxml2, but I
 haven't had time to debug this (help is welcome here), hence the
 workaround.

 Dave


From: "David H. Gutteridge" <gutteridge@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56229 CVS commit: pkgsrc/textproc
Date: Sat, 12 Jun 2021 17:02:52 +0000

 Module Name:	pkgsrc
 Committed By:	gutteridge
 Date:		Sat Jun 12 17:02:52 UTC 2021

 Modified Files:
 	pkgsrc/textproc/libxml2: distinfo
 	pkgsrc/textproc/py-libxml2: Makefile
 Added Files:
 	pkgsrc/textproc/libxml2/patches: patch-python_libxml.c

 Log Message:
 py-libxml2: work around a problem in error handling

 Restore part of a patch lost in the last libxml2 update which is still
 relevant. Reapplying it fixes segfaults caused by itstool, e.g., when
 building editors/pluma, which is PR pkg/56229 from Andrius V.

 Quoting from wiz@'s original commit from Jan 9, 2019, which covers
 everything else:

 "In some cases, invalid UTF-8 strings were returned which caused
 Python interpreter crashes. See

 itstool/itstool#22

 Use a variant of the patch that was used in Fedora.

 Bump PKGREVISION."

 Fedora is still carrying this patch as-is.

 (Also, evidently distinfo was not regenerated properly after the last
 update, so there's a diff applied to it unrelated to this change set.)


 To generate a diff of this commit:
 cvs rdiff -u -r1.135 -r1.136 pkgsrc/textproc/libxml2/distinfo
 cvs rdiff -u -r0 -r1.4 pkgsrc/textproc/libxml2/patches/patch-python_libxml.c
 cvs rdiff -u -r1.68 -r1.69 pkgsrc/textproc/py-libxml2/Makefile

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

From: "David H. Gutteridge" <gutteridge@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56229 CVS commit: pkgsrc/editors/pluma
Date: Sat, 12 Jun 2021 17:31:00 +0000

 Module Name:	pkgsrc
 Committed By:	gutteridge
 Date:		Sat Jun 12 17:31:00 UTC 2021

 Modified Files:
 	pkgsrc/editors/pluma: Makefile PLIST distinfo
 Removed Files:
 	pkgsrc/editors/pluma/patches: patch-help_Makefile.in

 Log Message:
 pluma: restore zh_CN translations now the issue has been fixed

 The underlying issue was in py-libxml2's UTF-8 handling, as used by
 itstool. This should now be fixed. Properly addresses PR pkg/56229 from
 Andrius V.


 To generate a diff of this commit:
 cvs rdiff -u -r1.40 -r1.41 pkgsrc/editors/pluma/Makefile
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/editors/pluma/PLIST
 cvs rdiff -u -r1.12 -r1.13 pkgsrc/editors/pluma/distinfo
 cvs rdiff -u -r1.1 -r0 pkgsrc/editors/pluma/patches/patch-help_Makefile.in

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

State-Changed-From-To: open->feedback
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sat, 12 Jun 2021 18:28:38 +0000
State-Changed-Why:
This should be fixed now, you need py-libxml2 2.9.12nb1 and pluma 1.24.2nb3.

From: Andrius V <vezhlys@gmail.com>
To: gnats-bugs@netbsd.org
Cc: gutteridge@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: pkg/56229 (pluma fails with segmentation fault on zh_CN in NetBSD 9.2)
Date: Sat, 12 Jun 2021 23:55:33 +0300

 Hi,

 Yes, the build does not fail on zh_CN anymore with updated py-libxml2
 and pluma versions. Thank you.

 On Sat, Jun 12, 2021 at 9:28 PM <gutteridge@netbsd.org> wrote:
 >
 > Synopsis: pluma fails with segmentation fault on zh_CN in NetBSD 9.2
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: gutteridge@NetBSD.org
 > State-Changed-When: Sat, 12 Jun 2021 18:28:38 +0000
 > State-Changed-Why:
 > This should be fixed now, you need py-libxml2 2.9.12nb1 and pluma 1.24.2nb3.
 >
 >

State-Changed-From-To: feedback->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sat, 12 Jun 2021 22:36:06 +0000
State-Changed-Why:
Issue resolved. Thanks for the PR!

>Unformatted:

NetBSD Home
NetBSD PR Database Search

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