all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: leuven65@gmail.com
Cc: 70544@debbugs.gnu.org
Subject: bug#70544: 30.0.50; The primitive-function "call-process-region" returns "internal error" and causes high cpu usage on win10
Date: Thu, 09 May 2024 10:16:12 +0300	[thread overview]
Message-ID: <867cg38ngj.fsf@gnu.org> (raw)
In-Reply-To: <86r0ev2mms.fsf@gnu.org> (message from Eli Zaretskii on Wed, 24 Apr 2024 11:25:15 +0300)

tags 70544 moreinfo
thanks

Ping!  Can anyone reproduce this and/or tell more about what gitk.exe
wants and why it fails?

If no additional information emerges in a two-weeks time, I will close
this bug due to lack of sufficient information.

> Cc: 70544@debbugs.gnu.org
> Date: Wed, 24 Apr 2024 11:25:15 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > From: leuven65 <leuven65@gmail.com>
> > Date: Wed, 24 Apr 2024 10:12:10 +0200
> > Cc: 70544@debbugs.gnu.org
> > 
> > I use the latest version
> > "[[https://github.com/git-for-windows/git/releases/tag/v2.44.0.windows.1]]",
> > in which "a couple of bugs that could cause Git Bash to hang in
> > certain scenarios were fixed", it might cause the exit behavior of
> > "gitk.exe" changed.
> > 
> > The program gitk is "${git-installation-folder}/cmd/gitk.exe".
> > 
> > The issue only pops up when I set "(setq-default shell-file-name "cmdproxy.exe")", if set to "bash.exe", no such
> > problem.
> 
> Maybe this gitk was supposed to be invoked only from the MSYS Bash?
> If so, this is not really a problem with Emacs.
> 
> > When the issue happens, emacs is not blocked, I can smoothly input
> > in emacs, but the cpu usage of emacs is very high forever. As I
> > built emacs without debug information, what I can see so far is that
> > most of time seems to be spent on "MsgWaitForMultipleObjects".
> > 
> > I use "shell-command" (M-!) to run "gitk.exe", the correct behavior is to run "gitk" and block emacs, or exit with
> > error, in my case, it prints out error "(Shell command killed by signal internal error)" and cpu usage goes up.
> 
> I guess these all are related to the fact that gitk is not a console
> problem, but a GUI problem, and therefore should not be invoked from
> shell-command, at least not safely.  It was probably meant to be
> invoked from a shell directly, and perhaps specifically from the MSYS
> Bash which comes with Git for Windows.
> 
> Bottom line: I'm not convinced this is an Emacs problem, and I still
> don't understand why you gitk from Emacs in this manner.
> 
> In any case, to do anything with this problem, we need either a way to
> reproduce it on the system of one of our developers, or a detailed
> information regarding the reasons why Emacs is spinning calling
> MsgWaitForMultipleObjects.
> 
> 
> 
> 





  reply	other threads:[~2024-05-09  7:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-23 18:02 bug#70544: 30.0.50; The primitive-function "call-process-region" returns "internal error" and causes high cpu usage on win10 leuven65
2024-04-24  6:07 ` Eli Zaretskii
2024-04-24  8:12   ` leuven65
2024-04-24  8:25     ` Eli Zaretskii
2024-05-09  7:16       ` Eli Zaretskii [this message]
2024-05-25  7: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

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

  git send-email \
    --in-reply-to=867cg38ngj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=70544@debbugs.gnu.org \
    --cc=leuven65@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.