From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eyal Lotem Newsgroups: gmane.emacs.bugs Subject: bug#22976: 24.5; setting unread-command-events to non cons puts emacs in 100% CPU use Date: Thu, 10 Mar 2016 12:34:08 +0200 Message-ID: References: <838u1qmxz5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bf10ad6c644a1052daf5a74 X-Trace: ger.gmane.org 1457606144 23843 80.91.229.3 (10 Mar 2016 10:35:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2016 10:35:44 +0000 (UTC) Cc: Andreas Schwab , 22976@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 10 11:35:33 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1adxwG-0006QI-JJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Mar 2016 11:35:28 +0100 Original-Received: from localhost ([::1]:47514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxwF-0000vr-Vf for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Mar 2016 05:35:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxvu-0000Na-9I for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 05:35:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adxvp-0002Ln-TJ for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 05:35:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxvp-0002Lj-RI for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 05:35:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1adxvp-0000oN-Nf for bug-gnu-emacs@gnu.org; Thu, 10 Mar 2016 05:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eyal Lotem Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Mar 2016 10:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22976 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22976-submit@debbugs.gnu.org id=B22976.14576060573065 (code B ref 22976); Thu, 10 Mar 2016 10:35:01 +0000 Original-Received: (at 22976) by debbugs.gnu.org; 10 Mar 2016 10:34:17 +0000 Original-Received: from localhost ([127.0.0.1]:42304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxv6-0000nN-QZ for submit@debbugs.gnu.org; Thu, 10 Mar 2016 05:34:17 -0500 Original-Received: from mail-wm0-f54.google.com ([74.125.82.54]:33674) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adxv4-0000n7-MZ for 22976@debbugs.gnu.org; Thu, 10 Mar 2016 05:34:14 -0500 Original-Received: by mail-wm0-f54.google.com with SMTP id l68so22530954wml.0 for <22976@debbugs.gnu.org>; Thu, 10 Mar 2016 02:34:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=mlnKjC1pGfOy0PCzr9UZ8E1v0EZ9n+/kI4qUxoKsWlg=; b=eiuoyNC+zZYYRf3LOl2nV2BBTX+4Be2XSf+DF9bSbe6DDrHp5U/2z3YsHoLTMbjgPA +CCqvbOEe4OKLUy4cFCzLM4EPvycRb75Ipck4hpQDsUuDL1f6rj9E4eE1UALtL4cXc2V axg6rnTYLuANgZAQ4gnnUJEPMA9BN5HQzFnZa9LL1oaTJv1NKxt3avbXFflCMVL3dm86 Xq24F5Uq5YIpc/tk4dTwxaxPnBhIYlDkgX4wrmVBAQxyQggVQDeoyBAlimINdDbH4PX+ wHgRRhNMBOzvOTHWeouZYDS3rbyjprxrLxZ9cO38eOL2C5PPVeY23qOPF1VLXpfgJstO P3tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=mlnKjC1pGfOy0PCzr9UZ8E1v0EZ9n+/kI4qUxoKsWlg=; b=YFVWVWdLjELR0r1kR+/DK9qtPxkBGfydgbVfknLn130ubVuI1PS86l0xCkl0/d+1w+ TX4wu33q9fJ8vK0DirxHFp8U6G+7WAI3C497hw2+HUWR55BBL6Az5nsgWCHG33waGZlm 9NiouvTk+sqbRRSRj/Ec/JsQgxVY6G04xmTp8NiLW7xSrWRQG8lVjDJ/FKRawKm88+tk nFPU+ifHnh4QH1YCsyHl7z66I9AqqrcYWINozSRl5TKKumyIZfCAjoybuL9m6v8jrJJg cJlFCxj8MbEKFOq8gLhPxYpd4/+j/GDr1YkUZx2KgO303+3laL/v6bsDfwP2M9TX8THe LsDw== X-Gm-Message-State: AD7BkJJsO59WQPhOkRBXhe+++RLJY0yrYMjun9PrS3g+MDqcLTtX9A9Dnv4B0qVf5TE4pFI9ZIktLFWOFL8UrA== X-Received: by 10.194.103.5 with SMTP id fs5mr2931253wjb.42.1457606049021; Thu, 10 Mar 2016 02:34:09 -0800 (PST) Original-Received: by 10.28.94.66 with HTTP; Thu, 10 Mar 2016 02:34:08 -0800 (PST) In-Reply-To: <838u1qmxz5.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:114701 Archived-At: --047d7bf10ad6c644a1052daf5a74 Content-Type: text/plain; charset=UTF-8 It can be set to any value at all, unfortunately. The problem now is that non-cons/non-nil values are ignored. The loop to repeatedly thinks there's input so it consumes 100% cpu, each iteration seeing that it isn't a cons cell, so there's "nothing to do". On Thu, Mar 10, 2016 at 12:25 PM, Eli Zaretskii wrote: > > From: Andreas Schwab > > Date: Thu, 10 Mar 2016 10:42:53 +0100 > > Cc: 22976@debbugs.gnu.org > > > > Eyal Lotem writes: > > > > > As can be reproduced easily: > > > > > > (setq unread-command-events 1) -- emacs now at 100% CPU > > > (setq unread-command-events nil) -- emacs OK again > > > > Don't do that then. > > Can unread-command-events be anything but nil or a cons cell? If not, > we could change the few tests of the value to explicitly ignore > non-nil, non-cons values. Do you see any immediate problems with such > a change? > > Thanks. > -- Eyal --047d7bf10ad6c644a1052daf5a74 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It can be set to any value at all, unfortunately.

=
The problem now is that non-cons/non-nil values are ignored.
The loop to repeatedly thinks there's input so it consumes 100% = cpu, each iteration seeing that it isn't a cons cell, so there's &q= uot;nothing to do".

On Thu, Mar 10, 2016 at 12:25 PM, Eli Zaretskii <eliz@gn= u.org> wrote:
> From: An= dreas Schwab <schwab@suse.de> > Date: Thu, 10 Mar 2016 10:42:53 +0100
> Cc: 22976@debbugs.gnu.org=
>
> Eyal Lotem <eyal.lotem@gmai= l.com> writes:
>
> > As can be reproduced easily:
> >
> > (setq unread-command-events 1) -- emacs now at 100% CPU
> > (setq unread-command-events nil) -- emacs OK again
>
> Don't do that then.

Can unread-command-events be anything but nil or a cons cell?=C2=A0 = If not,
we could change the few tests of the value to explicitly ignore
non-nil, non-cons values.=C2=A0 Do you see any immediate problems with such=
a change?

Thanks.



--
Eyal
--047d7bf10ad6c644a1052daf5a74--