From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dick.r.chiang@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#36609: 27.0.50; Possible race-condition in threading implementation Date: Sat, 19 Jun 2021 15:14:19 -0400 Message-ID: <87sg1dwttg.fsf@dick> References: <87muhks3b5.fsf@hochschule-trier.de> <87fsxv8182.fsf@dick> <83wnr7gdd8.fsf@gnu.org> <875yyqg66k.fsf@dick> <83k0n6hjym.fsf@gnu.org> <87wnr2lnsj.fsf@dick> <83h7i6cj3z.fsf@gnu.org> <87bl8e2aya.fsf@dick> <8335tpdcq9.fsf@gnu.org> <87y2bhepl2.fsf@dick> <83y2bhbw14.fsf@gnu.org> <87czstmmgi.fsf@dick> <83zgvx9c0o.fsf@gnu.org> <83y2b5vj04.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3465"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.14 (Gnus v5.14pre) Emacs/28.0.50 (gnu/linux) Cc: 36609@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 19 21:15:14 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lugR0-0000im-J7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Jun 2021 21:15:14 +0200 Original-Received: from localhost ([::1]:43460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lugQz-0002Sw-40 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Jun 2021 15:15:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lugQo-0002SU-QI for bug-gnu-emacs@gnu.org; Sat, 19 Jun 2021 15:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49285) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lugQo-0006Eb-GK for bug-gnu-emacs@gnu.org; Sat, 19 Jun 2021 15:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lugQo-0005cn-DP for bug-gnu-emacs@gnu.org; Sat, 19 Jun 2021 15:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: dick.r.chiang@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Jun 2021 19:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36609 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 36609-submit@debbugs.gnu.org id=B36609.162413006721565 (code B ref 36609); Sat, 19 Jun 2021 19:15:02 +0000 Original-Received: (at 36609) by debbugs.gnu.org; 19 Jun 2021 19:14:27 +0000 Original-Received: from localhost ([127.0.0.1]:60830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lugQF-0005bk-Iu for submit@debbugs.gnu.org; Sat, 19 Jun 2021 15:14:27 -0400 Original-Received: from mail-qt1-f173.google.com ([209.85.160.173]:46754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lugQE-0005bX-CB for 36609@debbugs.gnu.org; Sat, 19 Jun 2021 15:14:26 -0400 Original-Received: by mail-qt1-f173.google.com with SMTP id w26so4935536qto.13 for <36609@debbugs.gnu.org>; Sat, 19 Jun 2021 12:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=E4HfgGnyfJi8L8STKd0/XGbzR5GoJv+Mv8dv2Km8zwg=; b=gRNeOU16GpZP0v+4dzPPtcg2YpP8j8ePhij+G3T2WmYeGVuZjuEMc+1lx+3BqKobXN DBYcLzNK4eVxpTwG2+4THjwguubfEqQLFnNQfNEU6mAB3YlLqnJB/x8rn4dgAdIZYx3k TP7hbsJH67EwbjoJWrebYUAmws8U6E0TN55OXol+4FqhjTUllBHSEENzlnXqyZPqVNFx WKiI64IDUI0x2HBv88dfVtDrzZ76n9TRHh+wNjACT7iBBI6iDoxKL0Ngsicm0k+8Z9J6 DnTMk3V/d4ulHBamY9E4MPYorbeK3gkdEIgK0LRdVR+kZEHNhbcNeyZqt76ejtzpUnZw J5rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=E4HfgGnyfJi8L8STKd0/XGbzR5GoJv+Mv8dv2Km8zwg=; b=lFc/Djl4L7V1Tz8XQHXlqDF+jw2nEOowSfkSMCvlUw9VivMWy8tT6AAonadol/Gc/g OtKgzZBKHrsjvZX1WKZfdQZkPvTjsGQPiDJBgTU1hr23dvM6NjMBq9bdQCa9FL/iFv6q RqFe6bpxovFkzWpP89foKXCd5luknis5QKJ3MnoovC0tJ0JX/afSwFTTwrinvJztfGSu HaflgB5shSCWZ2Qsnt2tMG2oeKaaYsylK0HdFXz4vR6KBmwCddpqmaOT1FenR8HUv17g eNxk6m9Kdjw5VUzJ5G5mn9bPR0Vd71Lbht1Bs+90FXHNMVyjv4feNmKBu9Ch8TbG2h3U ks9w== X-Gm-Message-State: AOAM533JRzW4dtkiJFZKID8Mh8o1p6isytYqiza05yRwdaYLqAOUsFBw sQSE1haAdzu/x8yYZJUUbwA= X-Google-Smtp-Source: ABdhPJy9l0AtPw1ltITISQRr6TndMBYUQ55JtaS0Ynwj+49iM/PW90enESQRtt09s+4e4uRDDxUX4g== X-Received: by 2002:ac8:7f42:: with SMTP id g2mr15846235qtk.280.1624130060836; Sat, 19 Jun 2021 12:14:20 -0700 (PDT) Original-Received: from localhost (pool-71-190-212-171.nycmny.fios.verizon.net. [71.190.212.171]) by smtp.gmail.com with ESMTPSA id x8sm6649975qkh.130.2021.06.19.12.14.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 19 Jun 2021 12:14:20 -0700 (PDT) In-Reply-To: <83y2b5vj04.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Jun 2021 20:53:15 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208766 Archived-At: I enter a plea of lacking the programming know-how for atomics. I stand by everything I've said thus far: an obfuscated MRE led to a misdiagnosis, led to an unnecessary and highly thread-unsafe fix, which can be remedied by the vulgar "end-run" patch I submitted, and which I test every day with parallel-thread Gnus. Unfortunately in this and every urological contest of wills I seem to have with project maintainers, I, by construction, must always lose. >>>>> Eli Zaretskii writes: >> Date: Fri, 11 Jun 2021 09:00:07 +0300 >> From: Eli Zaretskii >> Cc: 36609@debbugs.gnu.org >> >> I'm okay with replacing the simple increments and decrements of that >> variable with atomic ones, using the likes of __atomic_fetch_add >> intrinsics of GCC, if that solves the problem. Did you try that? > Ping! > Did you try that, and if so, did using the atomics solve the original > problem? > Thanks.