From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Question about wait_reading_process_output Date: Mon, 15 Jun 2015 10:23:21 +0200 Message-ID: <87d20xs7ly.fsf@gnu.org> References: <874mmmbi2p.fsf@linaro.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1434356684 23392 80.91.229.3 (15 Jun 2015 08:24:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jun 2015 08:24:44 +0000 (UTC) Cc: 16737@debbugs.gnu.org, Alex =?utf-8?Q?Benn=C3=A9e?= , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 15 10:24:36 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Z4Ph6-0003V8-8k for ged-emacs-devel@m.gmane.org; Mon, 15 Jun 2015 10:24:36 +0200 Original-Received: from localhost ([::1]:32973 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Ph5-000620-Cm for ged-emacs-devel@m.gmane.org; Mon, 15 Jun 2015 04:24:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Pg0-0004yU-Ek for emacs-devel@gnu.org; Mon, 15 Jun 2015 04:23:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4Pfv-0006uS-AE for emacs-devel@gnu.org; Mon, 15 Jun 2015 04:23:28 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:43535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Pfv-0006tY-17 for emacs-devel@gnu.org; Mon, 15 Jun 2015 04:23:23 -0400 Original-Received: from thinkpad-t440p (dhcp148.uni-koblenz.de [141.26.71.148]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 4C3461A8324; Mon, 15 Jun 2015 10:23:22 +0200 (CEST) Mail-Followup-To: Stefan Monnier , 16737@debbugs.gnu.org, Alex =?utf-8?Q?Benn=C3=A9e?= , emacs-devel In-Reply-To: (Stefan Monnier's message of "Sun, 14 Jun 2015 23:47:42 -0400") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187166 Archived-At: Stefan Monnier writes: >> I've been digging into the code trying to get an idea of why >> bug#16737 fires. My question is where in wait_reading_process_output >> does it ensure the various terminal socket reads are run? This doesn't really address your question but maybe it gives an indication. Since bug#16737 started occurring to be, I compile emacs with -DTRACE_SELECTION and then collect the output it delivers. The below output was gathered when I yanked into emacs where it always took 5 seconds (`x-selection-timeout') until the text I had previously copied from the browser was inserted. This seems to be another instance of the bug because actually the correct text has been inserted; it just took very long. Bye, Tassilo --8<---------------cut here---------------start------------->8--- 6019: Sent SelectionNotify: CLIPBOARD, target TARGETS (7511) 6019: x_stop_queuing_selection_requests 1 6019: x_handle_selection_event 6019: x_handle_selection_event 6019: x_start_queuing_selection_requests 1 6019: x_handle_selection_request: selection=CLIPBOARD, target=TARGETS 6019: XInternAtom LENGTH 6019: XInternAtom FILE_NAME 6019: XInternAtom CHARACTER_POSITION 6019: XInternAtom LINE_NUMBER 6019: XInternAtom COLUMN_NUMBER 6019: XInternAtom OWNER_OS 6019: XInternAtom HOST_NAME 6019: XInternAtom USER 6019: XInternAtom CLASS 6019: XInternAtom NAME 6019: XInternAtom SAVE_TARGETS 6019: Sending all 84 bytes 6019: Sent SelectionNotify: CLIPBOARD, target TARGETS (7512) 6019: x_stop_queuing_selection_requests 1 6019: x_handle_selection_event 6019: x_handle_selection_event 6019: x_start_queuing_selection_requests 1 6019: x_handle_selection_request: selection=CLIPBOARD, target=TARGETS 6019: XInternAtom LENGTH 6019: XInternAtom FILE_NAME 6019: XInternAtom CHARACTER_POSITION 6019: XInternAtom LINE_NUMBER 6019: XInternAtom COLUMN_NUMBER 6019: XInternAtom OWNER_OS 6019: XInternAtom HOST_NAME 6019: XInternAtom USER 6019: XInternAtom CLASS 6019: XInternAtom NAME 6019: XInternAtom SAVE_TARGETS 6019: Sending all 84 bytes 6019: Sent SelectionNotify: CLIPBOARD, target TARGETS (7513) 6019: x_stop_queuing_selection_requests 1 6019: x_handle_selection_event 6019: x_start_queuing_selection_requests 1 6019: x_handle_selection_request: selection=CLIPBOARD, target=TARGETS 6019: XInternAtom LENGTH 6019: XInternAtom FILE_NAME 6019: XInternAtom CHARACTER_POSITION 6019: XInternAtom LINE_NUMBER 6019: XInternAtom COLUMN_NUMBER 6019: XInternAtom OWNER_OS 6019: XInternAtom HOST_NAME 6019: XInternAtom USER 6019: XInternAtom CLASS 6019: XInternAtom NAME 6019: XInternAtom SAVE_TARGETS 6019: Sending all 84 bytes 6019: Sent SelectionNotify: CLIPBOARD, target TARGETS (7514) 6019: x_stop_queuing_selection_requests 1 6019: x_handle_selection_event 6019: x_handle_selection_clear 6019: x_handle_selection_event 6019: x_handle_selection_clear 6019: Get selection UTF8_STRING, type _EMACS_TMP_ 6019: Start waiting 5 secs for SelectionNotify 6019: Got event = 0 6019: Get selection UTF8_STRING, type _EMACS_TMP_ 6019: Start waiting 5 secs for SelectionNotify 6019: Got event = 0 6019: Received SelectionNotify 6019: Get selection STRING, type _EMACS_TMP_ 6019: Start waiting 5 secs for SelectionNotify 6019: Got event = 0 6019: Received SelectionNotify --8<---------------cut here---------------end--------------->8---