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, 15 May 2024 12:53:23 +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="16895"; 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 Wed May 15 12:55:20 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 1s7CI3-00044k-3T for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 May 2024 12:55:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7CHn-0004nL-2F; Wed, 15 May 2024 06:55:03 -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 1s7CHl-0004nC-TK for bug-gnu-emacs@gnu.org; Wed, 15 May 2024 06:55:01 -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 1s7CHl-0007IK-8f for bug-gnu-emacs@gnu.org; Wed, 15 May 2024 06:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7CHm-0004zP-BV for bug-gnu-emacs@gnu.org; Wed, 15 May 2024 06:55: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, 15 May 2024 10:55: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.171577048519165 (code B ref 70914); Wed, 15 May 2024 10:55:02 +0000 Original-Received: (at 70914) by debbugs.gnu.org; 15 May 2024 10:54:45 +0000 Original-Received: from localhost ([127.0.0.1]:42075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7CHU-0004z3-9y for submit@debbugs.gnu.org; Wed, 15 May 2024 06:54:44 -0400 Original-Received: from mail-lf1-f48.google.com ([209.85.167.48]:50339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7CHS-0004yu-4Q for 70914@debbugs.gnu.org; Wed, 15 May 2024 06:54:43 -0400 Original-Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5210684cee6so7826493e87.0 for <70914@debbugs.gnu.org>; Wed, 15 May 2024 03:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715770414; x=1716375214; 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=KnSFLpMlt0salCL6wFw5KTzlFUWLnsYt7jm2M6iZ+tA=; b=gtyQsaoVBm3Q4Xd5uAgyJEkDz85CRqGI3+HV0ms7rdSD1Y9PjLBSwqSD6u0mJAdSxO ZrIvWuakBbhDHGMHKH7dClY7E/6JvWE7ShkneGZNl1cZtyKKKnwLnOnOFWFObH6ikw4E 2uhBGwZWh0WYaroYyFn/J0km+uuuCrHlnpKzFTlyMG6jRSQpB07rFLXB33T2i3j0TC0g Cjx6/bj6gfcueaNFjWjO7+kX35CeYy/MBXW4uG7TGHzKfOQskFVKMqW05GpUL6MvnvbC dJ/++yzcHWBWETvysQz7M2S4fWjNbY2FkfA4/SlWQysA8vmiCwvYttMn0HeDFKkYlehg pwpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715770414; x=1716375214; 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=KnSFLpMlt0salCL6wFw5KTzlFUWLnsYt7jm2M6iZ+tA=; b=whJP8hg8cAE63qGiYvXfyginjeG7H5FVUdF8eFC7kN9E9ZKsyPJmiv+BVnx2m/2Gk8 XC73IfnBnudvYYRHLEtq+3AntQ7fXO7fuv43aCme7o9iEuZ0DmbMnEAjVl6SFkq1IBVj JKlG375EARyWQJAKRZVAjB4utNenEpoF/BgOBF/J6GAROS4+Ux6xpsSFPCKtyBBW7MVv lMCSdZiTWkzfJkfgVcGa4uTEcTZTKIBfCV076Ki/u8yjn0I6YBtpx6GM17TwET4WaQye faNNPRgrGAwJJbecbm+9JRwfYtBVpYDdpV/6LELXqFiQhAs1ANyIKK4xfMzRQGG39VbV wPIw== X-Gm-Message-State: AOJu0Yy+HWUTq7dSus7vyyUngPyge/F2x1owr9+CDrFhBUfF3uzYWyap 8OGaGJZhb4X2DvzkKPWGp1R/eXRjaeJAzHefgVQzek2A+Ed/GdemVHomtvfFDLLukgDL5Y8qkT+ W0s76woc45VIyxSejw1J60EcTLjw= X-Google-Smtp-Source: AGHT+IHlvYHWeWqB/URjxWjztcuUsQi0V8QjmnoMrMY7fqa06NjgqQTJF8OquqQZynD7R+gp8xRdszu3Igqbz5CB64A= X-Received: by 2002:a19:8c58:0:b0:521:7543:4534 with SMTP id 2adb3069b0e04-5220ff74bb3mr8948713e87.62.1715770414229; Wed, 15 May 2024 03:53:34 -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:285071 Archived-At: > 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. Another crash in what seems to be another location: Attaching to process 9804 [New Thread 9804.0xc30] [New Thread 9804.0x2e50] [New Thread 9804.0x19a0] [New Thread 9804.0x506c] [New Thread 9804.0x35a4] [New Thread 9804.0x4be4] [New Thread 9804.0x246c] Reading symbols from C:\programs\emacs\latest\bin\emacs.exe... (gdb) continue Continuing. [Thread 9804.0x246c exited with code 0] Thread 1 received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 9804.0x2ab4] 0x00007fffd85dd313 in KERNELBASE!DebugBreak () from C:\WINDOWS\System32\KernelBase.dll (gdb) thread apply all bt Thread 7 (Thread 9804.0x4be4): #0 0x00007fffdabf35a4 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x00007fffdab8537e in ntdll!RtlClearThreadWorkOnBehalfTicket () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0x00007fffd993257d in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll #3 0x00007fffdabaaa48 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x0000000000000000 in ?? () Thread 6 (Thread 9804.0x35a4): #0 0x00007fffdabf35a4 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x00007fffdab8537e in ntdll!RtlClearThreadWorkOnBehalfTicket () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0x00007fffd993257d in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll #3 0x00007fffdabaaa48 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x0000000000000000 in ?? () Thread 5 (Thread 9804.0x506c): #0 0x00007fffdabf35a4 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x00007fffdab8537e in ntdll!RtlClearThreadWorkOnBehalfTicket () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0x00007fffd993257d in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll #3 0x00007fffdabaaa48 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll #4 0x0000000000000000 in ?? () Thread 4 (Thread 9804.0x19a0): #0 0x00007fffdabef9d4 in ntdll!ZwWaitForSingleObject () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x00007fffd850427e in WaitForSingleObjectEx () from C:\WINDOWS\System32\KernelBase.dll #2 0x00007ff71859e488 in reader_thread () #3 0x00007fffd993257d in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll #4 0x00007fffdabaaa48 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll #5 0x0000000000000000 in ?? () Thread 3 (Thread 9804.0x2e50 "pool"): #0 0x00007fffdabf3544 in ntdll!ZwWaitForAlertByThreadId () from C:\WINDOWS\SYSTEM32\ntdll.dll #1 0x00007fffdabb91db in ntdll!RtlSleepConditionVariableSRW () from C:\WINDOWS\SYSTEM32\ntdll.dll #2 0x00007fffd8542b79 in SleepConditionVariableSRW () from C:\WINDOWS\System32\KernelBase.dll #3 0x00007fff6be8637b in ?? () from C:\programs\emacs\latest\bin\libglib-2.0-0.dll #4 0x00007fff6bee9a5b in ?? () from C:\programs\emacs\latest\bin\libglib-2.0-0.dll #5 0x00007fff6bee90a1 in ?? () from C:\programs\emacs\latest\bin\libglib-2.0-0.dll #6 0x00007fff6bf18897 in ?? () from C:\programs\emacs\latest\bin\libglib-2.0-0.dll --Type for more, q to quit, c to continue without paging--c #7 0x00007fffd9f3e634 in msvcrt!_beginthreadex () from C:\WINDOWS\System32\msvcrt.dll #8 0x00007fffd9f3e70c in msvcrt!_endthreadex () from C:\WINDOWS\System32\msvcrt.dll #9 0x00007fffd993257d in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll #10 0x00007fffdabaaa48 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll #11 0x0000000000000000 in ?? () Thread 2 (Thread 9804.0xc30): #0 0x00007fffd82e1534 in win32u!NtUserGetMessage () from C:\WINDOWS\System32\win32u.dll #1 0x00007fffd9a75eca in USER32!GetMessageW () from C:\WINDOWS\System32\user32.dll #2 0x00007ff718565e79 in w32_msg_pump () #3 0x00007ff7185665ab in w32_msg_worker () #4 0x00007fffd993257d in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll #5 0x00007fffdabaaa48 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll #6 0x0000000000000000 in ?? () Thread 1 (Thread 9804.0x2ab4): #0 0x00007fffd85dd313 in KERNELBASE!DebugBreak () from C:\WINDOWS\System32\KernelBase.dll #1 0x00007ff718565ba8 in emacs_abort () #2 0x00007ff718436aae in terminate_due_to_signal () #3 0x00007ff718457a9c in deliver_fatal_thread_signal () #4 0x00007ff7185cb122 in _gnu_exception_handler (exception_data=3D0xabbdffb9c0) at C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt_handler.c:223 #5 0x00007fffd9f2b248 in msvcrt!__C_specific_handler () from C:\WINDOWS\System32\msvcrt.dll #6 0x00007fffdabf49ff in ntdll!.chkstk () from C:\WINDOWS\SYSTEM32\ntdll.dll #7 0x00007fffdab6e466 in ntdll!RtlFindCharInUnicodeString () from C:\WINDOWS\SYSTEM32\ntdll.dll #8 0x00007fffdabf39ee in ntdll!KiUserExceptionDispatcher () from C:\WINDOWS\SYSTEM32\ntdll.dll #9 0x00007ff718494bb3 in rpl_re_compile_pattern () #10 0x00007ff718486f19 in compile_pattern () #11 0x00007ff7184871dd in looking_at_1 () #12 0x00007ff7184c5688 in Ffuncall () #13 0x00007fff6185155a in F73702d736b69702d666f72776172642d746f2d73796d626f6c_sp_skip_forward_to_symb= ol_0 () from d:\.emacs.d\.local\cache\eln\29.3-5efa4952\smartparens-7ac9a6ec-f08= b49fa.eln #14 0x00007ff7184c5688 in Ffuncall () #15 0x00007fff618426ff in F73702d6765742d7468696e67_sp_get_thing_0 () from d:\.emacs.d\.local\cache\eln\29.3-5efa4952\smartparens-7ac9a6ec-f08= b49fa.eln #16 0x00007ff7184c982c in eval_sub () #17 0x00007ff7184c9a1d in Fprogn () #18 0x00007ff7184c969d in eval_sub () #19 0x00007ff7184cbdec in internal_lisp_condition_case () #20 0x00007ff7184c969d in eval_sub () #21 0x00007ff7184c969d in eval_sub () #22 0x00007ff7184cb6e6 in FletX () #23 0x00007ff7184c969d in eval_sub () #24 0x00007ff7184ca965 in funcall_lambda () #25 0x00007ff7184caefd in apply_lambda () #26 0x00007ff7184c9070 in eval_sub () #27 0x00007ff7184ca368 in Fcond () #28 0x00007ff7184c969d in eval_sub () #29 0x00007ff7184cb885 in FletX () #30 0x00007ff7184c969d in eval_sub () #31 0x00007ff7184ca368 in Fcond () #32 0x00007ff7184c969d in eval_sub () #33 0x00007ff7184ca38d in Fcond () #34 0x00007ff7184c969d in eval_sub () #35 0x00007ff7184ca965 in funcall_lambda () #36 0x00007ff7184c5688 in Ffuncall () #37 0x00007ff7184c58b8 in Fapply () #38 0x00007ff71850eac2 in exec_byte_code () #39 0x00007ff7184ca715 in funcall_lambda () #40 0x00007ff7184c5688 in Ffuncall () #41 0x00007ff7184c58b8 in Fapply () #42 0x00007ff71850eac2 in exec_byte_code () #43 0x00007ff7184c5688 in Ffuncall () #44 0x00007ff7184c12f7 in Ffuncall_interactively () #45 0x00007ff7184c5688 in Ffuncall () #46 0x00007ff7184c2687 in Fcall_interactively () #47 0x00007ff7184c5688 in Ffuncall () #48 0x00007ff7184c12f7 in Ffuncall_interactively () #49 0x00007ff7184c5688 in Ffuncall () #50 0x00007ff7184c5b2a in Fapply () #51 0x00007ff7184c2ae0 in Fcall_interactively () #52 0x00007fff835befdf in F636f6d6d616e642d65786563757465_command_execute_0 () from c:\programs\emacs\latest\lib\emacs\29.3\native-lisp\29.3-5efa4952\preloaded= \simple-fab5b0cf-9ff4140c.eln #53 0x00007ff7184c5688 in Ffuncall () #54 0x00007ff71844bdd2 in command_loop_1 () #55 0x00007ff7184c3c7d in internal_condition_case () #56 0x00007ff7184373ae in command_loop_2 () #57 0x00007ff7184c3beb in internal_catch () #58 0x00007ff71843733c in command_loop () #59 0x00007ff71843f98d in recursive_edit_1 () #60 0x00007ff71843fd50 in Frecursive_edit () #61 0x00007ff7185dd170 in main () 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.