From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70914: 29.3; Crashes often on Windows Date: Wed, 22 May 2024 21:19:18 +0300 Message-ID: <86v835676h.fsf@gnu.org> References: <86msouxamh.fsf@gnu.org> <86h6f0wsbv.fsf@gnu.org> <86seyjtgvd.fsf@gnu.org> <86ttizjdwm.fsf@gnu.org> <86h6eykiuk.fsf@gnu.org> <86cypmji2l.fsf@gnu.org> <865xvadhsg.fsf@gnu.org> <861q5ycpv1.fsf@gnu.org> <86ed9yb2cg.fsf@gnu.org> <86y185ac0w.fsf@gnu.org> <86bk50a938.fsf@gnu.org> <861q5w9wgv.fsf@gnu.org> <86v8388g1w.fsf@gnu.org> <86seyc8f1c.fsf@gnu.org> <86h6er8dkd.fsf@gnu.org> <86bk4z81cu.fsf@gnu.org> <554078779.3957737.1716318331280@mail.yahoo.com> <984937837.4078826.1716352322860@mail.yahoo.com> <829659206.4083070.1716354489264@mail.yahoo.com> <582535681.1158538.1716358337102@mail.yahoo.com> <86zfsi6qdx.fsf@gnu.org> <867cfm6j14.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10726"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70914@debbugs.gnu.org, corwin@bru.st, ssbssa@yahoo.de To: Simen =?UTF-8?Q?Endsj=C3=B8?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 22 20:22:11 2024 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 1s9qbL-0002Z3-3g for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 May 2024 20:22:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9qb7-0006Km-6A; Wed, 22 May 2024 14:21:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9qb6-0006KP-Cz for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 14:21:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9qb6-0003Bo-4t for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 14:21:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9qbB-0005xz-Nb for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 14:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 May 2024 18:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70914 X-GNU-PR-Package: emacs Original-Received: via spool by 70914-submit@debbugs.gnu.org id=B70914.171640211722927 (code B ref 70914); Wed, 22 May 2024 18:22:01 +0000 Original-Received: (at 70914) by debbugs.gnu.org; 22 May 2024 18:21:57 +0000 Original-Received: from localhost ([127.0.0.1]:57455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9qb6-0005xj-I6 for submit@debbugs.gnu.org; Wed, 22 May 2024 14:21:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9qb2-0005xd-T2 for 70914@debbugs.gnu.org; Wed, 22 May 2024 14:21:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9qYg-0002Ly-QN; Wed, 22 May 2024 14:19:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=5L9aM+T16T3V8pHo4ikbUUJj4qZWuBY86OO3EVMI47g=; b=RbX/7U2oML9fT1F6bwXr GWn+MT2o7s3XXUQyl+av9kX6zXwygGfGaxr+OQADc1w7aPc+GLMWT9QHG5l7sOmx6xkdWQMyujIS6 stdOYUbXbhixPMR6Y/Jd59FMrVc1J5i8rNn21GQMch4BHZ5R5cL0VqAvb7d+kHAYX7RNyZyKLbVn2 lKpvptJ/+aWdnuxARnAfeXDdHb3q9U+KRlqvHkaFqUTbrx3TVMEGcdQ5iDopaSgwYz6MFQE6hEcTf +NsEaVMPu/kEXqR69rPbD0MkLG/J2PK/B3yVotTt4mkGaibhD+7omIyAGKNmpHGePK0CY7QaeBCoO zjBGCvFhtxf8MA==; In-Reply-To: (message from Simen =?UTF-8?Q?Endsj=C3=B8?= on Wed, 22 May 2024 18:54:06 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285648 Archived-At: > From: Simen Endsjø > Date: Wed, 22 May 2024 18:54:06 +0200 > Cc: ssbssa@yahoo.de, corwin@bru.st, 70914@debbugs.gnu.org > > > You can now remove the added condition and the call to emacs_abort > > from the code. Please run for a while and see if there are any other > > crashes like that one, which yield a zero code address. > > Yes, I'll use this version for a while and see if things get better. Thanks. > > Thanks. Too much is involved here, but my money is on consult: I see > > in its code several places where it matches file names in a way that > > can only work on Posix systems (i.e., assuming absolute file names > > begin with a slash, not with a drive letter). Since > > consult-recent-file is in the Lisp backtrace, it's a definite > > possibility. > > I can reproduce it calling just find-file too: Yes, I know. It reproduces the problem even in "emacs -Q". I used that to test the fix. But if the user manually types such an invalid file name, it is on him/her. What I wanted to try to find is whether some of our Lisp packages _generates_ such a "file name", which would be a bug we'd need to fix. But note how many unknowns are involved in your find-file example: doom--shut-up-autosave-a so-long--set-auto-mode +evil--persist-state-a evil-save-state org-mode org-fancy-priorities-mode org-activate-links org-activate-links--overlays If you can somehow spot what causes this "//" name to appear in this case, do tell. E.g., if it's the fault of Org, then we'd want to fix that. It is important to understand that "//" is an invalid file name on Windows, as far as Emacs is concerned, and using it will basically produce results which are not useful. E.g., try M-: (file-attributes "//") RET (in the fixed Emacs, of course, and after removing the call to emacs_abort in parse_root).