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: Wed, 24 Apr 2024 09:07:53 +0300 Message-ID: <86zftj2szq.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30282"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70544@debbugs.gnu.org To: leuven65 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 24 08:08:56 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 1rzVoO-0007dh-GU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Apr 2024 08:08:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzVoK-0002DD-PO; Wed, 24 Apr 2024 02:08:52 -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 1rzVoI-0002CR-Me for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2024 02:08:50 -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 1rzVoI-0001MH-Ch for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2024 02:08:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rzVoZ-00057i-3T for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2024 02:09:07 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Apr 2024 06:09:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70544 X-GNU-PR-Package: emacs Original-Received: via spool by 70544-submit@debbugs.gnu.org id=B70544.171393893019517 (code B ref 70544); Wed, 24 Apr 2024 06:09:06 +0000 Original-Received: (at 70544) by debbugs.gnu.org; 24 Apr 2024 06:08:50 +0000 Original-Received: from localhost ([127.0.0.1]:56641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rzVo4-00052U-GA for submit@debbugs.gnu.org; Wed, 24 Apr 2024 02:08:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rzVnm-0004yq-PE for 70544@debbugs.gnu.org; Wed, 24 Apr 2024 02:08:29 -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 1rzVnQ-0001E8-Bu; Wed, 24 Apr 2024 02:07:56 -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=D2bEbLKUUf7SxXIFMTgQR84xbwxedML+IfhU49G4TO4=; b=roq/1OKql5p4 bjwx3tM2NwQ2tyaGPi6wJb2+pGXhUEP/vc88IN8+otCfZgvBlXDQ7mfm0y5WNgqApNnQrXKx+L9Dw aJA+CJrwOMKa9xXSpJFymMZWrtoObjN1/2U3H4P3m6GISps7Bc8abx+8UI1o508z1b2G1jdWhn/po bmXLCwy2NzKScVnoEVUAFfEyf19vP5mP1wefeJhS2u2U2kj7X5p9ziD5TSi4bDifUJ6xUfyxGq5JF mBIkfN+x13bLVDJNhuw1ikmKSaJI4ba1qp5TCU4RZ2WSrhCGYuTDj8HMDb1wCeEXheqXBdDJSmZGE R2QvnSDpf/CZ/D1bQpdhAw==; In-Reply-To: (message from leuven65 on Tue, 23 Apr 2024 20:02:39 +0200) 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:283904 Archived-At: > From: leuven65 > Date: Tue, 23 Apr 2024 20:02:39 +0200 > > On windows10, I uses git for windows, but when I execute "gitk" by "shell-command" > in emacs, it returns an error "internal error", > and emacs's cpu usage becomes full forever, except for restarting emacs, I cannot reproduce this. But my Git for Windows is quite old, so maybe newer versions made some change? What is gitk on your machine? Is it a gitk.exe program or some kind of script? > The issue can be easily reproduced by directly eval following sexp: > > (call-process-region (point-min) (point-max) > "cmdproxy.exe" > t > t > nil > "-c" > "gitk") gitk is a GUI program, so why are you invoking it with call-process-region? gitk will never read anything from its stdin or write anything to its stdout. I suggest to invoke gitk from Emacs like this: M-! gitk & RET IOW, add the "&" character at the end of the command line to make the invocation asynchronous, instead of letting Emacs block until gitk exits.