NetBSD Problem Report #53243

From www@NetBSD.org  Tue May  1 09:10:53 2018
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 003897A214
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  1 May 2018 09:10:52 +0000 (UTC)
Message-Id: <20180501091051.EF21C7A219@mollari.NetBSD.org>
Date: Tue,  1 May 2018 09:10:51 +0000 (UTC)
From: abs@absd.org
Reply-To: abs@absd.org
To: gnats-bugs@NetBSD.org
Subject: noto-ttf hangs X or fc-cache on netbsd-8
X-Send-Pr-Version: www-1.0

>Number:         53243
>Category:       xsrc
>Synopsis:       noto-ttf hangs X or fc-cache on netbsd-8
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 01 09:15:00 +0000 2018
>Originator:     David Brownlee
>Release:        NetBSD 8.0_RC1
>Organization:
>Environment:
NetBSD forsaken.absd.org 8.0_RC1 NetBSD 8.0_RC1 (GENERIC.201804230600Z) amd64

>Description:
Installing the noto-ttf package causes issues with the 8.0 X11R7 font handling. Specifically both X and fc-cache from /usr/X11R7 will hang indefinitely reading font data. fc-cache from pkgsrc is fine.

This could have been filed as pkg or xsrc, but assuming xsrc makes more sense as its an easy way to mess up an 8.x box

bt from fc-cache

#0  0x00007332c5e3e22a in read () from /usr/lib/libc.so.12
#1  0x00007332c5efecc4 in __sread () from /usr/lib/libc.so.12
#2  0x00007332c5ef484c in __srefill () from /usr/lib/libc.so.12
#3  0x00007332c5ed4a29 in fseeko () from /usr/lib/libc.so.12
#4  0x00007332c666766f in ?? () from /usr/X11R7/lib/libfreetype.so.18
#5  0x00007332c6661f4f in FT_Stream_Seek () from /usr/X11R7/lib/libfreetype.so.18
#6  0x00007332c664b0a0 in ?? () from /usr/X11R7/lib/libfreetype.so.18
#7  0x00007332c664ce30 in ?? () from /usr/X11R7/lib/libfreetype.so.18
#8  0x00007332c6651a99 in ?? () from /usr/X11R7/lib/libfreetype.so.18
#9  0x00007332c6663574 in FT_Load_Glyph () from /usr/X11R7/lib/libfreetype.so.18
#10 0x00007332c6a1508b in ?? () from /usr/X11R7/lib/libfontconfig.so.2
#11 0x00007332c6a15718 in ?? () from /usr/X11R7/lib/libfontconfig.so.2
#12 0x00007332c6a16fff in IA__FcFreeTypeQueryFace () from /usr/X11R7/lib/libfontconfig.so.2
#13 0x00007332c6a1788e in IA__FcFreeTypeQuery () from /usr/X11R7/lib/libfontconfig.so.2
#14 0x00007332c6a1878f in FcFileScanConfig () from /usr/X11R7/lib/libfontconfig.so.2
#15 0x00007332c6a18a20 in ?? () from /usr/X11R7/lib/libfontconfig.so.2
#16 0x00007332c6a18bd3 in FcDirCacheScan () from /usr/X11R7/lib/libfontconfig.so.2
#17 0x00007332c6a1d67d in ?? () from /usr/X11R7/lib/libfontconfig.so.2
#18 0x00007332c6a1d71d in IA__FcConfigBuildFonts () from /usr/X11R7/lib/libfontconfig.so.2
#19 0x00007332c6a1d79c in IA__FcConfigSetCurrent () from /usr/X11R7/lib/libfontconfig.so.2
#20 0x00000001dfc01e84 in main ()

>How-To-Repeat:
Install 8.0_RC1
Install noto-ttf-20170410 from pkgsrc
run X or fc-cache from /usr/X11R7/bin
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.