From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Crashing the new thread code Date: Sun, 11 Dec 2016 22:34:28 +0200 Message-ID: <83twaacii3.fsf@gnu.org> References: <87h96a2tyi.fsf@irif.fr> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1481488456 24414 195.159.176.226 (11 Dec 2016 20:34:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2016 20:34:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juliusz Chroboczek Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 11 21:34:11 2016 Return-path: Envelope-to: ged-emacs-devel@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 1cGAoy-000519-Tx for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 21:34:09 +0100 Original-Received: from localhost ([::1]:57075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGAp3-0001Cn-9P for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2016 15:34:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGAox-0001Ci-9s for emacs-devel@gnu.org; Sun, 11 Dec 2016 15:34:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGAou-00049B-70 for emacs-devel@gnu.org; Sun, 11 Dec 2016 15:34:07 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGAou-000496-3i; Sun, 11 Dec 2016 15:34:04 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3403 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cGAos-0002b4-Dg; Sun, 11 Dec 2016 15:34:03 -0500 In-reply-to: <87h96a2tyi.fsf@irif.fr> (message from Juliusz Chroboczek on Sun, 11 Dec 2016 19:37:09 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210312 Archived-At: > From: Juliusz Chroboczek > Date: Sun, 11 Dec 2016 19:37:09 +0100 > > Running 26.0.50.7 on Linux/AMD64. The following immediately crashes > Emacs: > > (let ((thread (make-thread #'(lambda () (while t (thread-yield)))))) > (thread-signal thread 'error nil)) What is the semantics of signaling a thread that yields? What did you expect to happen? Of course, Emacs shouldn't exit, but what should it do in this case? Thanks.