From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#33050: 27.0.50; [macOS] Problem with process input with process-connection-type nil Date: Mon, 15 Oct 2018 22:03:19 +0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539630130 13164 195.159.176.226 (15 Oct 2018 19:02:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2018 19:02:10 +0000 (UTC) To: 33050@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 15 21:02:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC87x-0003Je-5w for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 21:02:05 +0200 Original-Received: from localhost ([::1]:54412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC8A3-0005MD-OK for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Oct 2018 15:04:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC89u-0005Lx-Ei for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:04:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC89q-0004jG-Rb for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:04:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47167) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gC89q-0004j6-Mm for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gC89q-0000xu-Gl for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Oct 2018 19:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33050 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15396302283687 (code B ref -1); Mon, 15 Oct 2018 19:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2018 19:03:48 +0000 Original-Received: from localhost ([127.0.0.1]:51425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC89c-0000xP-04 for submit@debbugs.gnu.org; Mon, 15 Oct 2018 15:03:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gC89b-0000xC-3E for submit@debbugs.gnu.org; Mon, 15 Oct 2018 15:03:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC89V-0004a0-3u for submit@debbugs.gnu.org; Mon, 15 Oct 2018 15:03:41 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gC89U-0004Zq-Ug for submit@debbugs.gnu.org; Mon, 15 Oct 2018 15:03:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gC89U-0005G7-2r for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:03:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gC89O-0004Vp-G2 for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:03:40 -0400 Original-Received: from new1-smtp.messagingengine.com ([66.111.4.221]:47135) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gC89O-0004Oq-8g for bug-gnu-emacs@gnu.org; Mon, 15 Oct 2018 15:03:34 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 56D56202B for ; Mon, 15 Oct 2018 15:03:22 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 15 Oct 2018 15:03:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:subject:date:message-id:mime-version:content-type; s= fm1; bh=uK1TznGgQa9BD31p2TxswhlJhhA2PYlQoqBdJdenq74=; b=DNhz0Jxm Gedff/15O2hACxLD9/2EDZxn5qrdQ7yQ3SsQUVdYlkn/fEb2WNXBRCMYwE0em39D ZmqjsfXuhcDUZZnpl8EXceZoxumt1kYCkhIf+ZKOIKzWTf40czy/59MNNYinAeH9 2+XiNVeLA06co1anDLjb0ZEU7fdEAKU2/AVTmFqXZcO04BajOptZuw6q6hAgDK4H vBJu0Gy8BhLx2RQLRT67IT3VgEgU3MGuWRYLvvXoVnrhloMQBWOiKxNB1f5pv9OA kj2ZYDXPKPGBky5o6vsQKf37acXBj74TBLD7acHYoFtug9ojgFYivfuys6Z0IwNY 3BlS62K/WBohqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=uK1TznGgQa9BD31p2TxswhlJhhA2P YlQoqBdJdenq74=; b=MCW8sYn+A+fOczfwNBHdG39FX8Gojw28kHI4Vzemu3j4C iCGhiBmSxtXTG8d5uzSvzLCj/Z6PCaXB4RtxyZ4kZh+0x2IKCE0OYlkPPHgokKuR 0lcTibHj65nFE6Xx7dDVZqQxD2Tfqs3yosEQuxh0vHTH2tls7jUR8qbD+o64WCte cG1Fp70PY88ScgaCOoZbVpEllvcwGOxPser78R5khpdB/h1YsJgbtY0TLHw3RePd 6Q+Ni+fYz6MoRJ2Fk6r1iWoujjHy6YnvIXIoqq9Ppc1hboQiabod+MVZ3ZjoSn/u kPc9nf6wNFL/CQ2reEa6F0Q9F/WU2dyYLIrED2n5Q== X-ME-Sender: X-ME-Proxy: Original-Received: from fgunbin.playteam.ru (unknown [95.161.147.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A1F6E44DC for ; Mon, 15 Oct 2018 15:03:21 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151283 Archived-At: I was investigating why eudc-ldap hangs, and stripped the problem to the following (did this in emacs -Q): (let ((buf (get-buffer-create "my-process-buf"))) (with-current-buffer buf (erase-buffer) (let* ((process-connection-type nil) (proc (start-process "my-process" buf "/usr/bin/read" "-p" "enter something:"))) (while (null (progn (goto-char (point-min)) (re-search-forward "enter something:" (point-max) t))) (accept-process-output proc 1) (message "proc status: %s" (process-status proc))) (message "found prompt") (message "proc status: %s" (process-status proc)) (process-send-string proc "asdf") (process-send-string proc "\n") (while (not (memq (process-status proc) '(exit signal))) (sit-for 0.1)) (message "exited")))) If I let-bind process-connection-type to t (use pty) in above code, then it works normally: *Messages* : proc status: run found prompt proc status: run exited "exited" Buffer "my-process-buf": enter something: Process my-process<2> finished But if I let-bind process-connection-type to nil (so does ldap.el), then it hangs, and after a few seconds wait and C-g, *Messages* has only this: "proc status: run [6 times]", and buffer my-process-buf is empty. This is emacs master built with ./configure CC=/usr/bin/gcc --without-x --without-sound --with-ns --with-file-notification=no --with-gnutls --with-json --with-modules --with-threads --with-xml2 && make Also tried --without-threads - same behavior. Thanks. In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin17.7.0, NS appkit-1561.60 Version 10.13.6 (Build 17G65)) of 2018-10-15 built on fgunbin.playteam.ru Repository revision: 3d91dc1bb5aeecda786ebe1805c33d14c8bd89fa System Description: Mac OS X 10.13.6