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: Tue, 13 Dec 2016 12:11:58 +0800 Message-ID: References: <838trme4jr.fsf@gnu.org> <838trlcals.fsf@gnu.org> <83vauobiou.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c084b70f1593a0543826b05 X-Trace: blaine.gmane.org 1481602391 22958 195.159.176.226 (13 Dec 2016 04:13:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2016 04:13:11 +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 Tue Dec 13 05:13:08 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 1cGeSh-0005CW-57 for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2016 05:13:07 +0100 Original-Received: from localhost ([::1]:35230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGeSl-0006nZ-Ba for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Dec 2016 23:13:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGeSf-0006n1-ML for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2016 23:13:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGeSc-0008FT-Ij for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2016 23:13:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52825) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGeSc-0008FO-Fc for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2016 23:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cGeSc-0006Zm-AI for bug-gnu-emacs@gnu.org; Mon, 12 Dec 2016 23:13: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: Tue, 13 Dec 2016 04:13: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.148160232625217 (code B ref 25172); Tue, 13 Dec 2016 04:13:02 +0000 Original-Received: (at 25172) by debbugs.gnu.org; 13 Dec 2016 04:12:06 +0000 Original-Received: from localhost ([127.0.0.1]:39991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGeRi-0006Yf-4m for submit@debbugs.gnu.org; Mon, 12 Dec 2016 23:12:06 -0500 Original-Received: from mail-qk0-f172.google.com ([209.85.220.172]:33757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGeRg-0006YC-On for 25172@debbugs.gnu.org; Mon, 12 Dec 2016 23:12:05 -0500 Original-Received: by mail-qk0-f172.google.com with SMTP id x190so105098237qkb.0 for <25172@debbugs.gnu.org>; Mon, 12 Dec 2016 20:12:04 -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=hnwkm0TD2Riu0V/JfZOauJggepAvXHo0D/kcYZjleHk=; b=uq28FrEqn+wKgMmUaD7y8wuSyV56szDc1+P6CDO3X5d0trZW9qN+Ybz9C2Ed4nOyYl 2CxLVcE32VTtsMqrduL0G+uXcmz5SQcEZ08AytiHiamnFpRci7P1J0y6rQ/O4qDlMHh6 HxxmQACBtsDsvU5OzsePJ5sNQrXtfbFNZVCCN2O/eWSCZdPjoApAGQ0owCDG5yIryvWy d+E5Kb8yYyPisKE+J3Mp7II5UN8NyK8NB1rCm/VaveYHtpWEErVDmS9VPM8tDa8oX94H hdn/E9Hmzeg8muX/0SX7YOU3ArgqCthOZ5rm7VRGr8XyfGdoZsaxXObzTW96JfuWU+GE Llbg== 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:from:date :message-id:subject:to:cc; bh=hnwkm0TD2Riu0V/JfZOauJggepAvXHo0D/kcYZjleHk=; b=RwJ8FnGpP6GhIqjD5dyL5zsPM/8R5W77La8eTMEwan3ptbd0KnleqnpiGy5veMidai LuU2ZtqNvpiMqbyBfiw98v7euVTM/8VUztaW7+i4PwG2fVrA902o7e1tsDlxTXLGKa5N bPOjkNisuD/wOVRH/TMg3DOD0ezNeiDQ8OFJEZ3xyd27WkYp18XP03p9T59PfFNxfiab lf2XNWbRm1OFU/EJ45S4Gsmax62P9DE3Z2TBZfHfIeT2lr9bbHKN/JqfYUozehaoI3WZ dw4EDqVNEI7rwCFthq4mwMGs8UXWZROm6Ki/coTHtgv1XZFqL/RwwBp7PTqwGZXRqVaI ZgHg== X-Gm-Message-State: AKaTC03UQrjkZEOBFwl7VoTCgLgLh56WFGT+HqcqIsps7n0ZiZ0k71W7BQW0I/gWjJE7LcHo89+prrsThYRrdA== X-Received: by 10.55.143.199 with SMTP id r190mr91536832qkd.72.1481602319339; Mon, 12 Dec 2016 20:11:59 -0800 (PST) Original-Received: by 10.55.110.5 with HTTP; Mon, 12 Dec 2016 20:11:58 -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:126969 Archived-At: --94eb2c084b70f1593a0543826b05 Content-Type: text/plain; charset=UTF-8 I've bisected now, but during my testing I realised that the problem didn't go away. Instead, it just took a bit longer to reproduce. I discovered that a very effective way to reproduce the issue is just to start several threads at the same time, so I simply extended the test case to the following: (require 'cl( (loop repeat 10 do (make-thread (lambda () (sit-for 5) (with-current-buffer "z" (insert "hello"))))) When running this test, I have gotten two different errors. One SIGSEGV and another being SIGABRT. I will include the stack traces for both test cases in the following two emails. Regards, Elias --94eb2c084b70f1593a0543826b05 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've bisected now, but duri= ng my testing I realised that the problem didn't go away. Instead, it j= ust took a bit longer to reproduce.

I discovered that a very effective way to rep= roduce the issue is just to start several threads at the same time, so I si= mply extended the test case to the following:

(require 'cl(
(loop repeat 10 do (make-thread (lambda () (sit-for 5) (wi= th-current-buffer "z" (insert "hello")))))

When running t= his test, I have gotten two different errors. One SIGSEGV and another being= SIGABRT.

I will include the stack traces for both test cases in the following tw= o emails.

Regards,
Elias
--94eb2c084b70f1593a0543826b05--