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: Thu, 23 Feb 2017 19:15:10 +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> <83h93nthka.fsf@gnu.org> <8337f4ubfj.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 1487877374 20237 195.159.176.226 (23 Feb 2017 19:16:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 19:16:14 +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 Thu Feb 23 20:16:10 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 1cgys4-0004fG-8s for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 20:16:08 +0100 Original-Received: from localhost ([::1]:60502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgysA-00085n-76 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 14:16:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgys1-000844-Tz for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 14:16:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgyry-0005RA-Nw for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 14:16:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55072) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgyry-0005R0-Kp for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 14:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgyry-0002S9-AJ for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 14:16: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: Thu, 23 Feb 2017 19:16: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.14878773489399 (code B ref 25279); Thu, 23 Feb 2017 19:16:02 +0000 Original-Received: (at 25279) by debbugs.gnu.org; 23 Feb 2017 19:15:48 +0000 Original-Received: from localhost ([127.0.0.1]:53271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgyrk-0002RX-2p for submit@debbugs.gnu.org; Thu, 23 Feb 2017 14:15:48 -0500 Original-Received: from mail-ua0-f180.google.com ([209.85.217.180]:35667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgyri-0002RI-8G for 25279@debbugs.gnu.org; Thu, 23 Feb 2017 14:15:46 -0500 Original-Received: by mail-ua0-f180.google.com with SMTP id 40so294989uau.2 for <25279@debbugs.gnu.org>; Thu, 23 Feb 2017 11:15:46 -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=SwD7uWXUOcGGTp2QI3NfRsZfl1QRYM5imqgYmga/Cls=; b=m38XFI1ceaKGDwNcVpBP9vvV6vAiNH4KDyZxuyhlpUumNwzwxBaKyIlIDitowjNuLE qwBlvJGeY2jCbo9qXHYJtRGGPGADUifzlemjmy+6ffHaARbpFqgcGcGszbwIjRDW4L0I Fw5NBNCZKE6gRDC+btwNdxWCjMpV8i0srZMyib0bWMYr74mocVVu9VcZ7d+YUVbynvoH D/DetgmeAMDmBO/bTQTFA46btiwI4SagbSsF63j3VhMY2VN3iTNCXAuOAiJhvGvM1sr3 VHADuajTWG5/Gu96DAVgOKCnDTczCEhvtWDxj1uw2+ZurUbC+u347e5RpY0uV/46XuQx wGIw== 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=SwD7uWXUOcGGTp2QI3NfRsZfl1QRYM5imqgYmga/Cls=; b=d46sc/3zDEexBvLK3m+4ou1/sC++YzyuhiBBHPdhRgzabxEwkeUMQPl7gF0dM5tXWr nGdhn4fKE7QKME+ypn9Ch84xpZNKQZoekVmm9Mmfoz7rmhDIKJwaYUCIKur6GJtr92eV faOVjf7lu+3o2Tditw4y3i6AGlfu6TVau/7mWwA7jBPjZUuucB8XxbASK0Y17MP8bPqs N6wcVTP9UCuCVhOfS4zdxJkopzFioENGrdJ+tzTxFzq3lOXkKQU3p/QVn7AxtNgIxFy4 Wl8RXBVOo+O/nMwEQyR3nrOLEevHdSQhEsYx84AA34I6AX3MmXHt851VRlZwQMKBBzd3 YYOA== X-Gm-Message-State: AMke39nu5VGm49Gh8K1ybxkdCj35uXOVnJ6lLuhV5dydCcB2pekFNdy+HodbTQC9KNiZ1FLmxKNQrlbvXHnyJg== X-Received: by 10.159.33.4 with SMTP id 4mr22245815uab.156.1487877340643; Thu, 23 Feb 2017 11:15:40 -0800 (PST) Original-Received: by 10.159.37.33 with HTTP; Thu, 23 Feb 2017 11:15:10 -0800 (PST) In-Reply-To: <8337f4ubfj.fsf@gnu.org> 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:129697 Archived-At: On 23 February 2017 at 16:19, Eli Zaretskii wrote: >> Date: Tue, 21 Feb 2017 22:28:05 +0200 >> From: Eli Zaretskii >> Cc: 25279@debbugs.gnu.org >> >> > From: Richard Copley >> > Date: Tue, 21 Feb 2017 20:05:28 +0000 >> > Cc: 25279@debbugs.gnu.org >> > >> > 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". * >> >> Thanks. >> >> > 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? >> >> The former, I guess. I will take a look when I have time. > > I think I found the reason: due to C-g, we were jumping to top-level > while in a critical section, which is a very bad idea, because any > non-main thread that tries to acquire the critical section after that > will necessarily hang. > > Please try the latest master and see if any such hangs are still > there. Great, thank you. Sounds like your changes potentially eliminate a fairly broad class of errors. In terms of testing I can't say much about any other hangs (I would if I could!), but that one recipe no longer hangs for me. > Thanks for the recipe, it made it quite easy to catch the villain > red-handed. Nice to know.