From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70544: 30.0.50; The primitive-function "call-process-region" returns "internal error" and causes high cpu usage on win10 Date: Sat, 25 May 2024 10:40:48 +0300 Message-ID: <86a5ke1gqn.fsf@gnu.org> References: <86zftj2szq.fsf@gnu.org> <86r0ev2mms.fsf@gnu.org> <867cg38ngj.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31455"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70544-done@debbugs.gnu.org To: leuven65@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 25 09:42: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 1sAm2s-00080t-EW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 May 2024 09:42:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sAm2P-0002mQ-9B; Sat, 25 May 2024 03:41:57 -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 1sAm2N-0002lc-R5 for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 03:41:55 -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 1sAm2N-0006GC-Iu for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 03:41:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sAm2U-0006rd-TK for bug-gnu-emacs@gnu.org; Sat, 25 May 2024 03:42:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 May 2024 07:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 70544 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Mail-Followup-To: 70544@debbugs.gnu.org, eliz@gnu.org, leuven65@gmail.com Original-Received: via spool by 70544-done@debbugs.gnu.org id=D70544.171662286526346 (code D ref 70544); Sat, 25 May 2024 07:42:02 +0000 Original-Received: (at 70544-done) by debbugs.gnu.org; 25 May 2024 07:41:05 +0000 Original-Received: from localhost ([127.0.0.1]:41812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAm1Y-0006qs-I1 for submit@debbugs.gnu.org; Sat, 25 May 2024 03:41:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sAm1W-0006qO-Os for 70544-done@debbugs.gnu.org; Sat, 25 May 2024 03:41:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sAm1K-000604-2J; Sat, 25 May 2024 03:40:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QwXCpazqMR6HifcPdo/ZFtiKWx4oRIO4RCRcYmFQ6E8=; b=UiZJVdwkJjNb zxSe52qmpzESLSLAjLl4ofg9O3CZ6jZr/VEYi7MYg7u25uEoBnHzVVM2JNA3B7BOImH0bAnOgsloj Uyn43YHV3t+lpmtLH9nzn9eTB1GbzYcixSkyaOuV3DiyvsdEc+yJqyGsjJ7hAprWKH3dSlbibb2FN rUdMuZyIxIY8+c8H8ro1paQzRgDpY8mDmwzRa6F/93sOYl9zUOrf0D8a11wRBUstcvwM3wGmIhFgT zqxEbyg8Qdzr4QgTUhi/hIXp+SaDOZjvGOr9NfBt3KMdsSz/HW7Q/Yp+kDNHq8RUDjiM9P+yqkGfq E95HcBNTJvBQpbeekZqTXw==; In-Reply-To: <867cg38ngj.fsf@gnu.org> (message from Eli Zaretskii on Thu, 09 May 2024 10:16:12 +0300) 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:285825 Archived-At: > Cc: 70544@debbugs.gnu.org > Date: Thu, 09 May 2024 10:16:12 +0300 > From: Eli Zaretskii > > 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. No further comments, so I'm closing this bug. If new information emerges, please reopen and continue the discussion of possible fixes. > > > Cc: 70544@debbugs.gnu.org > > Date: Wed, 24 Apr 2024 11:25:15 +0300 > > From: Eli Zaretskii > > > > > From: leuven65 > > > 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. > > > > > > > > > > > >