From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Elias =?UTF-8?Q?M=C3=A5rtenson?= Newsgroups: gmane.emacs.bugs Subject: bug#25172: 26.0.50; Concurrency feature, sit-for doesn't work (crashing and unexpected behaviour) Date: Wed, 14 Dec 2016 10:58:36 +0800 Message-ID: References: <838trme4jr.fsf@gnu.org> <838trlcals.fsf@gnu.org> <83vauobiou.fsf@gnu.org> <83fulrbxsd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c084b70621256054395833f X-Trace: blaine.gmane.org 1481684354 4422 195.159.176.226 (14 Dec 2016 02:59:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2016 02:59:14 +0000 (UTC) Cc: 25172@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 14 03:59:11 2016 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 1cGzmf-0000Io-Rk for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Dec 2016 03:59:10 +0100 Original-Received: from localhost ([::1]:45182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGzmj-0005SI-Pc for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2016 21:59:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGzmc-0005Ln-OU for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 21:59:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGzmY-0006nr-Rt for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 21:59:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54071) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGzmY-0006nl-OK for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 21:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cGzmY-00081A-Ep for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 21:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Elias =?UTF-8?Q?M=C3=A5rtenson?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Dec 2016 02:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25172 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25172-submit@debbugs.gnu.org id=B25172.148168432530795 (code B ref 25172); Wed, 14 Dec 2016 02:59:02 +0000 Original-Received: (at 25172) by debbugs.gnu.org; 14 Dec 2016 02:58:45 +0000 Original-Received: from localhost ([127.0.0.1]:41237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGzmG-00080d-O1 for submit@debbugs.gnu.org; Tue, 13 Dec 2016 21:58:44 -0500 Original-Received: from mail-qk0-f173.google.com ([209.85.220.173]:33859) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGzmE-00080N-Nc for 25172@debbugs.gnu.org; Tue, 13 Dec 2016 21:58:43 -0500 Original-Received: by mail-qk0-f173.google.com with SMTP id q130so6500894qke.1 for <25172@debbugs.gnu.org>; Tue, 13 Dec 2016 18:58:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=D593N0AhaPapj6RljfSAY4faoMp2i7up6vOLhq5Htcs=; b=gnNEkfyLdIYydX6Zen4xRqkiML5DdYu0raE2VzPy9nMHX7oX2bpEaRw7qirzgKcQW3 pAwxty7b8kP6y/qWyDOtZOkvw1nAvHLTN0uTLVIlzp04itaCnp0DOo1fe8c4XEMSDEH6 LCdZ7HlAAWbhqjyNb39ySpVlyqCxKsnmt4lYu1ZW77a6SGcrE2coYRdzQF24K1MeoON4 cevMk+rYdfE6+DEpqsnJAzKzf6AQ2i4Rw+x3aqyJm3ncUkz0uDG3C7w3UUuxAF+v9YIa fPKldKrNv8BJmmw6djtsKdnpTckXbGjKIm8Vqi4DSXnkgsu573dLE3MUnx4YEb3y96yH GOPA== 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=D593N0AhaPapj6RljfSAY4faoMp2i7up6vOLhq5Htcs=; b=c6s/tVNrRAGLMbTBIM5PlN8WQ0kyI90Ky3cFzBoa+QxP5whrzSQNmb1VGaZ6vIQOv5 cNSVIycZEQz/IqoIxmuqpqLSPmCODHntxk8ugEpcScxDfv4D3ADLK+QfuLBjHwN/cSlJ MvdpgZl/ujgzy2obK5MZa5zi7+pFBBtqFhod09TqdMuOUH/jiOWaNwtLYGj+qyT5+N2A y0c3K/3G2D7IzOUNz6v1YAd5GvWq7LeC/r1ombZVoyCcDDQKPmI5/ycAjyxgYfZRNDtl NEbdgirFi0XqbMHyB+zn5+2SM9Fx2qqby83mJbOFXlkh17iusrwyhO7npy2196JmoSSd MKlQ== X-Gm-Message-State: AKaTC02vrguXfYGZhouag8NS7eUq92a9Of48nk1fFc/bt6upiKm5trl7sq1FFsWBbYbE1k/hOMJ/f9thgvMccw== X-Received: by 10.55.143.199 with SMTP id r190mr95629965qkd.72.1481684316982; Tue, 13 Dec 2016 18:58:36 -0800 (PST) Original-Received: by 10.55.110.5 with HTTP; Tue, 13 Dec 2016 18:58:36 -0800 (PST) In-Reply-To: <83fulrbxsd.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:127017 Archived-At: --94eb2c084b70621256054395833f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 14 December 2016 at 00:26, Eli Zaretskii wrote: > > From: Elias M=C3=A5rtenson > > Date: Tue, 13 Dec 2016 12:16:41 +0800 > > Cc: Cl=C3=A9ment Pit--Claudel , > > 25172@debbugs.gnu.org > > > > This is the output from the SIGABRT case. Again, there is a lot of > information before the actual "bt full" output: > > This shows exactly the situation which I imagined could happen: 3 > threads, including the main thread, all running the code in xg_select > which calls unblock_input, and aborting due to the block level being > negative. > > Can you try removing the calls to block_input/unblock_input from > xgselect.c, and see if these crashes then stop? > I have tried this now, and it's much more stable now. It doesn't immediately crash, and sometimes it doesn't crash at all. When it crashes, it does so after several seconds, and I have captured two of these crashes. I will post these backtraces in the following two emails. Regards, Elias --94eb2c084b70621256054395833f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 1= 4 December 2016 at 00:26, Eli Zaretskii <eliz@gnu.org> wrote:
=
> From: Elias M=C3=A5rtenson <lokedhs@gmail.com>
> Date: Tue, 13 Dec 2016 12:16:41 +0800
> Cc: Cl=C3=A9ment Pit--Claudel <clement.pit@gmail.com>,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0251= 72@debbugs.gnu.org
>
> This is the output from the SIGABRT case. Agai= n, there is a lot of information before the actual "bt full" outp= ut:

This shows exactly the situation which I imagined could happen: 3 threads, including the main thread, all running the code in xg_select
which calls unblock_input, and aborting due to the block level being
negative.

Can you try removing the calls to block_input/unblock_input from
xgselect.c, and see if these crashes then stop?

I have tried this now, and it's much more stable now. It doesn= 't immediately crash, and sometimes it doesn't crash at all.
<= div>
When it crashes, it does so after several seconds, and I= have captured two of these crashes.

I will post t= hese backtraces in the following two emails.

Regar= ds,
Elias
--94eb2c084b70621256054395833f--