delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/07/21/15:27:17

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E7B23893C44
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1626895635;
bh=1yIWUAldE7pnGLLGba3EUQkPluJVBZ0+1ix2W3AWz7A=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=UejwMUF+xJHsyFJrKDlrPrurUjBxHYXSAbcpYZdsN22QqeNAYK/cBYawDbwd7BcSa
fY/O+g0O02EROW1lkDbf7vLc7BP38AMfWHU7ktsb1EoCq+yRTlh4/7KChRAAWw4GEy
g9mwPZ7dCd1dZDH/b3x/22Nzz6P0lr4lv1bX8JUc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4A476385C017
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=PWuGYVJYOXSvFjTI7mYVe6R/Im84X050AZbYmRdssbLhNe1OB5wksh7RNqpxhlhwGy6REG2lABGSWro2AW5TVck6iDA0R7UorHX9l2Z4fY316HmLh7nt46EOU8SsTfUS1BQqSAV8PwQeMXXJfVqlnSnWpTdFKNNJShc2d5R/O5gnwgXHyYuguZENiM8hfyxoqAPvOxQMl9wVE7JJkKfnchxGUgBSgqVYd3pgt6D3txcS7f+7h50SElPKCY4Wrgf4iccBxfBtN9uzbNAB0KPnDF3khDIfaGV8c2KORJfEWmUERM77JR5WR5cvw0YLGsYkOorNUNVZVv2vdYsocvVy6g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=XSzr/M6/5vtLaCwKoBDqk9t+NgSGCMopfDqc0c6HqYE=;
b=G05+Z+4Qm7PGJ3uoGiRaUrMEO8YMZWB+vDKzuwQKEwz/ju8hymU6rwMw8j3+ySt9T40MFSd47xI6ynkfwxei1/moz4ChiOMT+DrQlUPCq6xN0djOV/G5yM0plq0Ak7fM4GivnHnd2E7r5JswmzNz9rh2gUB6SGu0SuSVYNDWc86FYHQ05Y5b2w1mzQvpdCJ8s0joADvBiRJoguT/7dnwMD7jG5/8A6/a40tW8sze8BAXlK3iVdl9/xqTIK9ZkvXvn38LaCJeUv5RYV2NZinPs4geIgf7jRtYGAkc4h2604xqTGPYchb9lG1T84jQgmozGgMP+I6hAIbQ7zBF+kkjEQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: postinstall: fontconfig abnormal exit
To: cygwin AT cygwin DOT com
References: <DB6PR03MB3013DDDB803E3E4B8EF8E935A4290 AT DB6PR03MB3013 DOT eurprd03 DOT prod DOT outlook DOT com>
<782011494 DOT 20200910083521 AT yandex DOT ru>
<DB6PR03MB3013D1FD4D925B12A4022E98A4270 AT DB6PR03MB3013 DOT eurprd03 DOT prod DOT outlook DOT com>
<5a2fdf46-93c8-048b-cadb-cb9d9212c716 AT SystematicSw DOT ab DOT ca>
<20200910230426 DOT 5811f3e8 AT quarternote>
<VI1PR03MB3022EBE68767183BCA4889ECA4240 AT VI1PR03MB3022 DOT eurprd03 DOT prod DOT outlook DOT com>
<DB7PR02MB39967134A1C1169A8A406BE8E7240 AT DB7PR02MB3996 DOT eurprd02 DOT prod DOT outlook DOT com>
<8f40571c-1a37-8e4b-f1bd-ecf40175d0d7 AT gmail DOT com>
<179bbaf0-02b4-1c63-0083-5fa2a8833ea9 AT cornell DOT edu>
<06e9cf44-8cc8-267e-12b3-e8a866a01c80 AT gmail DOT com>
<ee4d59c7-00d3-a2e6-fa13-04622ed8391f AT cornell DOT edu>
<87h7s45a4c DOT fsf AT Rainer DOT invalid>
<3305b90c-41f2-7377-092d-0f151a83da1c AT cornell DOT edu>
<abb3d78e-7679-db16-e219-7e32b04942c0 AT SystematicSw DOT ab DOT ca>
<9c515b79-42e2-5a9b-1996-9281f3c2b0e8 AT cornell DOT edu>
<cc8d11d5-ca74-4a0b-a108-47623088cd2a AT SystematicSw DOT ab DOT ca>
Message-ID: <e36120a8-fbc0-c603-5208-518a0ab99136@cornell.edu>
Date: Wed, 21 Jul 2021 15:26:37 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
In-Reply-To: <cc8d11d5-ca74-4a0b-a108-47623088cd2a@SystematicSw.ab.ca>
X-ClientProxiedBy: BLAP220CA0002.NAMP220.PROD.OUTLOOK.COM
(2603:10b6:208:32c::7) To BN7PR04MB4388.namprd04.prod.outlook.com
(2603:10b6:406:f8::19)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 6b9c53ba-dfb5-417b-c439-08d94c7d7753
X-MS-TrafficTypeDiagnostic: BN7PR04MB3954:
X-Microsoft-Antispam-PRVS: <BN7PR04MB39544DC112AA913F0142CA0FD8E39 AT BN7PR04MB3954 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: M0MjZX+rRUwHO9aCJAGi1ZNutpxGSeKUn1E/ErYxKs4xSinkKiW6rDUOXpUwamEwSRowzfDmrqMaPnnX8QHkH1cGmBbZjhEPDSaHgtbr1bXWsIyiAotYosGgUR4ap8z0GbGM5d30B8gsu7NDkDmoz/szeUceQygDsYkDbVaoJiAEgsRyDP4eDhYUJ+cIHqC0uvsTibMk7Az/yQPj9bIxceVt7+8eqc3eUsOZ3M7I0JcCRkzuRm7J1p48NSwIiCPgkrqPKG/HOxFEnFsiuh2OyxG4743VUZkBn5bAJpNpegrwQVIB++NaiBKVRITzgrm/N1L7cW5vDjjAUENkz3PuSgY6b3nP7+hEZxCngEyERFwYXfCYsb06owVfwV3YWJVUpwgxu7k6HP67YyrLZt0rLxKbS9TFDPpe+sbWF5OghT7QrQetGaVVoQ5ozZ17CrUF+3Mi97tKbPZlwMc08UQ3wxrzQSTMtAhHB0BfU5/CZ+unmTJYHPH9QuAEVeOzIl/laYL6J/hssSGTqPkcXvwZ7Eh+m1wV1VibZun42TgwkJ7YunP1/k3vVRJ/9XMukXLIcneYKhseJVRjJcxQmnTL0GKO0toXPVzQcsm+r6LRCB+qYBBq7qHqG/b9ewi+shJrz40cuhF1+Jjqkh8MSdVo8LoEEnR6D9nQHs/YHRBdTuyLe/kmUaaiYv/xyt5t3ZBu/uAAZvyxoO2YnYz8QN6piDsHM+4pyCj7o1jsQEwzyyA=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(366004)(6666004)(8676002)(36756003)(8936002)(186003)(83380400001)(66476007)(966005)(508600001)(5660300002)(2906002)(66556008)(66946007)(53546011)(6916009)(6486002)(31686004)(31696002)(786003)(316002)(86362001)(2616005)(75432002)(38100700002)(45980500001)(43740500002);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?Windows-1252?Q?GqjkECrHfMyl3i6P2brWqGoiWK0LNrnxbAOU+JsXEwIzxRDRKR83bVE0?=
=?Windows-1252?Q?Z/sJkmkWRQ6LmeMB3/KomrscBlsDBH32ogcPDKY8z7gyszOfCfnvccuq?=
=?Windows-1252?Q?1JSgvGwYYEk5b4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q?6cLSad4BeEvl+2bEpjSIeZyomVEHE6g/RX/o/CuZ/xWakun9PUQpp++U?=
=?Windows-1252?Q?ORGCtJ5+98Ow/YSi1FKbPg0wbVkevewgd2YBwlZBmmvATeW+RTO7skHi?=
=?Windows-1252?Q?B0IiKw0seGNNx6jbDKCfzdfRT58qgbJJgetysHWw5YeDZTkP/V0OsIQH?=
=?Windows-1252?Q?zFMVCaRCC7nQ4Qq/i8+GyhoeyOR9OeKRxTG/vIjGCUqwy+ZECyxlLKEL?=
=?Windows-1252?Q?8Bd3T58RIEXUC1u/0pwy0dLTa4/wFvuR3D8p5/uL3ZgBbWiLgpMh0ECf?=
=?Windows-1252?Q?O9b2HLH3tr2sBrSp8Ac7GnMqE5Z0qMETfGchEO/+pe6j2oq9eaQmqXtt?=
=?Windows-1252?Q?IHRCmqAZ5O78hvDclmZ95kO0d0hkcIIFvJ2tbwPPZvcn43bPZKvyCVIK?=
=?Windows-1252?Q?hWLjNa9vKiV2oOjrVijLwEagTlOjxtafztfjui391iTM5sFogaake4gQ?=
=?Windows-1252?Q?2J8R454y?=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 6b9c53ba-dfb5-417b-c439-08d94c7d7753
X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2021 19:26:40.7326 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: Qiu17xGoly/Ts5Ap4VfAooQMMITjHJ9RTlZy7BL2aZ+w92CdRDAaNyCWVzDVaKuCzAeLXo3W3ddi06sGI14KXg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR04MB3954
X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, MSGID_FROM_MTA_HEADER, NICE_REPLY_A,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On 7/20/2021 1:00 PM, Brian Inglis wrote:
 > On 2020-09-12 06:56, Ken Brown via Cygwin wrote:
