From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Why does this thread code crash my emacs? Date: Fri, 15 Oct 2021 22:17:12 +0300 Message-ID: <83lf2uhzd3.fsf@gnu.org> References: <87pms6jmuk.fsf@ddavies.net> <87mtnajfdm.fsf@dick> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31492"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ddavies@ddavies.net, emacs-devel@gnu.org To: dick Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 15 21:21:07 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mbSlP-0007yb-Bk for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Oct 2021 21:21:07 +0200 Original-Received: from localhost ([::1]:46862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbSlN-00013j-Qh for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Oct 2021 15:21:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbShe-00036Q-PP for emacs-devel@gnu.org; Fri, 15 Oct 2021 15:17:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42982) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbShd-00060E-U3; Fri, 15 Oct 2021 15:17:14 -0400 Original-Received: from [87.69.77.57] (port=4815 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbShd-0007zW-Em; Fri, 15 Oct 2021 15:17:13 -0400 In-Reply-To: <87mtnajfdm.fsf@dick> (message from dick on Fri, 15 Oct 2021 14:45:57 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277140 Archived-At: > From: dick > Date: Fri, 15 Oct 2021 14:45:57 -0400 > Cc: emacs-devel@gnu.org > > Yes, I've for a while noticed "s q" (thread-list-send-quit-signal) from > `list-threads` produces crashes. > > I've entered a stopgap patch in bug#51229. The more correct fix is to get rid > of a 1991 boolean called "waiting_for_input" but that bill would be much > tougher to pass politically. There's nothing political about it. That variable is part of a complex state machine used for Emacs input, and to remove it, we'd need to understand very well when and why it was needed when it was introduced. Don't forget that on TTYs we actually handle SIGINT as part of keyboard input, and waiting_for_input has a role in that case. IOW, instead of blaming the Emacs development to have some political issues, why not present a serious analysis of this issue which led you to the conclusion that the variable can be removed? Who knows? we could even (gasp!) accept your analysis.