unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Simen Endsjø" <simendsjo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 70914@debbugs.gnu.org
Subject: bug#70914: 29.3; Crashes often on Windows
Date: Fri, 24 May 2024 12:13:39 +0200	[thread overview]
Message-ID: <CAHkVV6Hv5RVJijdhHFnZ7dRgKg-k2p85zuwKCBpB4E+zQsn8Sg@mail.gmail.com> (raw)
In-Reply-To: <CAHkVV6GBtVBoJg9mP6UcUgWv2=N=pfBvAtFLdB8cY-7sMHiU+Q@mail.gmail.com>

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 = "d:/tmp/foo/bar"

On Tue, May 14, 2024 at 2:08 PM Simen Endsjø <simendsjo@gmail.com> 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-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=ENU 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 variable
>   (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 PM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > > From: Simen Endsjø <simendsjo@gmail.com>
> > > 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.





  parent reply	other threads:[~2024-05-24 10:13 UTC|newest]

Thread overview: 141+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-13  8:47 bug#70914: 29.3; Crashes often on Windows Simen Endsjø
2024-05-13 10:35 ` Eli Zaretskii
2024-05-14 10:14   ` Simen Endsjø
2024-05-14 11:23     ` Eli Zaretskii
2024-05-14 12:08       ` Simen Endsjø
2024-05-14 12:30         ` Eli Zaretskii
2024-05-14 13:58           ` Simen Endsjø
2024-05-14 14:18             ` Eli Zaretskii
2024-05-15 10:25               ` Simen Endsjø
2024-05-15 11:19                 ` Simen Endsjø
2024-05-15 11:24                   ` Simen Endsjø
2024-05-15 12:20                     ` Eli Zaretskii
2024-05-15 12:15                   ` Eli Zaretskii
2024-05-15 13:50                     ` Simen Endsjø
2024-05-15 12:04                 ` Eli Zaretskii
2024-05-15 13:45                   ` Simen Endsjø
2024-05-16  7:05           ` Simen Endsjø
2024-05-16 10:11             ` Eli Zaretskii
2024-05-24 10:13         ` Simen Endsjø [this message]
2024-05-15 10:53       ` Simen Endsjø
2024-05-15 12:11         ` Eli Zaretskii
2024-05-15 13:00           ` Simen Endsjø
2024-05-15 13:36             ` Simen Endsjø
2024-05-15 13:58               ` Simen Endsjø
2024-05-15 15:25               ` Eli Zaretskii
2024-05-15 18:13                 ` Simen Endsjø
2024-05-15 18:21                   ` Simen Endsjø
2024-05-15 18:53                     ` Eli Zaretskii
2024-05-15 20:03                       ` Simen Endsjø
2024-05-16  8:07                         ` Eli Zaretskii
2024-05-16 10:50                           ` Simen Endsjø
2024-05-16 11:44                             ` Simen Endsjø
2024-05-16 12:15                               ` Eli Zaretskii
2024-05-18 18:47                           ` Simen Endsjø
2024-05-18 19:46                             ` Eli Zaretskii
2024-05-18 21:45                               ` Simen Endsjø
2024-05-19  5:50                                 ` Eli Zaretskii
2024-05-19  9:03                                   ` Eli Zaretskii
2024-05-19 17:41                                     ` Simen Endsjø
2024-05-19 18:31                                       ` Eli Zaretskii
2024-05-19 18:38                                         ` Simen Endsjø
2024-05-20 13:47                                           ` Eli Zaretskii
2024-05-20 17:54                                             ` Simen Endsjø
2024-05-20 18:20                                               ` Eli Zaretskii
2024-05-20 18:41                                                 ` Simen Endsjø
2024-05-20 19:00                                                   ` Eli Zaretskii
2024-05-20 19:22                                                     ` Eli Zaretskii
2024-05-20 20:28                                                       ` Simen Endsjø
2024-05-21 14:06                                                         ` Eli Zaretskii
2024-05-21 17:39                                                           ` Simen Endsjø
2024-05-21 18:29                                                             ` Eli Zaretskii
2024-05-21 19:05                                                               ` Hannes Domani via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-21 19:24                                                                 ` Eli Zaretskii
2024-05-21 20:31                                                                 ` Simen Endsjø
2024-05-22  4:32                                                                   ` Hannes Domani via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-22  4:35                                                                     ` Simen Endsjø
2024-05-22  5:08                                                                       ` Hannes Domani via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-22  5:57                                                                         ` Simen Endsjø
2024-05-22  6:12                                                                           ` Hannes Domani via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-22  8:16                                                                             ` Simen Endsjø
2024-05-22  8:23                                                                               ` Hannes Domani via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-22  8:41                                                                                 ` Simen Endsjø
2024-05-22  8:50                                                                                   ` Hannes Domani via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-22 11:09                                                                                     ` Simen Endsjø
2024-05-22 11:21                                                                                       ` Simen Endsjø
2024-05-22 11:24                                                                                         ` Simen Endsjø
2024-05-22 13:26                                                                                         ` Eli Zaretskii
2024-05-22 13:35                                                                                           ` Simen Endsjø
2024-05-22 14:07                                                                                             ` Eli Zaretskii
2024-05-22 11:40                                                                                     ` Eli Zaretskii
2024-05-22 11:36                                                                                   ` Eli Zaretskii
2024-05-22 11:24                                                                             ` Eli Zaretskii
2024-05-22 13:14                                                                               ` Simen Endsjø
2024-05-22 14:03                                                                                 ` Eli Zaretskii
2024-05-22 16:54                                                                                   ` Simen Endsjø
2024-05-22 18:19                                                                                     ` Eli Zaretskii
2024-05-22 19:21                                                                                       ` Simen Endsjø
2024-05-22 20:28                                                                                         ` Simen Endsjø
2024-05-23  5:19                                                                                           ` Eli Zaretskii
2024-05-23  7:31                                                                                             ` Simen Endsjø
2024-05-23  8:18                                                                                               ` Eli Zaretskii
2024-05-23 10:05                                                                                                 ` Simen Endsjø
2024-05-23 10:30                                                                                             ` Ihor Radchenko
2024-05-23 10:39                                                                                               ` Eli Zaretskii
2024-05-23 10:48                                                                                                 ` Ihor Radchenko
2024-05-23 11:31                                                                                                   ` Eli Zaretskii
2024-05-23 11:51                                                                                                     ` Ihor Radchenko
2024-05-23 13:33                                                                                                       ` Eli Zaretskii
2024-05-23 13:52                                                                                                         ` Ihor Radchenko
2024-05-23 14:05                                                                                                           ` Eli Zaretskii
2024-05-23 14:23                                                                                                             ` Ihor Radchenko
2024-05-23 16:02                                                                                                               ` Eli Zaretskii
2024-05-23 18:33                                                                                                                 ` Simen Endsjø
2024-05-23 18:46                                                                                                                   ` Eli Zaretskii
2024-05-22 12:26                                                                   ` Eli Zaretskii
2024-05-22 13:34                                                                     ` Simen Endsjø
2024-05-22 14:05                                                                       ` Eli Zaretskii
2024-05-22 14:28                                                                         ` Hannes Domani via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-22 14:58                                                                           ` Eli Zaretskii
2024-05-22 18:12                                                                             ` Hannes Domani via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-22 18:32                                                                               ` Eli Zaretskii
2024-05-21 20:01                                                               ` Simen Endsjø
2024-05-16  6:42                       ` Simen Endsjø
2024-05-16 10:03                         ` Eli Zaretskii
2024-05-16 11:00                           ` Simen Endsjø
2024-05-16 12:13                             ` Eli Zaretskii
2024-05-16 12:11                           ` Andrea Corallo
2024-05-16 12:22                             ` Eli Zaretskii
2024-05-16 15:26                               ` Andrea Corallo
2024-05-16 16:03                                 ` Eli Zaretskii
2024-05-16 17:04                                   ` Andrea Corallo
2024-05-16 18:24                                     ` Eli Zaretskii
2024-05-24  7:59                                 ` Andrea Corallo
2024-05-24 10:48                                   ` Eli Zaretskii
2024-05-27  9:53                                     ` Andrea Corallo
2024-05-27 11:55                                       ` Eli Zaretskii
2024-05-16 18:40                             ` Simen Endsjø
2024-05-16 19:28                               ` Eli Zaretskii
2024-05-16 20:13                                 ` Simen Endsjø
2024-05-16 21:03                                   ` Simen Endsjø
2024-05-17  6:51                                     ` Eli Zaretskii
2024-05-17 18:05                                       ` Simen Endsjø
2024-05-17 18:38                                         ` Eli Zaretskii
2024-05-17 20:39                                           ` Simen Endsjø
2024-05-18 11:18                                           ` Simen Endsjø
2024-05-18 11:49                                             ` Eli Zaretskii
2024-05-18 18:36                                               ` Simen Endsjø
2024-05-18 19:35                                                 ` Eli Zaretskii
2024-05-18 19:43                                                   ` Simen Endsjø
2024-05-18 11:55                                             ` Eli Zaretskii
2024-05-18 18:42                                               ` Simen Endsjø
2024-05-18 19:40                                                 ` Eli Zaretskii
2024-05-17  6:16                                   ` Eli Zaretskii
2024-05-15 18:35                   ` Eli Zaretskii
2024-05-15 15:18             ` Eli Zaretskii
2024-05-24 10:07       ` Simen Endsjø
2024-05-24 10:47         ` Eli Zaretskii
2024-05-24 13:08           ` Simen Endsjø
2024-05-27 12:54             ` Simen Endsjø
2024-05-27 13:22               ` Eli Zaretskii
     [not found]                 ` <87sey1g5dg.fsf@simendsjo.me>
2024-05-28 18:40                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHkVV6Hv5RVJijdhHFnZ7dRgKg-k2p85zuwKCBpB4E+zQsn8Sg@mail.gmail.com \
    --to=simendsjo@gmail.com \
    --cc=70914@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).