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: Thu, 23 May 2024 11:18:45 +0300 Message-ID: <8634q954be.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> <86v835676h.fsf@gnu.org> <86le415cmz.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="31344"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70914@debbugs.gnu.org, yantar92@posteo.net, 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 Thu May 23 10:20:08 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 1sA3gF-0007xn-RM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 May 2024 10:20:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sA3g5-0006ho-1h; Thu, 23 May 2024 04:19:57 -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 1sA3g4-0006hf-FM for bug-gnu-emacs@gnu.org; Thu, 23 May 2024 04:19: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 1sA3g4-00023e-70 for bug-gnu-emacs@gnu.org; Thu, 23 May 2024 04:19:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sA3gA-0008JV-5F for bug-gnu-emacs@gnu.org; Thu, 23 May 2024 04:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 May 2024 08:20:02 +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.171645234631933 (code B ref 70914); Thu, 23 May 2024 08:20:02 +0000 Original-Received: (at 70914) by debbugs.gnu.org; 23 May 2024 08:19:06 +0000 Original-Received: from localhost ([127.0.0.1]:58736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA3fG-0008Iz-1n for submit@debbugs.gnu.org; Thu, 23 May 2024 04:19:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA3fB-0008Ic-DL for 70914@debbugs.gnu.org; Thu, 23 May 2024 04:19:04 -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 1sA3ey-0001tl-Sd; Thu, 23 May 2024 04:18:48 -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=V/MfUX4wxtS2lf9nnFLdq56Zv+cNv+1Fov928kqU7Kw=; b=IWg+9SgAC2+5Kgg0eM7n XtsY8pelJUjcSq3fs5u5G0zyahorzXy6gWnArSL+vmSRqg1oIuwCDzAcTNI03Cx0CBHW+lY51WYaP 49didTka3dEPn3nofBdWsgl/TFQ0ts3NrPryOj3qGdcDLMs/aVdCnSMygCb4Nnn191fKXIzIwaYA3 IPAI8R1+WjkMVeJIgghdj0AJNmUC0Ua8f8jdKJzIAdo16GtZIYlfuqLC3AVbOOjYvwRmftPndkDpv oglU32dU4k0OX6j8FYQzWEpFJDLLpQ6xyw1RwpJWaUqpyuOJxSNrQOFVtfvLFhf6VSak4S718/CUE 94HlbvXcsbdBNA==; In-Reply-To: (message from Simen =?UTF-8?Q?Endsj=C3=B8?= on Thu, 23 May 2024 09:31:22 +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:285689 Archived-At: > From: Simen Endsjø > Date: Thu, 23 May 2024 09:31:22 +0200 > Cc: Ihor Radchenko , ssbssa@yahoo.de, corwin@bru.st, > 70914@debbugs.gnu.org > > I managed to narrow it down further. Org incorrectly finds file:// links. I have > some string concatenation in an emacs-lisp source block line `(concat "file://" > "foo")`, and this breaks org. > > I used the following function to extract all links, added them to a separate > org file and went through them. > > (defun emacs-bug-70914/print-org-links () > (interactive) > (save-excursion > (beginning-of-buffer) > (while (re-search-forward org-link-any-re nil t) > (message "link: %s" (match-string 0))))) > > The following crashes > #+begin_src emacs-lisp > "file://" > #+end_src > > Other combinations also crashes > #+begin_src emacs-lisp > (message "src=\"file://") > #+end_src > > #+begin_src emacs-lisp > "src=\"file://" > #+end_src OK, thanks, I think we are close. If I visit an Org file with one of the above in "emacs -Q", what should I type to get the crash? I presume some optional features need to be turned on, because if I just visit such a file in "emacs -Q", I don't see any crashes and don't see "//" passed to the parse_root function. Ihor, can you point me to the code which processes these file:// links and as result calls file-exists-p on "//"?