From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#25279: 26.0.50; Slowdown/crash on certain characters Date: Tue, 21 Feb 2017 20:05:28 +0000 Message-ID: References: <83vau6wi7r.fsf@gnu.org> <83tw9qwh4z.fsf@gnu.org> <83lgv1x2et.fsf@gnu.org> <838tr1wlg4.fsf@gnu.org> <837f6lwkju.fsf@gnu.org> <8360m5wj8z.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1487707641 32061 195.159.176.226 (21 Feb 2017 20:07:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 21 Feb 2017 20:07:21 +0000 (UTC) Cc: 25279@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 21 21:07:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgGiP-0007tY-SI for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2017 21:07:14 +0100 Original-Received: from localhost ([::1]:48235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgGiV-0004Kx-DC for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Feb 2017 15:07:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgGiI-0004Iz-2z for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 15:07:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgGiE-0005WL-Up for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 15:07:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgGiE-0005WF-S6 for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 15:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgGiE-0003T8-Js for bug-gnu-emacs@gnu.org; Tue, 21 Feb 2017 15:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Feb 2017 20:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25279-submit@debbugs.gnu.org id=B25279.148770756613267 (code B ref 25279); Tue, 21 Feb 2017 20:07:02 +0000 Original-Received: (at 25279) by debbugs.gnu.org; 21 Feb 2017 20:06:06 +0000 Original-Received: from localhost ([127.0.0.1]:49246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgGhK-0003Ru-IN for submit@debbugs.gnu.org; Tue, 21 Feb 2017 15:06:06 -0500 Original-Received: from mail-ua0-f180.google.com ([209.85.217.180]:36850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgGhJ-0003RQ-1O for 25279@debbugs.gnu.org; Tue, 21 Feb 2017 15:06:05 -0500 Original-Received: by mail-ua0-f180.google.com with SMTP id x24so20084697uae.3 for <25279@debbugs.gnu.org>; Tue, 21 Feb 2017 12:06:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fN883PwCzt/HRNSfn+EaF2EuRw7A0t9xnYWq1EKqY4o=; b=Y5cbyglY04fBv8SQPBJaWKFbrSrGXiiB2cia5lJMDX21myZEmaxgxc8JZiPrboC98J eSTPiMY6iOqV5BRgvo6InF9wqAu8rWycrKHOPmNckhJ1Rx+wFLCG/XsPBqyiQ8usdezj jKSIBMp5t2dEpJjsyffZgBGY6s2cXrNklGMZDDicaQUd4fVAMYHjIk7zVP1f/xaFRsg+ tdB3XZVtn0xvHrJ0C42hndHIbKQfoQ/OEFV0s8B2jLZs0I+pl0KaQEMrGUHerUwrqvHB Oa9mkYcpigYa5bMmgFQKryaK3XyHv1nlA02bAtXbh//Ztv5kDUOTuxDec3K5WSRmrqP2 ZkUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fN883PwCzt/HRNSfn+EaF2EuRw7A0t9xnYWq1EKqY4o=; b=WrohFo0sEByUnmOoGEC1/WWXYIpnFkN4osZ0gNfvoXvFkWNDcxt0bIffOmgYmI2bzK PyJlJxa4/qYmtg1EnYToYg2QKPhmxB7QEBTU4VtInTSVJkcbDYzo3f1U5cphBp7LQsp7 +1h3pKdqKxTaR2MwsJ8CMHov3k4ro7F71eYMPJOZWhABMpP7pgXtPA4F/afYcWTHp4lF sWYqEyKrg3V4DH1jEbPVKbIWjU0whXmHjNpVDblwriTA1k+XrhOW7Eh5QCKl05FBun8S Ui3m5TU6VGr0byoJQxw0iluanvWjzd3JfY9VqizbWpO3Js/o+uohXl/dwskFf/WHkhhS etHw== X-Gm-Message-State: AMke39kBvXZvidWaM0y4KbSBcFo+yPDcMHXpg6cH6eleh013jVqQ5/20LFsJ1lxgzkRh8BzWcJDS5smGrMBvUA== X-Received: by 10.159.33.4 with SMTP id 4mr15708029uab.156.1487707559419; Tue, 21 Feb 2017 12:05:59 -0800 (PST) Original-Received: by 10.159.37.33 with HTTP; Tue, 21 Feb 2017 12:05:28 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129628 Archived-At: > From "runemacs -Q": > Type "M-x insert-char RET MUSIC SPC FLAT SPC SIGN RET" (or whatever character). > Observe that moving point past the character is very slow. > In quick succession: > 1. Type C-f to move point past the character. > 2. Type C-g to signal quit. Here's how to make Emacs hang without the need to uninstall any fonts, on Windows (not reproducible on GNU/Linux). 1. Type "M-x view-hello-file" (don't press return). 2. In quick succession, type "C-m" and then "C-g". * (* It is faster to type "C-m C-g" than "RET C-g".) On 27 December 2016 at 14:15, Eli Zaretskii wrote: > I think I see what's happening: it's a deadlock. When you type C-g, > the input thread (which receives all keyboard input from Windows), > sets the quit-flag, then attempts to send the C-g character to the > main thread. To send the message, it tries to enter critical section, > and waits for it. Meanwhile, the main thread tries to tell the input > thread to draw the scroll bar, and calls SendMessage for that. > SendMessage waits for the input thread to receive the message, but the > input thread is stuck waiting for the main thread to exit the critical > section. Eli, should I retitle this bug to "26.0.50; calling SendMessage inside critical section causes deadlock", or close this bug as a duplicate of the other "slow fonts on Windows" bugs and file a new report about the hanging? Emacs master has a pronounced tendency to hang in various other circumstances too.