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: Thu, 15 Dec 2016 11:30:54 +0800 Message-ID: References: <838trme4jr.fsf@gnu.org> <838trlcals.fsf@gnu.org> <83vauobiou.fsf@gnu.org> <83fulrbxsd.fsf@gnu.org> <83pokua474.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c10850c2db3a0543aa14e7 X-Trace: blaine.gmane.org 1481772736 22507 195.159.176.226 (15 Dec 2016 03:32:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2016 03:32:16 +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 Thu Dec 15 04:32: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 1cHMmA-0004P5-Cv for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Dec 2016 04:32:10 +0100 Original-Received: from localhost ([::1]:51970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHMmC-0001hD-PM for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Dec 2016 22:32:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHMm6-0001gv-Gq for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2016 22:32:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHMm2-0002Dd-PZ for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2016 22:32:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55087) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHMm2-0002CZ-N6 for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2016 22:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cHMm2-0002pa-AD for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2016 22:32: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: Thu, 15 Dec 2016 03:32: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.148177266310817 (code B ref 25172); Thu, 15 Dec 2016 03:32:02 +0000 Original-Received: (at 25172) by debbugs.gnu.org; 15 Dec 2016 03:31:03 +0000 Original-Received: from localhost ([127.0.0.1]:42253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHMl4-0002oN-Q0 for submit@debbugs.gnu.org; Wed, 14 Dec 2016 22:31:03 -0500 Original-Received: from mail-qt0-f170.google.com ([209.85.216.170]:34612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cHMl3-0002nr-5Q for 25172@debbugs.gnu.org; Wed, 14 Dec 2016 22:31:01 -0500 Original-Received: by mail-qt0-f170.google.com with SMTP id n6so45282847qtd.1 for <25172@debbugs.gnu.org>; Wed, 14 Dec 2016 19:31:01 -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=UgVURYjUIev/z56Cp5VNFcAAdzD1mtUNfNmy5gdJLME=; b=H+4M0AbZBO2DIxCvSsutnankzJDeYR3roCaSFLUYbSmdWKq0EfGaPTsWo3ZNXotsOd DGHNk0rvJJhtyc1DBuZydsUsKeifskMMKjjjoac2GBEY3IFeZ77ih4G7zt9kRUTczSSz JfZKnLwH2vC3HW/6PO7cz3yBNudR26OvAGdvJ49g51l3Uh11cWI9VIIVxtVVEA2eHJqW a1tm0vglNA3RFdmBV0DNf5xrHZ2KNmsNxT61EhmPymbMmqnDYcWfRsi7DtYBeFWvtFkZ cwsRnvypTusIZd9yNpr+gvsWRsFeYwSqc95tnBQFGLn1spEgBQMnNLfHGAmZydzxMA4e 7ekw== 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=UgVURYjUIev/z56Cp5VNFcAAdzD1mtUNfNmy5gdJLME=; b=ntmvpAkwAhYd+duRBlzvQX2vajxqCgANnIoFvV3CYZb9+RnyfwJgwJGCLa4SN+Qkvt mxQ6fv9Nvs9r4eWEpxinNRPXnGvbqLWcT6v1oh4zOPqwXEHKNC3i2Hm/kyOtN8O1nkJQ ciLap3YFq3UEx03QoZx0i5NLqm0YHyOLc8lUESAKrrQmFmkmkHHsesu5V7oQWwifa45/ Kh0owe/FWnsIty8OmGyoz3KFMhHRDW4TcCALZvCJz70XC4sM/U605gsMsptwUKsnTMIf UhtmreJ5YPtta1nuk/fpcwKC8rUiYslRfPf9HWggnZ+OUMMjG2IayTrOeyv+5wrZ5O3A MwUw== X-Gm-Message-State: AIkVDXIa3M9b/9TdaJm0nOU8qrAQ+fNE4LiCtLbVmBx1k3cL3nFWa9oWyr68kQeVjbpelXc5C/RTMezDrPG+rA== X-Received: by 10.200.49.165 with SMTP id h34mr104695qte.43.1481772655367; Wed, 14 Dec 2016 19:30:55 -0800 (PST) Original-Received: by 10.55.110.5 with HTTP; Wed, 14 Dec 2016 19:30:54 -0800 (PST) In-Reply-To: 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:127045 Archived-At: --001a11c10850c2db3a0543aa14e7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 15 December 2016 at 00:12, Elias M=C3=A5rtenson wrot= e: > On 15 December 2016 at 00:03, Eli Zaretskii wrote: > > >> Thanks. Does the patch below help in any way with these crashes? >> >> If not, it sounds like I'm out of my depth here. The crashes you show >> are deep in the bowels of Glib called by GTK; reading the (annoyingly >> minimal) documentation of those APIs, I sense the danger of some basic >> issue with calling these APIs from several threads. If what the GTK >> documentation tells everything there is to it, then the patch below >> should fix these problems. But if not, then I guess we will need help >> from a GTK expert. >> > > After applying that patch, it hasn't crashed yet. So either it fixes the > problem, or it's simply buch harder to reproduce. So far so good. Thanks = a > lot! > I want to note that the thing that seems to fix it is the application of the most recent suggestion. In other words, if I roll back the application of the previous suggestion (removing the calls to clock_input()/unblock_input()) it still seems to be stable. Regards, Elias --001a11c10850c2db3a0543aa14e7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 1= 5 December 2016 at 00:12, Elias M=C3=A5rtenson <lokedhs@gmail.com><= /span> wrote:
On 15 December 2016 at 00:03, Eli Zaretskii &= lt;eliz@gnu.org> wrote:
=C2=A0
Thanks.=C2=A0 Does the patch below help in any way with these crash= es?

If not, it sounds like I'm out of my depth here.=C2=A0 The crashes you = show
are deep in the bowels of Glib called by GTK; reading the (annoyingly
minimal) documentation of those APIs, I sense the danger of some basic
issue with calling these APIs from several threads.=C2=A0 If what the GTK documentation tells everything there is to it, then the patch below
should fix these problems.=C2=A0 But if not, then I guess we will need help=
from a GTK expert.

After applyin= g that patch, it hasn't crashed yet. So either it fixes the problem, or= it's simply buch harder to reproduce. So far so good. Thanks a lot!

I want to note that the th= ing that seems to fix it is the application of the most recent suggestion. = In other words, if I roll back the application of the previous suggestion (= removing the calls to clock_input()/unblock_input()) it still seems to be s= table.

Regards,
Elias
--001a11c10850c2db3a0543aa14e7--