From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#17172: 24.3.50; Timeouts when pasting from mouse Date: Tue, 15 Apr 2014 09:01:46 -0700 Organization: UCLA Computer Science Department Message-ID: <534D57EA.1000503@cs.ucla.edu> References: <87eh1fsved.fsf@linaro.org> <534CE79A.3030600@cs.ucla.edu> <534D0749.3060404@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1397577808 31048 80.91.229.3 (15 Apr 2014 16:03:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2014 16:03:28 +0000 (UTC) Cc: Alex =?UTF-8?Q?Benn=C3=A9e?= , 17172@debbugs.gnu.org To: "Jan D." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 15 18:03: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 1Wa5pQ-0000EW-QU for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Apr 2014 18:03:20 +0200 Original-Received: from localhost ([::1]:50128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa5pQ-0005Vl-Fj for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Apr 2014 12:03:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa5pG-0005Tb-Gx for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 12:03:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wa5p8-0005Do-E6 for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 12:03:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa5p8-0005DZ-Be for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 12:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wa5p7-0003N1-Qi for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2014 12:03:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Apr 2014 16:03:01 +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.139757772512865 (code B ref 17172); Tue, 15 Apr 2014 16:03:01 +0000 Original-Received: (at 17172) by debbugs.gnu.org; 15 Apr 2014 16:02:05 +0000 Original-Received: from localhost ([127.0.0.1]:49041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wa5oB-0003LQ-V4 for submit@debbugs.gnu.org; Tue, 15 Apr 2014 12:02:04 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:52135) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wa5o9-0003Kr-Fz for 17172@debbugs.gnu.org; Tue, 15 Apr 2014 12:02:02 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 8332839E8018; Tue, 15 Apr 2014 09:01:55 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 41rvTUJcmUUx; Tue, 15 Apr 2014 09:01:46 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id C667E39E8015; Tue, 15 Apr 2014 09:01:46 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <534D0749.3060404@swipnet.se> 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:88032 Archived-At: 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. 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. There are some other glitches there too, e.g., mask bits might not be properly cleared if pselect times out and returns zero. Since the patch fixes bugs (even if not *this* bug) I installed it as emacs-24 bzr 116966. And thanks, Eli, for fixing the ChangeLog entries I inadvertently nuked. I was fixing them myself but bzr is pretty slow for me. I don't know how it happened; I just edited the ChangeLog file as usual with emacs-24 Emacs.