From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: wait_reading_process_ouput hangs in certain cases (w/ patches) Date: Tue, 13 Mar 2018 16:30:02 +0100 Message-ID: <87r2ooat8l.fsf@gmail.com> References: <709614e8-1937-07c1-f554-b453ed4f3d4a@binary-island.eu> <7550438b-9fd4-d374-e571-8bb16456cad5@cs.ucla.edu> <797d0e16-1bae-50c2-35f8-05489ffce935@binary-island.eu> <83tvugdiu5.fsf@gnu.org> <877er5s0xv.fsf@gmail.com> <4e4c72bb-295d-81e1-e4ed-cad256bca83c@binary-island.eu> <87zi3v9461.fsf@gmail.com> <87k1uy8x68.fsf@gmail.com> <6d1970af-8c5c-20ba-be09-0b9aa757d663@binary-island.eu> <13b3e003-d12b-33a7-3ebe-c07b017a7cc0@binary-island.eu> <87r2oow3uc.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520954906 28530 195.159.176.226 (13 Mar 2018 15:28:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2018 15:28:26 +0000 (UTC) Cc: Paul Eggert , Lars Ingebrigtsen , =?utf-8?Q?a?= =?utf-8?Q?ndr=C3=A9s_ram=C3=ADrez?= , Eli Zaretskii , emacs-devel@gnu.org To: Matthias Dahl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 13 16:28:21 2018 Return-path: Envelope-to: ged-emacs-devel@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 1evlqe-0007Ho-VK for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2018 16:28:21 +0100 Original-Received: from localhost ([::1]:40519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evlsh-0001Vw-2J for ged-emacs-devel@m.gmane.org; Tue, 13 Mar 2018 11:30:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evlsT-0001R9-1v for emacs-devel@gnu.org; Tue, 13 Mar 2018 11:30:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evlsS-0002vT-0K for emacs-devel@gnu.org; Tue, 13 Mar 2018 11:30:13 -0400 Original-Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:36223) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evlsL-0002rx-Po; Tue, 13 Mar 2018 11:30:05 -0400 Original-Received: by mail-wr0-x22d.google.com with SMTP id d10so21611wrf.3; Tue, 13 Mar 2018 08:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=IVnokH9bzKUzsvv0mS/Lc69SBjUvxAdG1X1UnrFAPQg=; b=l0xJxUAR71D1uYwyRuzx7Lj1gnWl+t6Ds68i/OML2phuNILIexZ2w5ok9EqTGUs3d9 L7ii0mA4YCsZFZc5hbUn9YVxhd0l6ZaHVILHeTmhUSBnWH44IYn7HJ4DQCLcKAWfz3G5 0TVfyhm3XHby/8wOgPSsHTynlNlnIUNBPw/HqJGczxy26KuTfpD0EcoMeJ2Zgc3gdQr/ LyIeMMtA6BxtaOob5l/mOlyzz4+0FcMd9tLz9gJfRMzBTvCPO2jgIl8dtfK1E1RFxbe/ /puRIDNZR2rMUkptHXQhEjFTDruJ/cALmqghztSvp67DwmUs73YJ3qPjj0/3RyPWINTw QVNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=IVnokH9bzKUzsvv0mS/Lc69SBjUvxAdG1X1UnrFAPQg=; b=ZDecoJGUr+FjU2VVl0r75DJu4fTrXHqLVyKiyWfn0RA38hJfSG1EhTGU58PT3FQO+T qs/4KkEzGMLlKbdWpVqI84evU/RlcJ0Y7TJP/VwFCXpMZ8X3jRcI8EmnDjTIs91VRtVs z5xeKMMPWaNd3HXvtcwHmcxZFskt/ss4G2aVGyxBrF4XOEtsAgR8Jv4j7xrfhmwVkFCw xzOdkoS0nOjHM2gdLpodHQjnRpu2BjdYoeQ/3c+NSfGRTiYyYkHuWuKY9SZYfEfRIiol UruMFbIR6lZNwVZi1lRSTpz12r+6rF4zxYYK5Kj/VYBP3qs10IawG+MVnK2TrfWjOhme PySg== X-Gm-Message-State: AElRT7F2mVebOAz6GpmO7EyMK+sRhD06xcjRyOqC3neR3cbUqWxF2Xlr U7OrpUZhC4PYHjco+CD2qkw= X-Google-Smtp-Source: AG47ELt9RpyU1GzthZf2FnBPfOO/f9rAotGZVruUsECdaDayvpNk4PHxr/gUb+bmTvO4txVkbTOhYA== X-Received: by 10.28.168.86 with SMTP id r83mr1166217wme.37.1520955004441; Tue, 13 Mar 2018 08:30:04 -0700 (PDT) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id y68sm607260wrb.73.2018.03.13.08.30.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Mar 2018 08:30:03 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Matthias Dahl's message of "Tue, 13 Mar 2018 16:10:13 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223690 Archived-At: Matthias Dahl writes: > Hi Robert, > > Thank you very much for pointing this out. You are absolutely correct, > my patches did undo your fix. > > I did some digging and attached is a fix for xg_select() which did not > properly imitate pselect() behavior in all cases. That ultimately caused > the bug you were seeing. Yes, that does look to be the root cause. > @Lars and Andr=C3=A9s: When testing the previously sent patches, please a= lso > include this one here or otherwise you will (sooner or later) run into a > different kind of problems. I've briefly tested with this on top of your previous second patch, and I haven't seen any occurences of 21337 so far. Regards Robert