NetBSD Problem Report #55012
From www@netbsd.org Mon Feb 24 18:20:03 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 ACEEF1A9213
for <gnats-bugs@gnats.NetBSD.org>; Mon, 24 Feb 2020 18:20:03 +0000 (UTC)
Message-Id: <20200224182002.B2D0F1A9217@mollari.NetBSD.org>
Date: Mon, 24 Feb 2020 18:20:02 +0000 (UTC)
From: bapabooiee@gmail.com
Reply-To: bapabooiee@gmail.com
To: gnats-bugs@NetBSD.org
Subject: x11/tk: wish/tk apps segfault on startup when no fonts are installed
X-Send-Pr-Version: www-1.0
>Number: 55012
>Category: pkg
>Synopsis: x11/tk: wish/tk apps segfault on startup when no fonts are installed
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 24 18:25:00 +0000 2020
>Originator: Dean Matzkov
>Release: 2019-Q4
>Organization:
>Environment:
Windows Subsystem for Linux, Ubuntu 18.04, using Xming as X11 Server
>Description:
Tk apps such as devel/git-gitk crash when no fonts are installed on the system, as such:
----SNIP----
Program received signal SIGSEGV, Segmentation fault.
0x00007ffffef79cfe in GetTkFontAttributes.isra.0 () from /opt/pkg/lib/libtk86.so
(gdb) bt
#0 0x00007ffffef79cfe in GetTkFontAttributes.isra.0 () from /opt/pkg/lib/libtk86.so
#1 0x00007ffffef7a618 in InitFont () from /opt/pkg/lib/libtk86.so
#2 0x00007ffffef7a8a9 in TkpGetFontFromAttributes () from /opt/pkg/lib/libtk86.so
#3 0x00007ffffeebd2f7 in Tk_AllocFontFromObj () from /opt/pkg/lib/libtk86.so
#4 0x00007ffffef52f17 in Ttk_UseFont () from /opt/pkg/lib/libtk86.so
#5 0x00007ffffef6a20f in InitializeElementRecord () from /opt/pkg/lib/libtk86.so
#6 0x00007ffffef6c168 in Ttk_ElementSize () from /opt/pkg/lib/libtk86.so
#7 0x00007ffffef5f5b1 in Ttk_NodeListSize.part.0 () from /opt/pkg/lib/libtk86.so
#8 0x00007ffffef5f5d7 in Ttk_NodeListSize.part.0 () from /opt/pkg/lib/libtk86.so
#9 0x00007ffffef5f5d7 in Ttk_NodeListSize.part.0 () from /opt/pkg/lib/libtk86.so
#10 0x00007ffffef5f5d7 in Ttk_NodeListSize.part.0 () from /opt/pkg/lib/libtk86.so
#11 0x00007ffffef616a9 in Ttk_LayoutSize () from /opt/pkg/lib/libtk86.so
#12 0x00007ffffef73de9 in TtkWidgetSize () from /opt/pkg/lib/libtk86.so
#13 0x00007ffffef73ae0 in TtkWidgetConstructorObjCmd () from /opt/pkg/lib/libtk86.so
#14 0x00007ffffeacaf98 in TclNRRunCallbacks () from /opt/pkg/lib/libtcl86.so
#15 0x00007ffffeacd0eb in TclEvalEx () from /opt/pkg/lib/libtcl86.so
#16 0x00007ffffebae5e1 in TclSubstTokens () from /opt/pkg/lib/libtcl86.so
#17 0x00007ffffeacced6 in TclEvalEx () from /opt/pkg/lib/libtcl86.so
#18 0x00007ffffeb98f68 in Tcl_FSEvalFileEx () from /opt/pkg/lib/libtcl86.so
#19 0x00007ffffeec7e6a in Tk_MainEx () from /opt/pkg/lib/libtk86.so
#20 0x000000000800098f in main ()
----/SNIP----
>How-To-Repeat:
echo 'grid [ttk::button .mybutton -text "Hello"]' > test.tcl
wish test.tcl # segfaults
pkgin install dejavu-ttf
wish test.tcl # works correctly now
>Fix:
Sounds like an upstream problem more than a pkgsrc issue, but as usual, I thought I'd report regardless.
(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.