pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/55465: math/qalculate - qcal dumps core on LANG set



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



Home | Main Index | Thread Index | Old Index