GNU bug report logs - #17172
24.3.50; Timeouts when pasting from mouse

Previous Next

Package: emacs;

Reported by: Alex Bennée <alex.bennee <at> linaro.org>

Date: Wed, 2 Apr 2014 13:40:02 UTC

Severity: important

Tags: moreinfo, patch

Merged with 16737, 17026, 17101, 19320, 20283

Found in versions 24.3.50, 24.4, 25.0.50

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Alex Bennée <alex.bennee <at> linaro.org>, "17172 <at> debbugs.gnu.org" <17172 <at> debbugs.gnu.org>
Subject: bug#17172: 24.3.50; Timeouts when pasting from mouse
Date: Tue, 15 Apr 2014 22:41:23 +0200
Hello. 

> 15 apr 2014 kl. 22:19 skrev Paul Eggert <eggert <at> cs.ucla.edu>:
> 
> Jan Djärv wrote:
>> That can't happen, all masks are initialized with FD_ZERO.
> 
> True, but after that they can be reused in some cases and it's not immediately obvious that they are guaranteed to be properly reinitialized for every call to xg_select.

They are not reinitialized with FD_ZERO, but no garbage bits are ever set. 

> 
>> If we passed masks with garbage in them to pselect we would get EINVAL back.
> 
> Not if the garbage's 1 bits happen to correspond to open file descriptors.

But there are no garbage bits.

> 
>> In that case, process.c does not inspect the masks, so this change fixes nothing.
> 
> Although it doesn't inspect the masks right away, in some cases it reuses a mask later.  The code is reasonably tricky here.

Not so you can't follow it. 

> 
>> you just used it as a means to get untested code into the emacs-24 branch
> 
> Hmm, well, that's a bit unfair as I did test it, but as you're sure the change doesn't fix any user-visible bugs I reverted it.

It was not tested by the OP of this bug. 

     Jan D. 



This bug report was last modified 9 years and 299 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.