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: Fri, 24 May 2024 12:13:39 +0200 Message-ID: References: <86msouxamh.fsf@gnu.org> <86h6f0wsbv.fsf@gnu.org> 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="15970"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70914@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 24 12:16:26 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 1sARyL-0003wg-PV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 May 2024 12:16:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sARy0-0005z3-RC; Fri, 24 May 2024 06:16:04 -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 1sARxs-0005yL-RD for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 06:15: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 1sARxr-0000f1-6P for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 06:15:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sARxy-0000lH-0M for bug-gnu-emacs@gnu.org; Fri, 24 May 2024 06:16: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: Fri, 24 May 2024 10:16: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.17165457072866 (code B ref 70914); Fri, 24 May 2024 10:16:01 +0000 Original-Received: (at 70914) by debbugs.gnu.org; 24 May 2024 10:15:07 +0000 Original-Received: from localhost ([127.0.0.1]:36280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sARx5-0000kA-4h for submit@debbugs.gnu.org; Fri, 24 May 2024 06:15:07 -0400 Original-Received: from mail-lj1-f180.google.com ([209.85.208.180]:42103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sARx1-0000jS-Fn for 70914@debbugs.gnu.org; Fri, 24 May 2024 06:15:05 -0400 Original-Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2e3efa18e6aso28768811fa.0 for <70914@debbugs.gnu.org>; Fri, 24 May 2024 03:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716545631; x=1717150431; 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=tBUoL56Ai1q5UvLyLJ+n/yamDCf74mHvYcEl/33Uk8E=; b=Q9LMs6A9LaPit7Fdm9RPFekjFPVvtjDeJ0i8/bn6t2RwKGcY5dcvi6DZOMdPZQXzYE OVWf88Bymfd+ChdHIENeFuOXbsWbICcLbGPPZiDwT15dXb7zvpCFBgZuo0MC5f6Y1jWx aySV2e2+Cf5Dlquaj0N7fJ+RSnz/kkk3syDSjRe55nbgkOn7QT7khDRUIq0dXmb0Dm/G Hf4EsOkPBQedPS/2Mz6vURv0RDKsI3M8odEuec4aBpveXme6sOxLaK4/bulIfOGLe+hh 34k1WD8m/UIFCoXlf0KdnVjqoRSu5OZlSrCtGxppgi+B52shnH9+EXcQP6kWjWfLgH2C /fKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716545631; x=1717150431; 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=tBUoL56Ai1q5UvLyLJ+n/yamDCf74mHvYcEl/33Uk8E=; b=H5O6OnAtdVZbshB0Ba5s/IQoCB/ISnQS65aUZXX+maU0inFjQpg/ancTX/bNVC900z WFFJKFFbHia3/QSbAfRSidHYh6SUJ2QalVCyjXHrDfILcVGVWga8zwDNzgGJBG4AgUMT cGnVSDwBybbKa0aRwxa08iuzkdJ4tCCneNkA+9LkGQNyEJQBtcOIbt7t5TCuWXMdz6Ig 2V166QFniBbMAUl04Lbvn4D4LaC9yxcC/Jaa11pK8+pyHeDQK3Xj7rGAf173++sj5VgW 1UUeg0C3Z7TqIrATpjqZ4vJNtQw8u4QvEhAm6AupOzqtI3ZP68muHs2UDfZli2YuEAhy 6P6w== X-Gm-Message-State: AOJu0YwrIjZ+nh0NaV5eYxqxMYvWfr9IYAZwrza192RlRmv1PpZqyzjn KPggtI5TCWURKxEtPqu9xVC64T8TnZeJbT5/QXcwYyVm+toXPHo7BQqeEHnV9/EPL/k1uTSDv9q ktEK1vNa/iNvVVYkd8eP20pKPzdK6T/Ue9fU= X-Google-Smtp-Source: AGHT+IENVU+28TFTwD4tLraMGI9hBR585vkcAKINlA0o15blUwmfR0adegwIRi+WWr3Gs1XpuVJ1rfMc8MPJLfx/wdE= X-Received: by 2002:a2e:909a:0:b0:2e2:3e7c:1ef6 with SMTP id 38308e7fff4ca-2e951b4f204mr16156161fa.4.1716545630373; Fri, 24 May 2024 03:13:50 -0700 (PDT) In-Reply-To: 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:285759 Archived-At: This time I know exactly what I did. I have a file which looks like this (anonymized paths). Had marked Date to HttpSubStatus, pressed I (bound to evil-insert), typed "1) " and pressed enter. Then it crashed. I opened the = file again and did a recover, which brought me the content below where it has partially updated the data.I tried doing the exact same thing again, but it didn't crash. (* ref [[file:d:/foo/bar::line content here]] 1) Date 1) Time 1) ClientIP 1) UserName 1) SiteName 1) ComputerName 1) ServerIP 1) Method -UriStem UriQuery HttpStatus Win32Status BytesSent BytesRecv TimeTaken ServerPort UserAgent Cookie Referer ProtocolVersion Host HttpSubStatus *) let path =3D "d:/tmp/foo/bar" On Tue, May 14, 2024 at 2:08=E2=80=AFPM Simen Endsj=C3=B8 wrote: > > I understood it as writing outside the stack space for a completion. > Could be caused by some incorrect handling of coding systems where too > little space was reserved as you note. > > #6 0x00007ffbb271440f in ntdll!.chkstk () from > C:\WINDOWS\SYSTEM32\ntdll.dll > #7 0x00007ffbb268e466 in ntdll!RtlFindCharInUnicodeString () from > C:\WINDOWS\SYSTEM32\ntdll.dll > #8 0x00007ffbb27133fe in ntdll!KiUserExceptionDispatcher () from > C:\WINDOWS\SYSTEM32\ntdll.dll > #9 0x00007ff71e0ec111 in Fall_completions () > #10 0x00007ff71e145688 in Ffuncall () > #11 0x00007ffb8d5c1dd0 in > F636f6d706c6574652d776974682d616374696f6e_complete_with_action_0 () > from c:\programs\emacs\latest\lib\emacs\29.3\native-lisp\29.3-5efa495= 2\preloaded\minibuffer-1b0f548b-25462d74.eln > > I'm setting LANG to en_US both in the system environment and in my > emacs configuration. I've also enabled UTF-8 everywhere on the systems > (beta feature). > > But it's better to use LANG=3DENU and the default coding system? > > Here's the relevant configuration from my init.el: > > ;; Windows doesn't set this, but some packages might depend on the vari= able > (setenv "LANG" "en_US") > > ;; While the Windows clipboard shouldn't change the coding system, > ;; I get latin-1 back when pasting in Emacs. > ;; See `list-coding-systems' > ;; NOTE: I've turned on the global utf8 beta feature in Windows, > ;; and we thus don't need this > ;;(set-clipboard-coding-system 'latin-1) > (set-clipboard-coding-system 'utf-8) > > On Tue, May 14, 2024 at 1:23=E2=80=AFPM Eli Zaretskii wrot= e: > > > > > From: Simen Endsj=C3=B8 > > > Date: Tue, 14 May 2024 12:14:11 +0200 > > > Cc: 70914@debbugs.gnu.org > > > > > > Here's a backtrace of the most recent crash. I have no idea if it's > > > one issue or several. It seems to be crashing at arbitrary times, > > > often just when writing plain text in org-mode buffers. > > > > It's unclear what happened here and why. Seems like some fatal > > exception in the middle of all-completions call, but why would that > > be? > > > > I do see that you have quite a few 3rd-party packages involved in > > this: vertico, orderless, and consult at least. > > > > I also see that one of the threads is run by Glib, which sounds > > strange to me, but maybe it's because of librsvg? Not sure if this is > > related to the crash. > > > > This part of your environment: > > > > Important settings: > > value of $LANG: en_US > > locale-coding-system: cp65001 <<<<<<<<<<<<<<<<<<<<<<< > > > > might also be related: AFAIU it means you configured your system to > > use UTF-8 encoding by default, which might cause issues with > > sub-processes, because Emacs on Windows doesn't support passing UTF-8 > > encoded arguments to sub-processes. And the backtrace indicates that > > you had a sub-process running when this happened (or at least a thread > > was running waiting for output from a sub-process). > > > > And why is the value of $LANG "en_US"? It's supposed to be "ENU" on > > Windows. Did you customize the locale and/or the defaults for the > > coding-systems, and if so, how? > > > > In any case, please keep running Emacs under GDB and post two or three > > more backtraces from the crash, so that we could see which parts of > > this to focus on. > > > > Thanks.