NetBSD Problem Report #56880

From mlelstv@serpens.de  Sun Jun 12 20:20:26 2022
Return-Path: <mlelstv@serpens.de>
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 218391A921F
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 12 Jun 2022 20:20:26 +0000 (UTC)
Message-Id: <20220612202016.CA6AF7332A@serpens.de>
Date: Sun, 12 Jun 2022 22:20:15 +0200 (MEST)
From: mlelstv@netbsd.org
Reply-To: mlelstv@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: mercurial crashes in zstd
X-Send-Pr-Version: 3.95

>Number:         56880
>Category:       pkg
>Synopsis:       mercurial crashes in zstd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 12 20:25:00 +0000 2022
>Last-Modified:  Thu Jun 16 21:45:01 +0000 2022
>Originator:     Michael van Elst
>Release:        NetBSD 9.2_STABLE
>Organization:
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."
>Environment:


System: NetBSD hoppa 9.2_STABLE NetBSD 9.2_STABLE (HOPPA) #30: Tue Apr 12 19:34:42 CEST 2022 mlelstv@gossam:/home/netbsd9/obj.evbarm/home/netbsd9/src/sys/arch/evbarm/compile/HOPPA evbarm
Architecture: earmv6hf
Machine: evbarm
>Description:
Cloning a repository with mercurial results in a bus error:

> Thread 1 "" received signal SIGBUS, Bus error.
> 0x7add40e0 in ZSTD_compressBlock_doubleFast ()
>    from /usr/pkg/lib/python3.9/site-packages/mercurial/zstd.so

This could be a known bug in zstd on this hardware:

https://github.com/RPi-Distro/repo/issues/179

The bug has been fixed in zstd 1.4.8, but the mercurial package
embeds the older version 1.4.4.

The standalone package in pkgsrc-2022Q1 is already at 1.5.2

>How-To-Repeat:
Use mercurial on 32bit evbarm.
>Fix:


>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/56880: mercurial crashes in zstd
Date: Sun, 12 Jun 2022 22:34:21 +0200

 I've created an upstream bug report about this:

 https://bz.mercurial-scm.org/show_bug.cgi?id=6715
  Thomas

From: Michael van Elst <mlelstv@serpens.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56880 mercurial crashes in zstd
Date: Thu, 16 Jun 2022 12:21:49 +0200

 I can confirm that replacing the embedded zstd code with the 1.4.8 version
 solves the issue. I haven't tried more recent versions.

 It might be more useful to not rely on the embedded code (zstd and
 others), but to add it as dependencies.

 -- 
                                 Michael van Elst
 Internet: mlelstv@serpens.de
                                 "A potential Snark may lurk in every tree."

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	mlelstv@netbsd.org
Subject: Re: pkg/56880 mercurial crashes in zstd
Date: Thu, 16 Jun 2022 23:42:26 +0200

 Am Thu, Jun 16, 2022 at 10:25:01AM +0000 schrieb Michael van Elst:
 >  It might be more useful to not rely on the embedded code (zstd and
 >  others), but to add it as dependencies.

 The Python binding at least historically had to do some fancy things
 to/with zstd and therefore building against external zstd was not an
 option.

 Joerg

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.