From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Simen =?UTF-8?Q?Endsj=C3=B8?= Newsgroups: gmane.emacs.bugs Subject: bug#70914: 29.3; Crashes often on Windows Date: Wed, 22 May 2024 13:09:21 +0200 Message-ID: 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; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="460"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Corwin Brust , "70914@debbugs.gnu.org" <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:11:06 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 1s9js9-000ARv-Lh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 May 2024 13:11:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9js1-0001Hn-UI; Wed, 22 May 2024 07:10: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 1s9js1-0001Hd-0E for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 07:10:57 -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 1s9js0-0006sM-MJ for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 07:10:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9js6-0004CB-Cx for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 07:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simen =?UTF-8?Q?Endsj=C3=B8?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 May 2024 11:11: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.171637624716121 (code B ref 70914); Wed, 22 May 2024 11:11:02 +0000 Original-Received: (at 70914) by debbugs.gnu.org; 22 May 2024 11:10:47 +0000 Original-Received: from localhost ([127.0.0.1]:55241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9jrr-0004Bx-GV for submit@debbugs.gnu.org; Wed, 22 May 2024 07:10:47 -0400 Original-Received: from mail-lj1-f170.google.com ([209.85.208.170]:42001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9jrp-0004Br-BY for 70914@debbugs.gnu.org; Wed, 22 May 2024 07:10:46 -0400 Original-Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2e3efa18e6aso7441451fa.0 for <70914@debbugs.gnu.org>; Wed, 22 May 2024 04:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716376173; x=1716980973; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=C1VifdxQNIsuta/K/8W2RXLH+a4O694PccoPA2sFRwQ=; b=VwvdccGAGZz6tLfumhx27epl3uXBsmjEDv9Cz+Wd9Zt420b7u5UWw1Ih+yqjgVUeRF IyhQOtEQ29ImPiG+VVjQsJmz2aDujNCIZyFaMjcpJaL0qqa0DNoNBU4newz72CylGLI8 M08JBV0tKGmFFyODYor0r/S2Bi81Ksh3vj4r5SRUWq9J5uYvSdR4lcJHbCtGj1KIyM0d vLhwrTui3WrEoWMe/+5LHjfD9ctIToJg0Mae9+vGMrPEjhhK1CRP7FI7XYVaNiSJOKhx A92+5GtlQP4MmGp0Jv2YKRmrAAE6KtHZoEVXf9sc9hUkYdzbYBR3UbJpjA5bN4AiRIU6 Fl5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716376173; x=1716980973; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=C1VifdxQNIsuta/K/8W2RXLH+a4O694PccoPA2sFRwQ=; b=nm+bJtgFp7Tid1ixWbOJf51F/2IzM6U23zEi6F091FHtP5BB1waUmr2Bz8WqFUjfFg 2zWxU0UZOAFD8rD7XUtDrbi30tIVb0p0BhUnt9b3uNCslpUQ7t/9fqRxJfshd67Lu849 xR60iHVXa4SUJDkygjKMkLmF89CYW7+4DBCq1LQ5oAFdc6GQiiFnNfWsMVzuq26gpQqv C9n1tmbqg0QXkaGw5os9HywItfqsqj9Dm6O478O+leGXYIrf3xSoEoSC0zMLe8ytrwja S2SkPl/KUo2XhnLHkTzOkJq5caRkhkvSePcTOPvmOeRUpPwTi6cOj7cEOtyWcGl5uAnr f89Q== X-Forwarded-Encrypted: i=1; AJvYcCVA1jmkBcq/xR0s4sjvEOaKS42jd+rOc1+zcLOVXut+xeppK9Q5Cjqnh7ujlPQKRjrgnSNBgj5OvQs6LepoeJGjppo202o= X-Gm-Message-State: AOJu0YwtLATuD8obA9iHrAWt9wro/TVJiAWNLzyWthsdGzI/Okr4Shi5 oRU9HUh4nYcklMZmBhO5Mhr2X1eMK2k0prFcSDPmoJgVSlX4SheW4tHjNm1n9tlPM3Eu77GJyfQ GCV6lv9PtunkB/FI1DsdbeVfpxi0= X-Google-Smtp-Source: AGHT+IFevRTHCq5p/L2iLP7waN5OItr1H3nsFZ4swpKlnEQELYP9MBIuImv/1G87uE6vs2oUdZS/tuXvxoUx07n/Bbg= X-Received: by 2002:a2e:9199:0:b0:2df:8ce6:96cb with SMTP id 38308e7fff4ca-2e9481bf20bmr5203701fa.8.1716376173210; Wed, 22 May 2024 04:09:33 -0700 (PDT) In-Reply-To: <504687570.4208226.1716367848968@mail.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285594 Archived-At: > I tend to avoid inferior function calls as much as possible, even more > so in optimized code, exactly for this kind of problem. > > Instead I use something like: > > (gdb) condition 1 name && $_streq(name,"//") > > It needs the python build of gdb, in case you used the non-python one. This resulted in the exact same problem. > And did you try my suggested quick fix, just to see if it fixes the cras= h? Thanks! That workaround fixed this crashbug at least! Unsure about the way forward: - Add a new issue to fix this bug? Is it a correct fix or should the value never be able to exist at all? - Find out where value originates from. I see it is extracted from a lisp object. - Why is the stack garbled? - Why does gdc crash with 0202 when using a conditional format? On Wed, May 22, 2024 at 10:50=E2=80=AFAM Hannes Domani wr= ote: > > Am Mittwoch, 22. Mai 2024 um 10:41:28 MESZ hat Simen Endsj=C3=B8 Folgendes geschrieben: > > > > That doesn't sound good. > > > Maybe you could show me how you set the conditional breakpoint, and > > > how it crashed, so I can take a look at this on gdb side. > > > > 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 does= n't > > happen though, but it seems like it gets stuck without progressing furt= her. > > `print name !=3D NULL` and `print (int)strcmp(name, "//") =3D=3D 0` doe= sn'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. > > Instead I use something like: > > (gdb) condition 1 name && $_streq(name,"//") > > It needs the python build of gdb, in case you used the non-python one. > > > > > And did you try my suggested quick fix, just to see if it fixes the c= rash? > > > > No, not yet. I'm afraid this isn't the root cause of my problems though= . I > > experienced a crash yesterday running `evil-fill-and-move` (format para= graph), > > which probably shouldn't use any disk operations like this. > > From what I saw while I had the dprintf command from earlier active, emac= s > calls this function even if you maybe don't expect it, so I wouldn't rule > it out. > > > Hannes