From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.bugs Subject: bug#16737: Timed out waiting for reply from selection owner Date: Tue, 27 Jan 2015 11:43:30 +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 X-Trace: ger.gmane.org 1422355452 4899 80.91.229.3 (27 Jan 2015 10:44:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2015 10:44:12 +0000 (UTC) Cc: 16737@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 11:44:12 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 1YG3cx-00077H-26 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2015 11:44:11 +0100 Original-Received: from localhost ([::1]:46189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG3cw-0005uv-AL for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Jan 2015 05:44:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG3cs-0005tz-2P for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 05:44:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG3co-00014J-JS for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 05:44:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG3co-00014E-GU for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 05:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YG3co-0001nJ-6G for bug-gnu-emacs@gnu.org; Tue, 27 Jan 2015 05:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Oleh Krehel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jan 2015 10: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.14223554206861 (code B ref 16737); Tue, 27 Jan 2015 10:44:02 +0000 Original-Received: (at 16737) by debbugs.gnu.org; 27 Jan 2015 10:43:40 +0000 Original-Received: from localhost ([127.0.0.1]:57520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YG3cR-0001ma-RA for submit@debbugs.gnu.org; Tue, 27 Jan 2015 05:43:40 -0500 Original-Received: from mail-qc0-f181.google.com ([209.85.216.181]:56514) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YG3cO-0001mL-74 for 16737@debbugs.gnu.org; Tue, 27 Jan 2015 05:43:37 -0500 Original-Received: by mail-qc0-f181.google.com with SMTP id l6so11252375qcy.12 for <16737@debbugs.gnu.org>; Tue, 27 Jan 2015 02:43:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=W0tE3yqpF5X9lkzXrQ7l5pn49PCXPmKZtJwamgxyhjI=; b=Lw984m4IySJuTZi+L43A83PxCm8X30668NX/Uq+gl8rLmiAVDls1Y7axHdax1Hk5Oh OI0Qncz+CtKxXiPFxi/LdoO8HtTVrkJXH0nysuXy0rq16A41UMNLcKqR/uY+VItSZRxB pz1cu/l5AYKg6fbnJo5DCbozRibaBaYwGjkBApcBdbhWEmXYaC/MSJOQgaqHPMAvQ6Kk uHWA1PeY4qzcWxKbqcfb2ppE7xsVfQzsCxtYz2M4lMZUzTFQFRlb9Y3RGNNPcVmGgl/t 4DcuyAJfSPEKWFzNtLw9TG/JugNWnQ5e/tWYEro5dYLq7G+qQH4qHnJ4L5YqbInr7ktt IOiQ== X-Received: by 10.140.40.70 with SMTP id w64mr838000qgw.32.1422355410445; Tue, 27 Jan 2015 02:43:30 -0800 (PST) Original-Received: by 10.140.18.132 with HTTP; Tue, 27 Jan 2015 02:43:30 -0800 (PST) In-Reply-To: <83ppadz3g4.fsf@gnu.org> X-Google-Sender-Auth: qcPv6qZgVl_QpBO813Nqzz1BwqI 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:98788 Archived-At: >> 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. Thanks, Eli, The problem wasn't surfacing for a while, but I've got a backtrace now: Thread 4 (Thread 0x7f4a3a467700 (LWP 25777)): #0 0x00007f4a40d23f7d in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4a43cee6a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007f4a43cee7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007f4a43cee7f9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007f4a43d130f5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007f4a41005f6e in start_thread (arg=0x7f4a3a467700) at pthread_create.c:311 #6 0x00007f4a40d309cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 3 (Thread 0x7f4a38fc1700 (LWP 25778)): #0 0x00007f4a40d23f7d in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4a43cee6a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007f4a43ceeb0a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007f4a44a38b66 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 #4 0x00007f4a43d130f5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007f4a41005f6e in start_thread (arg=0x7f4a38fc1700) at pthread_create.c:311 #6 0x00007f4a40d309cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 2 (Thread 0x7f4a32f82700 (LWP 25779)): #0 0x00007f4a40d23f7d in poll () at ../sysdeps/unix/syscall-template.S:81 #1 0x00007f4a43cee6a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007f4a43cee7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007f4a32f89a9d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so ---Type to continue, or q to quit--- #4 0x00007f4a43d130f5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007f4a41005f6e in start_thread (arg=0x7f4a32f82700) at pthread_create.c:311 #6 0x00007f4a40d309cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113 Thread 1 (Thread 0x7f4a463109c0 (LWP 25774)): #0 0x00007f4a40d28eb9 in __pselect (nfds=nfds@entry=31, readfds=readfds@entry=0x7fff47ceea30, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, timeout=, timeout@entry=0x7fff47cef010, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/pselect.c:78 #1 0x00000000005c38de in xg_select (fds_lim=31, rfds=rfds@entry=0x7fff47cef1d0, wfds=wfds@entry=0x0, efds=efds@entry=0x0, timeout=timeout@entry=0x7fff47cef010, sigmask=sigmask@entry=0x0) at xgselect.c:114 #2 0x0000000000591be9 in wait_reading_process_output (time_limit=, nsecs=, read_kbd=read_kbd@entry=0, do_display=do_display@entry=false, wait_for_cell=12526611, wait_proc=wait_proc@entry=0x0, just_wait_proc=just_wait_proc@entry=0) at process.c:4575 #3 0x00000000004cdc57 in x_get_foreign_selection (selection_symbol=, target_type=8544, time_stamp=, frame=18223301) at xselect.c:1204 #4 0x000000000055474b in Ffuncall (nargs=, args=) at eval.c:2718 #5 0x0000000000587d45 in exec_byte_code (bytestr=31, vector=140734398130736, maxdepth=0, args_template=2, nargs=30, args=0x3) at bytecode.c:919 #6 0x0000000000554310 in funcall_lambda (fun=140734398134224, nargs=nargs@entry=2, arg_vector=0x97c684 , arg_vector@entry=0x7fff47cef778) at eval.c:2874 #7 0x0000000000554593 in Ffuncall (nargs=3, args=0x7fff47cef770) at eval.c:2768 #8 0x0000000000587d45 in exec_byte_code (bytestr=31, vector=140734398130736, maxdepth=0, ---Type to continue, or q to quit--- args_template=48, nargs=55, args=0x3) at bytecode.c:919 #9 0x0000000000554310 in funcall_lambda (fun=140734398134592, nargs=nargs@entry=1, arg_vector=0x97c204 , arg_vector@entry=0x7fff47cef8f0) at eval.c:2874 #10 0x0000000000554593 in Ffuncall (nargs=2, args=0x7fff47cef8e8) at eval.c:2768 #11 0x0000000000587d45 in exec_byte_code (bytestr=31, vector=140734398130736, maxdepth=0, args_template=0, nargs=28, args=0x2) at bytecode.c:919 #12 0x0000000000554310 in funcall_lambda (fun=140734398134960, nargs=nargs@entry=0, arg_vector=0x97c32c , arg_vector@entry=0x7fff47cefa60) at eval.c:2874 #13 0x0000000000554593 in Ffuncall (nargs=1, args=0x7fff47cefa58) at eval.c:2768 #14 0x0000000000587d45 in exec_byte_code (bytestr=31, vector=140734398130736, maxdepth=0, args_template=140734398134872, nargs=14, args=0x1) at bytecode.c:919 #15 0x00000000005541f2 in funcall_lambda (fun=132226757, nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7fff47cefd60) at eval.c:2940 #16 0x0000000000554593 in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7fff47cefd58) at eval.c:2768 #17 0x0000000000555ae0 in Fapply (nargs=3, args=0x7fff47cefd58) at eval.c:2279 #18 0x000000000055468a in Ffuncall (nargs=4, args=0x7fff47cefd50) at eval.c:2687 #19 0x0000000000587d45 in exec_byte_code (bytestr=31, vector=140734398130736, maxdepth=0, args_template=0, nargs=1, args=0x4) at bytecode.c:919 #20 0x0000000000554310 in funcall_lambda (fun=140734398136080, nargs=nargs@entry=1, arg_vector=0x1058d74, arg_vector@entry=0x7fff47cefec0) at eval.c:2874 #21 0x0000000000554593 in Ffuncall (nargs=2, args=0x7fff47cefeb8) at eval.c:2768 #22 0x0000000000587d45 in exec_byte_code (bytestr=31, vector=140734398130736, maxdepth=0, args_template=14, nargs=140734398135984, args=0x2) at bytecode.c:919 #23 0x00000000005541f2 in funcall_lambda (fun=57990093, nargs=nargs@entry=0, ---Type to continue, or q to quit--- arg_vector=arg_vector@entry=0x7fff47cf00a0) at eval.c:2940 #24 0x0000000000554593 in Ffuncall (nargs=1, args=0x7fff47cf0098) at eval.c:2768 #25 0x0000000000587d45 in exec_byte_code (bytestr=31, vector=140734398130736, maxdepth=0, args_template=10, nargs=140734398136464, args=0x1) at bytecode.c:919 #26 0x00000000005541f2 in funcall_lambda (fun=63156909, nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7fff47cf0280) at eval.c:2940 #27 0x0000000000554593 in Ffuncall (nargs=3, args=0x7fff47cf0278) at eval.c:2768 #28 0x0000000000587d45 in exec_byte_code (bytestr=31, vector=140734398130736, maxdepth=0, args_template=0, nargs=0, args=0x3) at bytecode.c:919 #29 0x00000000005541f2 in funcall_lambda (fun=63156525, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7fff47cf0520) at eval.c:2940 #30 0x0000000000554593 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fff47cf0518) at eval.c:2768 #31 0x000000000055021a in Ffuncall_interactively (nargs=2, args=0x7fff47cf0518) at callint.c:258 #32 0x000000000055468a in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7fff47cf0510) at eval.c:2687 #33 0x0000000000550d72 in Fcall_interactively (function=, record_flag=, keys=) at callint.c:864 #34 0x000000000055475f in Ffuncall (nargs=, args=) at eval.c:2714 #35 0x0000000000587d45 in exec_byte_code (bytestr=31, vector=140734398130736, maxdepth=0, args_template=108, nargs=140734398138224, args=0x4) at bytecode.c:919 #36 0x0000000000554310 in funcall_lambda (fun=0, nargs=nargs@entry=1, arg_vector=0x90f794 , arg_vector@entry=0x7fff47cf08f8) at eval.c:2874 #37 0x0000000000554593 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fff47cf08f0) at eval.c:2768 #38 0x000000000055487a in call1 (fn=fn@entry=14976, arg1=) at eval.c:2560 #39 0x00000000004f2b14 in command_loop_1 () at keyboard.c:1518 ---Type to continue, or q to quit--- #40 0x0000000000552e3b in internal_condition_case (bfun=bfun@entry=0x4f2700 , handlers=handlers@entry=19392, hfun=hfun@entry=0x4e9720 ) at eval.c:1334 #41 0x00000000004e4e1c in command_loop_2 (ignore=ignore@entry=0) at keyboard.c:1139 #42 0x0000000000552d43 in internal_catch (tag=tag@entry=45984, func=func@entry=0x4e4e00 , arg=arg@entry=0) at eval.c:1095 #43 0x00000000004e4dd7 in command_loop () at keyboard.c:1118 #44 0x00000000004e9358 in recursive_edit_1 () at keyboard.c:728 #45 0x00000000004e9675 in Frecursive_edit () at keyboard.c:799 #46 0x0000000000415a3e in main (argc=, argv=0x7fff47cf0cb8) at emacs.c:1612