NetBSD Problem Report #55465

From www@netbsd.org  Mon Jul  6 12:15:21 2020
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 4B2B91A9213
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  6 Jul 2020 12:15:21 +0000 (UTC)
Message-Id: <20200706121520.5EFDC1A921A@mollari.NetBSD.org>
Date: Mon,  6 Jul 2020 12:15:20 +0000 (UTC)
From: ci4ic4@gmail.com
Reply-To: ci4ic4@gmail.com
To: gnats-bugs@NetBSD.org
Subject: math/qalculate - qcal dumps core on LANG set 
X-Send-Pr-Version: www-1.0

>Number:         55465
>Category:       pkg
>Synopsis:       math/qalculate - qcal dumps core on LANG set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 06 12:20:00 +0000 2020
>Originator:     Chavdar Ivanov
>Release:        NetBSD-current as of 07/07/2020, -current pkgsrc
>Organization:
CI4 Consulting Ltd
>Environment:
NetBSD ymir 9.99.69 NetBSD 9.99.69 (GENERIC) #9: Mon Jul  6 09:50:06 BST 2020  sysbuild@ymir:/home/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
math/qalculate includes a small number of locales:
..
/usr/pkg/share/locale/fr/LC_MESSAGES/libqalculate.mo
/usr/pkg/share/locale/nl/LC_MESSAGES/libqalculate.mo
/usr/pkg/share/locale/sv/LC_MESSAGES/libqalculate.mo
/usr/pkg/share/locale/zh_CN/LC_MESSAGES/libqalculate.mo
..

If LANG is different from any of these, it crashes. 
>How-To-Repeat:
$ echo $LANG
en_GB.UTF-8
$ qalc
Memory fault
$ LANG= qalc
> quit                            # works OK
$ ktruss /usr/pkg/bin/qalc
...
19036  19036 qalc     close(0x5)                  = 0
19036  19036 qalc     __stat50("/usr/pkg/share/locale/en_GB.UTF-8/LC_MESSAGES/libqalculate.mo", 0x7f7fff1d1160) Err#2 ENOENT
...
__stat50("/usr/pkg/share/locale/en/LC_MESSAGES/libqalculate.mo", 0x7f7fff1d1160) Err#2 ENOENT
 19036  19036 qalc     SIGSEGV SIG_DFL


>Fix:
Fix N/A, workaround - invoke as 'LANG= qalc' . 

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.