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: Tue, 14 May 2024 14:08:52 +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="13966"; 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 Tue May 14 14:11:44 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 1s6r0S-0003R2-CK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 May 2024 14:11:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6r01-0002y0-9c; Tue, 14 May 2024 08:11:17 -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 1s6qzr-0002st-Bk for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 08:11:11 -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 1s6qzl-0003uv-7T for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 08:11:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s6qzm-00048H-15 for bug-gnu-emacs@gnu.org; Tue, 14 May 2024 08: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: Tue, 14 May 2024 12:11: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.171568861415873 (code B ref 70914); Tue, 14 May 2024 12:11:01 +0000 Original-Received: (at 70914) by debbugs.gnu.org; 14 May 2024 12:10:14 +0000 Original-Received: from localhost ([127.0.0.1]:38981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6qyz-00047x-VT for submit@debbugs.gnu.org; Tue, 14 May 2024 08:10:14 -0400 Original-Received: from mail-lj1-f172.google.com ([209.85.208.172]:46434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s6qyx-00047q-DI for 70914@debbugs.gnu.org; Tue, 14 May 2024 08:10:12 -0400 Original-Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2df83058d48so71691981fa.1 for <70914@debbugs.gnu.org>; Tue, 14 May 2024 05:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715688544; x=1716293344; 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=S1TTA7x2BJ0sl0paGZbpIpqpeBdrJWbRmrOyvcJqer0=; b=EDbPAK6vdtUxDXaSbI4OdwO4k4e0nPDYHm1Ow5R/tZcRQXEmgq7j4yMht/chtIFzNs ggJWZb8QzzwjosH0SOaA1CmtvOTw9mwZFN7mdkyjhEfWoSEDRIiigZKKp8U3KNfsdxba fFUUs3VFAN2lI+jYMOTqeGrCXhwbZ8QzqOn4jpjERnAOBl1t/0JiceP/6n+VIKcQJHP0 dTKSzJFiWOH7zwPKJQ7uDKuCCOc3gp/KbY5eFLtPsoW5w9//g9JO7q8N4u0gpir+tn2K mhMWOpFF+ny1QwbDNh0gqkzoa3pC8p6Ala7ARHCkzTsNPvgqSLdStZSCCUeHTPOpbyUL YSfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715688544; x=1716293344; 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=S1TTA7x2BJ0sl0paGZbpIpqpeBdrJWbRmrOyvcJqer0=; b=LejP0kzCXqc3vTnTVveifD59c+jCO/53Hl9kBGflTa+o4Mg/0fcRznUnAoZbnWTg6x Pxbq9x+1rWasvV0hft/c6AayCWrxuygMVvSf5NSZewzwuRXFiBCpNTiJNzk4NiLbtjXu x4RVSS0SPm15o1Nd/hIawvuoDtVoPjZF0KO91JBb02KM3nwLCS8Sjan2XyHHp5j6N8XE iSord9g+3ZXC9g34ha6/6HJuHL00QHQljR0XuLhLzr40mL2YaCkrEd46p9OS+gqiWJii wdhF69Y2cvdGFamVAlEvFaEIFhLMg6ATECKpAkADlbdegoceCTejlLkkv4fK55n9Mrzv V45w== X-Gm-Message-State: AOJu0Yzz3b5Cvbj145UanrClSFX2dX7q4cP1iUpKF8M4TD9O+llaji2u SAFsUu8NY1CXcIBgAkAVqC5/EO5rOf2i72e34wjBdhFEMjLtPg3jSU3W2vwbgpiJksNa04OTp83 ue+ARREUNejz627/vfMs1HY1xAe0= X-Google-Smtp-Source: AGHT+IFGLCTK27FZtXOdGG7jRsKKjAAAtxOOGiSDVgzA1ByNzaeiCFXUZuSqnwopWtwxX6QATWFDPhLMiK5Kr4eTqZU= X-Received: by 2002:a2e:8748:0:b0:2df:2e02:11eb with SMTP id 38308e7fff4ca-2e51fc36b1cmr77948591fa.2.1715688543993; Tue, 14 May 2024 05:09:03 -0700 (PDT) In-Reply-To: <86h6f0wsbv.fsf@gnu.org> 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:285011 Archived-At: 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-5efa4952\= 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 variab= le (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 wrote: > > > 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.