> For fontconfig fc-cache-1 appears to have been creating thousands (on Cygwin 64 
> millions) of small <1KB 
> /var/cache/fontconfig/%8x-%4x-%4x-%4x-%12x-le{64,32d8}.cache-7 files.
> 
> The problems could have originally been caused by an old bug:
> 
> https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/107
> 
> combined with many font additions around that time, mainly working on Cygwin 64, 
> where I use X, and manually run fontconfig postinstall script, to try to avoid 
> long setup postinstalls, whereas on Cygwin 32 I don't use X or manually run 
> postinstall scripts, just get run after setup.
> 
> I have about 200 Windows MS font files, 1000 non-MS font files, and about 800 
> Cygwin font files, from multiple distros and elsewhere, including some with full 
> BMP coverage, some with SMP coverage, some for fallback code points, others with 
> group ranges.
> 
> I rm'ed -rf /var/cache/fontconfig/ with a few thousand files on Cygwin 32 and 
> rebuilt it okay with only 65 cache files.
> 
> I tried rm -rf /var/cache/fontconfig/ on Cygwin 64 but got many permission 
> errors and killed it.

The preremove script for libfontconfig1 should remove all those cache files 
every time libfontconfig1 is updated, so you should have gotten a fresh start 
every once in a while.  Apparently something went wrong.

> I gave up waiting for ls -U to show any results on Cygwin 64 or Explorer on that 
> dir to show any file details, but cmd /c dir | less displays the base info for 
> hundreds of thousands of files, and wc reports millions.
> 
> I am still waiting for an elevated cmd to rmdir /s /q fontconfig there!
> 
> Do you know why fc-cache-1 is run rather than fc-cache and what the difference is?

They're identical.  It's just a packaging issue.  fc-cache is in the fontconfig 
package, and fc-cache-1 is in the libfontconfig1 package.  That way fc-cache-1 
is available for use in postinstall scripts for users who install libfontconfig1 
(probably because something requires it) but not fontconfig.

> What would give you useful information once I have the fontconfig cache cleared?
> Might running FC_DEBUG=65535 fc-cache-1 -fsv provide useful info?
> Or do so with strace?
> Would running file on the font files give enough info about properties to be of 
> any help?

I'm not an expert on fontconfig, so I probably can't help.

> What is the best approach to get the minimal cache files recreated?

I would expect that this would always happen as a result of running setup and 
letting the preremove/postinstall scripts do their job.  I don't know what went 
wrong in your case.

> What is the best approach to avoid thousand of cache files in future?

Again, I don't know why that happened in the first place.

Ken

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019