From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Arnold Newsgroups: gmane.emacs.bugs Subject: bug#67510: 29.1; macOS accept-process-output line length limit of 1024 Date: Tue, 28 Nov 2023 11:14:09 +0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002a1a1c060b2ea763" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27064"; mail-complaints-to="usenet@ciao.gmane.io" To: 67510@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 28 15:22:07 2023 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 1r7yyT-0006id-VN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Nov 2023 15:22:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7yyK-00027O-WE; Tue, 28 Nov 2023 09:21:57 -0500 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 1r7yyJ-000275-RD for bug-gnu-emacs@gnu.org; Tue, 28 Nov 2023 09:21:55 -0500 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 1r7yyJ-0000ry-J2 for bug-gnu-emacs@gnu.org; Tue, 28 Nov 2023 09:21:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7yyQ-0002F4-4N for bug-gnu-emacs@gnu.org; Tue, 28 Nov 2023 09:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Max Arnold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Nov 2023 14:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67510 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17011813018577 (code B ref -1); Tue, 28 Nov 2023 14:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Nov 2023 14:21:41 +0000 Original-Received: from localhost ([127.0.0.1]:45859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7yy4-0002EF-7M for submit@debbugs.gnu.org; Tue, 28 Nov 2023 09:21:41 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:44094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7pUf-0005lQ-QO for submit@debbugs.gnu.org; Mon, 27 Nov 2023 23:14:42 -0500 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 1r7pUT-0001XS-RM for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2023 23:14:29 -0500 Original-Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7pUR-0000RD-U2 for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2023 23:14:29 -0500 Original-Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-5c1f8b0c149so3312859a12.3 for ; Mon, 27 Nov 2023 20:14:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701144861; x=1701749661; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=V53aPRIJft9W25DcHaL2UlhL0OXZGActFZAW1wxDGRI=; b=MyXAo/xhW9cA5wezxiAi7eHFcE2MnCfqMOslAKyisMtsHJIq2uJTgFPeINI5XV2UWk 1ZWGhTtWBpgoNL6VC1/Szbaovmhr6ZRWrkTGffYKdpgqMrMTOY3sHZVsCXxzRkBLNlQk db80YnwiU5pVQ+2F09cTkQuyBWmmQ+N6WD3EIJO/MNv7BSfx0Ty2yqsGo5QVQ0E6Kv/0 HZEVvwHF2Zd7wIvf4lPCZ6zVrBVU+9T7243tuLFSoTUL85l22QvfU9TaAbSjhmEtSlqm 91KtYMM7KKUmitVOBVDOdRw6EmcQnGTH6JoJgRtmlHQKWMYmaSnxNV8l57UOj2qkbZfY jB4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701144861; x=1701749661; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=V53aPRIJft9W25DcHaL2UlhL0OXZGActFZAW1wxDGRI=; b=sRw8BKuROi1rYXCzvWsfw2nkJuZ3yYHXbuptnTk/xsbLFnVUX18liEK36UaftrO2+0 xIR9N4lJ/O1OUqRUOUAE8HmTFv/J8YvLeTWy4zBJSHfvQArImFHhWewBEqcfuLQG3EeK rT5rCp11tX6v5afzPxG4h6kwGXB6Hh+I0LXnHa2w1zVwR7Va+bzZq0KZj/mV7QPuXSqc xrdUZwfbpxtwDiJoBsetS7+46EvcHJhd3usawKtyIrYpTkYHvdc/iSSMFiHOkj2muHwv 8W8kcPWc7nEi7NiLWsT8cgYjFJZIKLKHthGELUaJoIpt09cJ8LZSQ+SBsWKSfq9+g5XV z/xg== X-Gm-Message-State: AOJu0YwRzPOEXoyDYR3geVWAHn6R6NJcOga5H/PuoaKCd7BDZN5F3rCZ ClkJ7jV59OpJGlEpd0+hxLXqAHYRITcb+ufN3wBlF4i866Am X-Google-Smtp-Source: AGHT+IHN12ACYYsyXq2sP6/mMhCGdEf83O32X49hdSsij53qqdVEvKubDofPfCsAlTTOjxNlFBeeXD224hs/rscy1d0= X-Received: by 2002:a05:6a20:a1a0:b0:18b:3b9e:93f2 with SMTP id r32-20020a056a20a1a000b0018b3b9e93f2mr11359993pzk.3.1701144861217; Mon, 27 Nov 2023 20:14:21 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=arnold.maxim@gmail.com; helo=mail-pg1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 28 Nov 2023 09:21:39 -0500 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:275162 Archived-At: --0000000000002a1a1c060b2ea763 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable blacken-buffer (from https://github.com/pythonic-emacs/blacken/blob/master/blacken.el) hangs at accept-process-output C call if a Python code line length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= @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" ``` mytest.el: ``` (defun test-blacken () (add-to-list 'load-path "~/.emacs.d/elpa/blacken-20230821.1738") (require 'blacken) (find-file "/tmp/mytest.py") (blacken-buffer) ) ``` Test command: /Applications/Emacs.app/Contents/MacOS/Emacs -Q -l mytest.el -f test-blacken Emacs build https://github.com/railwaycat/homebrew-emacsmacport/releases/tag/emacs-29.1= -mac-10.0 In GNU Emacs 29.1 (build 1, x86_64-apple-darwin21.6.0, Carbon Version 165 AppKit 2113.6) of 2023-08-08 built on Mac-1691500888998.local Repository revision: e173249a143cee72d59ae78c4e11038512f5a00f Repository branch: 29.1-mac-10.0 Windowing system distributor 'Apple Inc.', version 13.6.1 System Description: macOS 13.6.1 Configured using: 'configure --with-mac --enable-locallisppath=3D/usr/local/share/emacs/site-lisp:/opt/homebrew/sh= are/emacs/site-lisp --enable-mac-app=3D/Users/runner/work/homebrew-emacsmacport/homebrew-emacs= macport/build-scripts/build_out/tmproot --prefix=3D/Users/runner/work/homebrew-emacsmacport/homebrew-emacsmacport/= build-scripts/build_out/tmproot --enable-mac-self-contained --with-modules --with-xwidgets --with-tree-sitter --without-lcms2 --without-webp' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER XWIDGETS ZLIB Important settings: value of $LANG: ru_RU.UTF-8 locale-coding-system: utf-8-unix --0000000000002a1a1c060b2ea763 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
blacken-buffer (from https://github.com/pythonic-emacs/b= lacken/blob/master/blacken.el) hangs
at accept-process-output C call= if a Python code line length exceeds 1024 characters.

A quick repro= ducer:

mytest.py:

```
assert res =3D=3D
"@@@@@@@@@= @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@= @@@@@@@@@@@@@@@@@@@@@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py")
=C2=A0 (blacken-buffer)
=C2=A0= )
```

Test command:

/Applications/Emacs.app/Contents/MacO= S/Emacs -Q -l mytest.el -f
test-blacken

Emacs build
https://github.com/railwaycat/homebrew-emacsmacport/releases/ta= g/emacs-29.1-mac-10.0

In GNU Emacs 29.1 (build 1, x86_64-apple-d= arwin21.6.0, Carbon Version
=C2=A0165 AppKit 2113.6) of 2023-08-08 built= on Mac-1691500888998.local
Repository revision: e173249a143cee72d59ae78= c4e11038512f5a00f
Repository branch: 29.1-mac-10.0
Windowing system d= istributor 'Apple Inc.', version 13.6.1
System Description: =C2= =A0macOS 13.6.1

Configured using:
=C2=A0'configure --with-mac=
=C2=A0--enable-locallisppath=3D/usr/local/share/emacs/site-lisp:/opt/ho= mebrew/share/emacs/site-lisp
=C2=A0--enable-mac-app=3D/Users/runner/work= /homebrew-emacsmacport/homebrew-emacsmacport/build-scripts/build_out/tmproo= t
=C2=A0--prefix=3D/Users/runner/work/homebrew-emacsmacport/homebrew-ema= csmacport/build-scripts/build_out/tmproot
=C2=A0--enable-mac-self-contai= ned --with-modules --with-xwidgets
=C2=A0--with-tree-sitter --without-lc= ms2 --without-webp'

Configured features:
ACL GMP GNUTLS JSON = LIBXML2 MODULES NOTIFY KQUEUE PDUMPER SQLITE3
THREADS TOOLKIT_SCROLL_BAR= S TREE_SITTER XWIDGETS ZLIB

Important settings:
=C2=A0 value of $= LANG: ru_RU.UTF-8
=C2=A0 locale-coding-system: utf-8-unix
--0000000000002a1a1c060b2ea763--