From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#44349: 28.0.50; Assertion failure on macOS when resizing frame Date: Sun, 1 Nov 2020 00:55:29 +0000 Message-ID: <20201101005529.GO59267@breton.holly.idiocy.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35676"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44349@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 01 01:56:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kZ1fF-0009BW-JD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Nov 2020 01:56:09 +0100 Original-Received: from localhost ([::1]:60478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZ1fE-0008LQ-Lf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 20:56:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZ1f8-0008LJ-2X for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 20:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZ1f7-0006PH-Pa for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 20:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZ1f7-0006D4-Nf for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 20:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Nov 2020 00:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44349 X-GNU-PR-Package: emacs Original-Received: via spool by 44349-submit@debbugs.gnu.org id=B44349.160419214023836 (code B ref 44349); Sun, 01 Nov 2020 00:56:01 +0000 Original-Received: (at 44349) by debbugs.gnu.org; 1 Nov 2020 00:55:40 +0000 Original-Received: from localhost ([127.0.0.1]:34971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZ1el-0006CO-RC for submit@debbugs.gnu.org; Sat, 31 Oct 2020 20:55:40 -0400 Original-Received: from wilbur.contactoffice.com ([212.3.242.68]:54300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZ1ej-0006C8-Iv for 44349@debbugs.gnu.org; Sat, 31 Oct 2020 20:55:38 -0400 Original-Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24]) by wilbur.contactoffice.com (Postfix) with ESMTP id DCFA9B5E; Sun, 1 Nov 2020 01:55:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1604192130; s=20200222-6h9o; d=idiocy.org; i=alan@idiocy.org; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To; l=1350; bh=gzfP3uyeCZbLRNwwdxcO63AISwOdZhclOCjaRvtjIOY=; b=erMs3XIiX8UJ5jJhf8uiWPHJ8VlwhEu8mQWoSvgmzYuDhkLkD6WiaBgEDWWsZOGs 838ExV52ChRnyDXAOAX3N9JpI5iqEWWNgUTbFGwlmJUTE8Q2PPw9Fr3xGuXxC6PIQM/ xeKEkdQbp1Lw+wF8n0tndJXK16URJIuDN7l8UBlluvCr/+3Kt1nHbj37kYnA2fdhCxs o0D6PD1cKsac5RiE8s++lTZkygnQaAEVZTKAiEW/0x9KOeyHHuZIPxttNjQN6zPjFzP dh8joPrus1tApvni8qYSfZHBv9YBuQLIcJhJdgMVQoP1iEckxybuoXpHMZ2WncoV2/G CnXtBjqqCg== Original-Received: by smtp.mailfence.com with ESMTPA ; Sun, 1 Nov 2020 01:55:29 +0100 (CET) Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 56EEC20264C1D0; Sun, 1 Nov 2020 00:55:29 +0000 (GMT) Mail-Followup-To: Alan Third , Philipp Stephani , 44349@debbugs.gnu.org Content-Disposition: inline In-Reply-To: X-ContactOffice-Account: com:241649512 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192322 Archived-At: On Sat, Oct 31, 2020 at 04:57:54PM +0100, Philipp Stephani wrote: > Am Sa., 31. Okt. 2020 um 16:53 Uhr schrieb Philipp : > > > > > > 1. Compile Emacs with assertions enabled on macOS. > > 2. Start it in graphical mode. > > 3. Try to resize the frame by dragging the lower-right corner. > > > > This will trigger an assertion failure > > > > doprnt.c:493: Emacs fatal error: assertion failed: ASCII_CHAR_P (fmtchar) > > Fatal error 6: Aborted > > Abort trap: 6 > > > frame #8: 0x00000001004a8bec emacs`die(msg="ASCII_CHAR_P > (fmtchar)", file="doprnt.c", line=493) at alloc.c:7341:3 > frame #9: 0x00000001003c9a9e emacs`doprnt(buffer="*scratch* ", > bufsize=9223372036854775797, format="%s — (%d x %d)", > format_end=0x0000000000000000, ap=0x00007ffeefbfb750) at > doprnt.c:493:4 > frame #10: 0x00000001003ca54d emacs`esprintf(buf="*scratch* ", > format="%s — (%d x %d)") at doprnt.c:535:12 > frame #11: 0x000000010044364f emacs`-[EmacsView > windowWillResize:toSize:](self=0x0000000101463a70, > _cmd="windowWillResize:toSize:", sender=0x0000000101464810, > frameSize=(width = 598, height = 570)) at nsterm.m:7286:2 Hmm, it's this line: esprintf (size_title, "%s — (%d x %d)", old_title, cols, rows); where old_title is UTF8. What is the right thing to do here? -- Alan Third