From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16737: Timed out waiting for reply from selection owner Date: Mon, 19 Jan 2015 19:46:02 +0200 Message-ID: <83mw5ey885.fsf@gnu.org> References: <21244.16071.147204.408385@gargle.gargle.HOWL> <83sif9zc9e.fsf@gnu.org> <83ppadz3g4.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1421689634 16561 80.91.229.3 (19 Jan 2015 17:47:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2015 17:47:14 +0000 (UTC) Cc: 16737@debbugs.gnu.org, o.krehel@tue.nl To: Vincent Bernat Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 19 18:47:13 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 1YDGPv-0003yy-1N for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jan 2015 18:47:11 +0100 Original-Received: from localhost ([::1]:39078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDGPu-0005bL-E6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jan 2015 12:47:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDGPq-0005Sr-6h for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 12:47:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDGPm-0003Lo-56 for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 12:47:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDGPm-0003Lj-21 for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 12:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YDGPl-0000tD-Pd for bug-gnu-emacs@gnu.org; Mon, 19 Jan 2015 12:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jan 2015 17:47: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.14216895803361 (code B ref 16737); Mon, 19 Jan 2015 17:47:01 +0000 Original-Received: (at 16737) by debbugs.gnu.org; 19 Jan 2015 17:46:20 +0000 Original-Received: from localhost ([127.0.0.1]:49840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDGP5-0000s9-Gq for submit@debbugs.gnu.org; Mon, 19 Jan 2015 12:46:19 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:38492) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDGP3-0000rw-Ja for 16737@debbugs.gnu.org; Mon, 19 Jan 2015 12:46:18 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NIF00200QGB8A00@mtaout28.012.net.il> for 16737@debbugs.gnu.org; Mon, 19 Jan 2015 19:44:15 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIF00NKBQLR9E40@mtaout28.012.net.il>; Mon, 19 Jan 2015 19:44:15 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il 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:98481 Archived-At: > From: Vincent Bernat > Cc: Oleh Krehel , 16737@debbugs.gnu.org > Date: Sat, 17 Jan 2015 22:43:21 +0100 > > ❦ 17 janvier 2015 20:07 +0200, Eli Zaretskii  : > > >> The thing is, I don't know how to get a backtrace - I'm only a novice > >> with GDB. I was hoping someone would post a sequence of commands to > >> get a proper backtrace for this problem. > > > > During those 5 seconds, attach GDB to the Emacs process: > > > > $ gdb -p PID > > > > where PID is the numeric process ID of Emacs; you can find that out > > in advance, before you start the reproducing sequence, and prepare the > > above command line, so that all you need to do is hit RET. > > > > Then, when GDB displays its prompt "(gdb)", type this: > > > > thread apply all bt > > > > This will show a backtrace of every thread in the Emacs process. > > I also have the same problem. It happens randomly when I try to paste or > when I try to kill something. Once it happens, it happens often. I > usually restart emacs after cursing it a lot. The backtrace is always > the same: > > #0 0x00007fdbf286d009 in __pselect (nfds=nfds@entry=27, > readfds=readfds@entry=0x7fff9569f510, writefds=writefds@entry=0x0, > exceptfds=exceptfds@entry=0x0, timeout=, > timeout@entry=0x7fff9569faf0, sigmask=sigmask@entry=0x0) at > ../sysdeps/unix/sysv/linux/pselect.c:77 > #1 0x00000000005d4ac2 in xg_select (fds_lim=27, > rfds=rfds@entry=0x7fff9569fb10, wfds=wfds@entry=0x0, > efds=efds@entry=0x0, timeout=timeout@entry=0x7fff9569faf0, > sigmask=sigmask@entry=0x0) at xgselect.c:105 > #2 0x0000000000599b66 in wait_reading_process_output > (time_limit=, nsecs=0, read_kbd=0, do_display=false, > wait_for_cell=12579542, wait_proc=0x0, just_wait_proc=0) at > process.c:4606 > #3 0x00000000004d2239 in x_get_foreign_selection (selection_symbol=27, > target_type=12623842, time_stamp=12315698, frame=-1) at xselect.c:1237 This just shows that Emacs is waiting for the SelectionNotify event. Can you compile xselect.c while enabling the TRACEs there, and show the output you get? Also, if your value of x-selection-timeout is not zero, does it help to enlarge it?