From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#16737: Question about wait_reading_process_output Date: Mon, 15 Jun 2015 10:23:21 +0200 Message-ID: <87d20xs7ly.fsf__24905.7880290367$1434356704$gmane$org@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 1434356704 23606 80.91.229.3 (15 Jun 2015 08:25:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jun 2015 08:25:04 +0000 (UTC) Cc: 16737@debbugs.gnu.org, Alex =?UTF-8?Q?Benn=C3=A9e?= , emacs-devel To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 15 10:24:52 2015 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 1Z4PhK-0003Zn-6l for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jun 2015 10:24:50 +0200 Original-Received: from localhost ([::1]:32976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4PhJ-0006Sm-Ap for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jun 2015 04:24:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Pgd-0005hC-9O for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 04:24:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4PgY-0007Ei-9m for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 04:24:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4PgY-0007EW-77 for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 04:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z4PgY-0004dq-1v for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 04:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jun 2015 08:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16737 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16737-submit@debbugs.gnu.org id=B16737.143435661217803 (code B ref 16737); Mon, 15 Jun 2015 08:24:01 +0000 Original-Received: (at 16737) by debbugs.gnu.org; 15 Jun 2015 08:23:32 +0000 Original-Received: from localhost ([127.0.0.1]:54343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4Pg3-0004d4-6q for submit@debbugs.gnu.org; Mon, 15 Jun 2015 04:23:31 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:42384) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4Pg0-0004cq-2y for 16737@debbugs.gnu.org; Mon, 15 Jun 2015 04:23:29 -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-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:103957 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---