From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent Bernat Newsgroups: gmane.emacs.bugs Subject: bug#16737: Timed out waiting for reply from selection owner Date: Sat, 17 Jan 2015 22:43:21 +0100 Message-ID: References: <21244.16071.147204.408385@gargle.gargle.HOWL> <83sif9zc9e.fsf@gnu.org> <83ppadz3g4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1421531060 30570 80.91.229.3 (17 Jan 2015 21:44:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Jan 2015 21:44:20 +0000 (UTC) Cc: 16737@debbugs.gnu.org, Oleh Krehel To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 17 22:44:18 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 1YCbAH-0004H1-P7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Jan 2015 22:44:18 +0100 Original-Received: from localhost ([::1]:60313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCbAH-0000CY-0Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Jan 2015 16:44:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCbA9-00007L-HK for bug-gnu-emacs@gnu.org; Sat, 17 Jan 2015 16:44:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCbA3-00052q-50 for bug-gnu-emacs@gnu.org; Sat, 17 Jan 2015 16:44:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCbA3-00052m-0g for bug-gnu-emacs@gnu.org; Sat, 17 Jan 2015 16:44:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YCbA2-0005mW-HD for bug-gnu-emacs@gnu.org; Sat, 17 Jan 2015 16:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Vincent Bernat Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Jan 2015 21:44:02 +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.142153100822170 (code B ref 16737); Sat, 17 Jan 2015 21:44:02 +0000 Original-Received: (at 16737) by debbugs.gnu.org; 17 Jan 2015 21:43:28 +0000 Original-Received: from localhost ([127.0.0.1]:60379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YCb9T-0005lV-3f for submit@debbugs.gnu.org; Sat, 17 Jan 2015 16:43:28 -0500 Original-Received: from bart.luffy.cx ([78.47.78.131]:49764) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YCb9P-0005lJ-OX for 16737@debbugs.gnu.org; Sat, 17 Jan 2015 16:43:25 -0500 Original-Received: from bart.luffy.cx (localhost [127.0.0.1]) by bart.luffy.cx (Postfix) with ESMTP id 7CC7414501; Sat, 17 Jan 2015 22:43:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=postfix; bh=jh8S+F2f5 eNRemT+9QkBXQRVdrQ=; b=jtumsf8knJt/GkiNSCThJbTzl6PrdkBcpuDXdVdFR SwR5dMzYpNISdCfUD4G0J9hB9c5nVOUgQyDojZhtXdibGWKdk+V/Tej34hBnynLA 4LlYdq9zeT8JX3Qx4m9/8s41o3wslpY7GQpNoWLUdqArSGMFi/IB6IzSseStYPzM bs= DomainKey-Signature: a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=postfix; b=IpS bHXqdkMDOmvaPO9Pjj8/GQzf34sog4NIKxDlF1m3ITGsyLb6UochWCIE4yYPig/X zRHIKkbjsV/FxvBsX0T4xRJJECSAfrI12EHMT3FS1QlW9O3bMoahRXMHkS3/Icrz y2AxNy+ni7BxCmtV9pa/ymBbybnoBchZ7DUg0cG4= Original-Received: from neo.luffy.cx (unknown [IPv6:2a02:1203:ecb0:b5e2:cda:7f81:1756:eac2]) by bart.luffy.cx (Postfix) with ESMTPS id 3F60B141AC; Sat, 17 Jan 2015 22:43:22 +0100 (CET) Original-Received: by neo.luffy.cx (Postfix, from userid 500) id D1CAC434; Sat, 17 Jan 2015 22:43:21 +0100 (CET) In-Reply-To: <83ppadz3g4.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Jan 2015 20:07:07 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (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:98445 Archived-At: =E2=9D=A6 17 janvier 2015 20:07 +0200, Eli Zaretskii =C2=A0: >> 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=3Dnfds@entry=3D27, readfds=3Dreadfds@entry=3D0x7fff9569f510, writefds=3Dwritefds@entry=3D0x0, exceptfds=3Dexceptfds@entry=3D0x0, timeout=3D, timeout@entry=3D0x7fff9569faf0, sigmask=3Dsigmask@entry=3D0x0) at ../sysdeps/unix/sysv/linux/pselect.c:77 #1 0x00000000005d4ac2 in xg_select (fds_lim=3D27, rfds=3Drfds@entry=3D0x7fff9569fb10, wfds=3Dwfds@entry=3D0x0, efds=3Defds@entry=3D0x0, timeout=3Dtimeout@entry=3D0x7fff9569faf0, sigmask=3Dsigmask@entry=3D0x0) at xgselect.c:105 #2 0x0000000000599b66 in wait_reading_process_output (time_limit=3D, nsecs=3D0, read_kbd=3D0, do_display=3Dfalse, wait_for_cell=3D12579542, wait_proc=3D0x0, just_wait_proc=3D0) at process.c:4606 #3 0x00000000004d2239 in x_get_foreign_selection (selection_symbol=3D27, target_type=3D12623842, time_stamp=3D12315698, frame=3D-1) at xselect.c:12= 37 When pasting, the source can be either "xsel -i -b" or the browser. So, I don't think this is related to some advanced paste mode. I am using: #+begin_src lisp (setq x-select-enable-primary t ; Yank use the primary selection if= available save-interprogram-paste-before-kill t ; Put clipboard/selection into = kill ring mouse-1-click-follows-link nil) ; Don't follow links with left click #+end_src The use of "save-interprogram-paste-before-kill" should explain why I get problems when killing too. I am running Emacs 24.4 from Debian unstable. Here is the "thread apply all bt" (I have to paste in a frame running in tty mode to be able to complete this bug report): (gdb) thread apply all bt Thread 5 (Thread 0x7fdbebb6d700 (LWP 4358)): #0 0x00007fdbf286b18d in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fdbf6d57ee4 in g_main_context_poll (priority=3D2147483647, n_fds= =3D2, fds=3D0x7fdbe40008e0, timeout=3D-1, context=3D0x13b8c00) at /tmp/buil= dd/glib2.0-2.42.1/./glib/gmain.c:4076 #2 g_main_context_iterate (context=3Dcontext@entry=3D0x13b8c00, block=3Dbl= ock@entry=3D1, dispatch=3Ddispatch@entry=3D1, self=3D) at /t= mp/buildd/glib2.0-2.42.1/./glib/gmain.c:3776 #3 0x00007fdbf6d57ffc in g_main_context_iteration (context=3D0x13b8c00, ma= y_block=3Dmay_block@entry=3D1) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c= :3842 #4 0x00007fdbf6d58039 in glib_worker_main (data=3D) at /tmp= /buildd/glib2.0-2.42.1/./glib/gmain.c:5589 #5 0x00007fdbf6d7e935 in g_thread_proxy (data=3D0x13b9000) at /tmp/buildd/= glib2.0-2.42.1/./glib/gthread.c:764 #6 0x00007fdbf2d550a4 in start_thread (arg=3D0x7fdbebb6d700) at pthread_cr= eate.c:309 #7 0x00007fdbf2873ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clo= ne.S:111 Thread 4 (Thread 0x7fdbea801700 (LWP 4359)): #0 0x00007fdbf286b18d in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fdbf6d57ee4 in g_main_context_poll (priority=3D2147483647, n_fds= =3D1, fds=3D0x7fdbdc0010c0, timeout=3D-1, context=3D0x18f11d0) at /tmp/buil= dd/glib2.0-2.42.1/./glib/gmain.c:4076 #2 g_main_context_iterate (context=3Dcontext@entry=3D0x18f11d0, block=3Dbl= ock@entry=3D1, dispatch=3Ddispatch@entry=3D1, self=3D) at /t= mp/buildd/glib2.0-2.42.1/./glib/gmain.c:3776 #3 0x00007fdbf6d57ffc in g_main_context_iteration (context=3D0x18f11d0, ma= y_block=3D1) at /tmp/buildd/glib2.0-2.42.1/./glib/gmain.c:3842 #4 0x00007fdbea80927d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/= libdconfsettings.so #5 0x00007fdbf6d7e935 in g_thread_proxy (data=3D0x1896050) at /tmp/buildd/= glib2.0-2.42.1/./glib/gthread.c:764 #6 0x00007fdbf2d550a4 in start_thread (arg=3D0x7fdbea801700) at pthread_cr= eate.c:309 #7 0x00007fdbf2873ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clo= ne.S:111 Thread 3 (Thread 0x7fdbea000700 (LWP 4360)): #0 0x00007fdbf286b18d in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007fdbf6d57ee4 in g_main_context_poll (priority=3D2147483647, n_fds= =3D2, fds=3D0x7fdbe00010c0, timeout=3D-1, context=3D0x7fdbdc00d2d0) at /tmp= /buildd/glib2.0-2.42.1/./glib/gmain.c:4076 #2 g_main_context_iterate (context=3D0x7fdbdc00d2d0, block=3Dblock@entry= =3D1, dispatch=3Ddispatch@entry=3D1, self=3D) at /tmp/buildd= /glib2.0-2.42.1/./glib/gmain.c:3776 #3 0x00007fdbf6d58272 in g_main_loop_run (loop=3D0x7fdbdc00d1f0) at /tmp/b= uildd/glib2.0-2.42.1/./glib/gmain.c:3975 #4 0x00007fdbf7349f76 in gdbus_shared_thread_func (user_data=3D0x7fdbdc00d= 2a0) at /tmp/buildd/glib2.0-2.42.1/./gio/gdbusprivate.c:273 #5 0x00007fdbf6d7e935 in g_thread_proxy (data=3D0x1896190) at /tmp/buildd/= glib2.0-2.42.1/./glib/gthread.c:764 #6 0x00007fdbf2d550a4 in start_thread (arg=3D0x7fdbea000700) at pthread_cr= eate.c:309 #7 0x00007fdbf2873ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clo= ne.S:111 Thread 2 (Thread 0x7fdbdb895700 (LWP 31847)): #0 0x00007fdbf2b46c9e in ?? () from /usr/lib/x86_64-linux-gnu/libgomp.so.1 #1 0x00007fdbf2b446f0 in ?? () from /usr/lib/x86_64-linux-gnu/libgomp.so.1 #2 0x00007fdbf2d550a4 in start_thread (arg=3D0x7fdbdb895700) at pthread_cr= eate.c:309 #3 0x00007fdbf2873ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clo= ne.S:111 Thread 1 (Thread 0x7fdbfa101a40 (LWP 4357)): #0 0x00007fdbf286d009 in __pselect (nfds=3Dnfds@entry=3D27, readfds=3Dread= fds@entry=3D0x7fff9569f510, writefds=3Dwritefds@entry=3D0x0, exceptfds=3Dex= ceptfds@entry=3D0x0, timeout=3D, timeout@entry=3D0x7fff9569f= af0, sigmask=3Dsigmask@entry=3D0x0) at ../sysdeps/unix/sysv/linux/pselect.c= :77 #1 0x00000000005d4ac2 in xg_select (fds_lim=3D27, rfds=3Drfds@entry=3D0x7f= ff9569fb10, wfds=3Dwfds@entry=3D0x0, efds=3Defds@entry=3D0x0, timeout=3Dtim= eout@entry=3D0x7fff9569faf0, sigmask=3Dsigmask@entry=3D0x0) at xgselect.c:1= 05 #2 0x0000000000599b66 in wait_reading_process_output (time_limit=3D, nsecs=3D0, read_kbd=3D0, do_display=3Dfalse, wait_for_cell=3D1257= 9542, wait_proc=3D0x0, just_wait_proc=3D0) at process.c:4606 #3 0x00000000004d2239 in x_get_foreign_selection (selection_symbol=3D27, t= arget_type=3D12623842, time_stamp=3D12315698, frame=3D-1) at xselect.c:1237 #4 0x000000000055c7fa in Ffuncall (nargs=3D, args=3Dargs@en= try=3D0x7fff9569fe68) at eval.c:2823 #5 0x0000000000591b13 in exec_byte_code (bytestr=3D, vector= =3D10040525, maxdepth=3D, args_template=3D, n= args=3Dnargs@entry=3D0, args=3D, args@entry=3D0x0) at byteco= de.c:916 #6 0x000000000055c2cf in funcall_lambda (fun=3D10040397, nargs=3Dnargs@ent= ry=3D2, arg_vector=3Darg_vector@entry=3D0x7fff956a0040) at eval.c:3045 #7 0x000000000055c643 in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7fff95= 6a0038) at eval.c:2873 #8 0x0000000000591b13 in exec_byte_code (bytestr=3D, vector= =3D10432997, maxdepth=3D, args_template=3D, n= args=3D, args=3D) at bytecode.c:916 #9 0x000000000055bc0b in eval_sub (form=3Dform@entry=3D10432918) at eval.c= :2188 #10 0x000000000055eac1 in internal_lisp_condition_case (var=3D, bodyform=3D10432918, handlers=3D) at eval.c:1317 #11 0x0000000000592e57 in exec_byte_code (bytestr=3D, vector= =3D10432781, maxdepth=3D, args_template=3D, n= args=3Dnargs@entry=3D0, args=3D, args@entry=3D0x0) at byteco= de.c:1162 #12 0x000000000055c2cf in funcall_lambda (fun=3D10432709, nargs=3Dnargs@ent= ry=3D1, arg_vector=3Darg_vector@entry=3D0x7fff956a0440) at eval.c:3045 #13 0x000000000055c643 in Ffuncall (nargs=3D2, args=3Dargs@entry=3D0x7fff95= 6a0438) at eval.c:2873 #14 0x0000000000591b13 in exec_byte_code (bytestr=3D, vector= =3D10433253, maxdepth=3D, args_template=3D, n= args=3Dnargs@entry=3D0, args=3D, args@entry=3D0x0) at byteco= de.c:916 #15 0x000000000055c2cf in funcall_lambda (fun=3D10433181, nargs=3Dnargs@ent= ry=3D0, arg_vector=3Darg_vector@entry=3D0x7fff956a0600) at eval.c:3045 #16 0x000000000055c643 in Ffuncall (nargs=3D1, args=3Dargs@entry=3D0x7fff95= 6a05f8) at eval.c:2873 #17 0x0000000000591b13 in exec_byte_code (bytestr=3D, vector= =3D9638461, maxdepth=3D, args_template=3D, na= rgs=3Dnargs@entry=3D2, args=3D, args@entry=3D0x931219 ) at bytecode.c:916 #18 0x000000000055c367 in funcall_lambda (fun=3D140735700142032, nargs=3Dna= rgs@entry=3D2, arg_vector=3D0x931219 , arg_vector@entry=3D0x7f= ff956a0768) at eval.c:2979 #19 0x000000000055c643 in Ffuncall (nargs=3D3, args=3Dargs@entry=3D0x7fff95= 6a0760) at eval.c:2873 #20 0x0000000000591b13 in exec_byte_code (bytestr=3D, vector= =3D85013877, maxdepth=3D, args_template=3D, n= args=3Dnargs@entry=3D0, args=3D, args@entry=3D0x9316e1 ) at bytecode.c:916 #21 0x000000000055c367 in funcall_lambda (fun=3D140735700142816, nargs=3Dna= rgs@entry=3D0, arg_vector=3D0x9316e1 , arg_vector@entry=3D0x7f= ff956a08a8) at eval.c:2979 #22 0x000000000055c643 in Ffuncall (nargs=3D1, args=3D0x7fff956a08a0) at ev= al.c:2873 #23 0x000000000055bdf4 in eval_sub (form=3Dform@entry=3D187158758) at eval.= c:2155 #24 0x000000000055eac1 in internal_lisp_condition_case (var=3D, bodyform=3D187158758, handlers=3D) at eval.c:1317 #25 0x0000000000592e57 in exec_byte_code (bytestr=3D, vector= =3D9639509, maxdepth=3D, args_template=3D, na= rgs=3Dnargs@entry=3D3, args=3D, args@entry=3D0x931631 ) at bytecode.c:1162 #26 0x000000000055c367 in funcall_lambda (fun=3D140735700143792, nargs=3Dna= rgs@entry=3D3, arg_vector=3D0x931631 , arg_vector@entry=3D0x7f= ff956a0bb8) at eval.c:2979 #27 0x000000000055c643 in Ffuncall (nargs=3Dnargs@entry=3D4, args=3Dargs@en= try=3D0x7fff956a0bb0) at eval.c:2873 #28 0x000000000055d574 in Fapply (nargs=3Dnargs@entry=3D2, args=3Dargs@entr= y=3D0x7fff956a0c70) at eval.c:2351 #29 0x000000000055d7e0 in apply1 (fn=3Dfn@entry=3D15660018, arg=3Darg@entry= =3D187158790) at eval.c:2585 #30 0x0000000000558521 in Fcall_interactively (function=3D15660018, record_= flag=3D12315698, keys=3D12350653) at callint.c:378 #31 0x000000000055c80d in Ffuncall (nargs=3D, args=3Dargs@en= try=3D0x7fff956a0e28) at eval.c:2819 #32 0x0000000000591b13 in exec_byte_code (bytestr=3D, vector= =3D9616805, maxdepth=3D, args_template=3D, na= rgs=3Dnargs@entry=3D1, args=3D, args@entry=3D0x92bd81 ) at bytecode.c:916 #33 0x000000000055c367 in funcall_lambda (fun=3D0, nargs=3Dnargs@entry=3D1,= arg_vector=3D0x92bd81 , arg_vector@entry=3D0x7fff956a0f88) at= eval.c:2979 #34 0x000000000055c643 in Ffuncall (nargs=3Dnargs@entry=3D2, args=3Dargs@en= try=3D0x7fff956a0f80) at eval.c:2873 #35 0x000000000055cafa in call1 (fn=3D, arg1=3D) at eval.c:2611 #36 0x00000000004f80cd in command_loop_1 () at keyboard.c:1559 #37 0x000000000055ab07 in internal_condition_case (bfun=3Dbfun@entry=3D0x4f= 7d30 , handlers=3D, hfun=3Dhfun@entry=3D0x4e= ee40 ) at eval.c:1348 #38 0x00000000004ea43e in command_loop_2 (ignore=3Dignore@entry=3D12315698)= at keyboard.c:1177 #39 0x000000000055a9eb in internal_catch (tag=3D12363170, func=3Dfunc@entry= =3D0x4ea420 , arg=3D12315698) at eval.c:1112 #40 0x00000000004eea57 in command_loop () at keyboard.c:1156 #41 recursive_edit_1 () at keyboard.c:777 #42 0x00000000004eed70 in Frecursive_edit () at keyboard.c:848 #43 0x0000000000418579 in main (argc=3D0, argv=3D0x7fff956a1348) at emacs.c= :1646 --=20 Make sure input cannot violate the limits of the program. - The Elements of Programming Style (Kernighan & Plauger)