From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#17172: 24.3.50; Timeouts when pasting from mouse Date: Tue, 15 Apr 2014 19:29:20 +0200 Message-ID: References: <87eh1fsved.fsf@linaro.org> <534CE79A.3030600@cs.ucla.edu> <534D0749.3060404@swipnet.se> <534D57EA.1000503@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1397583029 22710 80.91.229.3 (15 Apr 2014 17:30:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2014 17:30:29 +0000 (UTC) Cc: Alex =?UTF-8?Q?Benn=C3=A9e?= , 17172@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 15 19:30:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wa7Bd-0000FR-JA for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Apr 2014 19:30:21 +0200 Original-Received: from localhost ([::1]:51057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa7Bd-0005w0-5I for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Apr 2014 13:30:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa7BT-0005pT-VQ for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 13:30:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wa7BO-0003wa-1e for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 13:30:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa7BN-0003v4-Vp for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 13:30:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wa7BM-00061N-Rz for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 13:30:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Apr 2014 17:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17172 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17172-submit@debbugs.gnu.org id=B17172.139758297223059 (code B ref 17172); Tue, 15 Apr 2014 17:30:04 +0000 Original-Received: (at 17172) by debbugs.gnu.org; 15 Apr 2014 17:29:32 +0000 Original-Received: from localhost ([127.0.0.1]:49114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wa7Ap-0005zq-GG for submit@debbugs.gnu.org; Tue, 15 Apr 2014 13:29:32 -0400 Original-Received: from mailfe04.swip.net ([212.247.154.97]:49196 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wa7Am-0005zU-FP for 17172@debbugs.gnu.org; Tue, 15 Apr 2014 13:29:29 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 491886847; Tue, 15 Apr 2014 19:29:21 +0200 In-Reply-To: <534D57EA.1000503@cs.ucla.edu> X-Mailer: Apple Mail (2.1874) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:88036 Archived-At: Hello. 15 apr 2014 kl. 18:01 skrev Paul Eggert : > Jan D. wrote: >> I don't think xgselect has anything to do with this. Either a = response >> comes on the X connection, or it doesn't. It can't come anywhere = else. >=20 > Although there's every chance you are right, the existing code is = definitely buggy: if one of glib's fds is greater than xgselect's = initial fds_lim, xgselect can inspect garbage in its masks, which can't = be good. =20 That can't happen, all masks are initialized with FD_ZERO. If we passed masks with garbage in them to pselect we would get EINVAL = back. And we don't. > There are some other glitches there too, e.g., mask bits might not be = properly cleared if pselect times out and returns zero. In that case, process.c does not inspect the masks, so this change fixes = nothing. >=20 > Since the patch fixes bugs (even if not *this* bug) I installed it as = emacs-24 bzr 116966. Well, it does not fix any user visible bug, not any theoretical bug. If this was a general select emulation you could argue that it did not = conform to the select specification, but it is not that. It is = something for Emacs to use, and in that context you did not fix any = bugs. Nor does these changes have anything to do with this bug, you = just used it as a means to get untested code into the emacs-24 branch. Jan D.