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 14:40:19 +0300 Message-ID: <86v8366png.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> <433213011.4171485.1716366220719@mail.yahoo.com> <504687570.4208226.1716367848968@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8248"; mail-complaints-to="usenet@ciao.gmane.io" Cc: simendsjo@gmail.com, corwin@bru.st, 70914@debbugs.gnu.org To: Hannes Domani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 22 13:41:09 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 1s9kLF-0001vM-CD for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 May 2024 13:41:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9kL6-0007lK-LO; Wed, 22 May 2024 07:41:00 -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 1s9kL2-0007kL-Ri for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 07:40: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 1s9kL2-0004LA-Hq for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 07:40:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9kL8-0001dK-8A for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 07:41: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: Wed, 22 May 2024 11:41: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.17163780466265 (code B ref 70914); Wed, 22 May 2024 11:41:02 +0000 Original-Received: (at 70914) by debbugs.gnu.org; 22 May 2024 11:40:46 +0000 Original-Received: from localhost ([127.0.0.1]:55424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9kKr-0001cz-VE for submit@debbugs.gnu.org; Wed, 22 May 2024 07:40:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9kKf-0001cr-Le for 70914@debbugs.gnu.org; Wed, 22 May 2024 07:40:45 -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 1s9kKU-0004En-HC; Wed, 22 May 2024 07:40:22 -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=JZ2ixw746lxGUxO19KHeAUc7NoFG7ZBPTihMZnNfTJM=; b=E282yw4HxGZZTd37LEFx mNsVM9WEnSa+FBGNYc/FoSOQTxJtL6+UHQK5WQD4J5t9lAJM9D+woA0/kuzxpvt2A/47LQ7FTHMfL 6bjCiocBCtesC4t8XT1OspRFX996iNzPltOttdW0yv56SY6korHDxkBUVwcoGzn+8KyOvtbEDl8k1 chfAJUogMiikB8kec92t9j//PuYGnKgU8I7FeB2OXY7OOX099Otd0BSxlUjAzCNNfm7RzEEgxUNx8 pxCNt8/6i8MYfPWlswAi5x4y1gOAAfCZUQJUaAYshtVZGKqZPygZcPUYD3V5D/ZZV+lWo5YytjE5Q 5UauTRPD2lrdUQ==; In-Reply-To: <504687570.4208226.1716367848968@mail.yahoo.com> (message from Hannes Domani on Wed, 22 May 2024 08:50:48 +0000 (UTC)) 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:285600 Archived-At: > Date: Wed, 22 May 2024 08:50:48 +0000 (UTC) > From: Hannes Domani > Cc: Eli Zaretskii , Corwin Brust , > "70914@debbugs.gnu.org" <70914@debbugs.gnu.org> > > > I do a C-c in gdb to add a breakpoint, and when continuing, the process exists > > with code 0202. If I add the conditional breakpoint at start, this doesn't > > happen though, but it seems like it gets stuck without progressing further. > > `print name != NULL` and `print (int)strcmp(name, "//") == 0` doesn't trigger an > > error. > > I tend to avoid inferior function calls as much as possible, even more > so in optimized code, exactly for this kind of problem. Right. > Instead I use something like: > > (gdb) condition 1 name && $_streq(name,"//") As I explained, conditional breakpoints are not the best idea for such a frequently-called code. > >From what I saw while I had the dprintf command from earlier active, emacs > calls this function even if you maybe don't expect it, so I wouldn't rule > it out. Basically, we call map_w32_filename, and through it parse_root, for every file we need to access. So yes, very frequently indeed. Thanks for your great help, Hannes. I surely hope to see your recording patch in GDB 15 or thereabouts. It's a very useful feature that is sometimes sorely missed on Windows.