From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#53136: 28.0.90; segfault in lock_file Date: Tue, 11 Jan 2022 18:59:35 -0800 Organization: UCLA Computer Science Department Message-ID: References: <871r1hv40o.fsf.ref@yahoo.com> <871r1hv40o.fsf@yahoo.com> <83bl0l2we3.fsf@gnu.org> <87r19htjlp.fsf@yahoo.com> <838rvp2tcw.fsf@gnu.org> <875yqtt9qk.fsf@yahoo.com> <8335lxazg6.fsf@gnu.org> <37cd3017-38cb-fa2c-7b52-fbeb3b085744@cs.ucla.edu> <8735lvp01e.fsf@yahoo.com> <87czkznktd.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33500"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Cc: 53136@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 12 04:01:09 2022 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 1n7Tsr-0008a5-9p for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Jan 2022 04:01:09 +0100 Original-Received: from localhost ([::1]:55892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7Tsp-00076v-Sf for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jan 2022 22:01:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7Trm-00076h-Kk for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 22:00:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7Trm-0007RL-6f for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 22:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7Trm-0005cI-4s for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 22:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Jan 2022 03:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53136 X-GNU-PR-Package: emacs Original-Received: via spool by 53136-submit@debbugs.gnu.org id=B53136.164195638421526 (code B ref 53136); Wed, 12 Jan 2022 03:00:02 +0000 Original-Received: (at 53136) by debbugs.gnu.org; 12 Jan 2022 02:59:44 +0000 Original-Received: from localhost ([127.0.0.1]:55927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7TrU-0005b7-Gg for submit@debbugs.gnu.org; Tue, 11 Jan 2022 21:59:44 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:36782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7TrS-0005an-Im for 53136@debbugs.gnu.org; Tue, 11 Jan 2022 21:59:43 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D5B1B1600E5; Tue, 11 Jan 2022 18:59:36 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KQ-NCts4YIJl; Tue, 11 Jan 2022 18:59:35 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E2AF71600F1; Tue, 11 Jan 2022 18:59:35 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VOdG5Fv90O8y; Tue, 11 Jan 2022 18:59:35 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B83E71600E5; Tue, 11 Jan 2022 18:59:35 -0800 (PST) Content-Language: en-US In-Reply-To: <87czkznktd.fsf@yahoo.com> 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:223976 Archived-At: On 1/10/22 17:05, Po Lu wrote: > Po Lu writes: > >> That was an unrelated problem. This bug is on GNU/Linux, when running >> under Valgrind. (I was trying to find the GC bug from last month.) > > It happens with valgrind-3.18.1-7.fc35, but not valgrind-3.17.0-13.fc35. > > Paul, any idea why this may be? Thanks. Looking at the 3.18.1 release notes: https://valgrind.org/docs/manual/dist.news.html what jumps out at me are these entries: * glibc 2.34, which moved various functions from libpthread.so into libc.so, is now supported. 407589 [Linux] Add support for C11 aligned_alloc() and GNU reallocarray() 442061 very slow execution under Fedora 34 (readdwarf3) It could be that these changes caused a bug in Valgrind. I think Emacs is using aligned_alloc and reallocarray. I tried building Emacs master (savannah) on both Ubuntu 21.10 x86-64, which has valgrind-3.17.0, and on Fedora 35 x86-64, which has valgrind-3.18.1, and both instances worked for me. I was running the Fedora 35 instance on an AMD Phenom II X4 910e. I merely stole a lock using an interactive Emacs as my test, though. What test are you using to reproduce the bug?