From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex =?UTF-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.bugs Subject: bug#16737: Timed out waiting for reply from selection owner Date: Mon, 21 Jul 2014 16:02:58 +0100 Message-ID: References: <48440A51-37B4-44A2-A999-4A0ABC90B721@swipnet.se> 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 1405955078 27510 80.91.229.3 (21 Jul 2014 15:04:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2014 15:04:38 +0000 (UTC) Cc: Tom Tromey , 16737@debbugs.gnu.org, Nicolas Richard To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 21 17:04:30 2014 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 1X9F8e-0006KW-Cs for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 17:04:28 +0200 Original-Received: from localhost ([::1]:34629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9F8d-0006Ib-MQ for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 11:04:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9F8K-0005zy-Ir for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 11:04:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9F8E-0000fW-Bw for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 11:04:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9F8E-0000fS-8z for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 11:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X9F8D-0004AO-Rs for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 11:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex =?UTF-8?Q?Benn=C3=A9e?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jul 2014 15:04: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.140595498915924 (code B ref 16737); Mon, 21 Jul 2014 15:04:01 +0000 Original-Received: (at 16737) by debbugs.gnu.org; 21 Jul 2014 15:03:09 +0000 Original-Received: from localhost ([127.0.0.1]:33508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9F7M-00048j-6m for submit@debbugs.gnu.org; Mon, 21 Jul 2014 11:03:08 -0400 Original-Received: from mail-oa0-f48.google.com ([209.85.219.48]:47679) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9F7J-00048A-24 for 16737@debbugs.gnu.org; Mon, 21 Jul 2014 11:03:06 -0400 Original-Received: by mail-oa0-f48.google.com with SMTP id m1so7528073oag.35 for <16737@debbugs.gnu.org>; Mon, 21 Jul 2014 08:02:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=FsQ98PSqE6/YuYttg0XlERs1NyKFRZJisikOm5bJfR0=; b=XT2FbtJRoGf9yMKew10pCDTSUTHVHe+/Oj31X1frtAo6wARumokhmdzl5Vvkod6iDj QmrEFzT34vPQs5/azwkIfldpimiP3Lyfd8cywf/23iSw/vMwMAldBmDl9UivHFKbOWdQ E2B274N71TBts6ZdTjjt29wyOt9UC4tloIApDDZkoxx+jaT+SSxyDodc6VnST8Vns++P Nj02/kw+nQAeO4MuXsMtIR9WPRyHP7eSGZGw+xVBWavH/94VoRoap0jTJiRTBYEZRp0M wAZaonKbuU/vLjgwDy4fC/hlAkD0k6ylilj571QuoTXmSAE19RTELDHX1UQ0LK/zFdJ6 Xp1w== X-Gm-Message-State: ALoCoQkzRjAdcmKPX3vKEXFm/gkYfI1yU6dDfPH8iZie7d7pFJEILDgXzzeP0xkHR406so6HcDVv X-Received: by 10.60.98.206 with SMTP id ek14mr38235668oeb.51.1405954978097; Mon, 21 Jul 2014 08:02:58 -0700 (PDT) Original-Received: by 10.182.234.109 with HTTP; Mon, 21 Jul 2014 08:02:58 -0700 (PDT) In-Reply-To: <48440A51-37B4-44A2-A999-4A0ABC90B721@swipnet.se> 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:91726 Archived-At: I couldn't get that patch to apply. However it looks like the list of fd's is null: Program received signal SIGINT, Interrupt. 0x00007fe50beaaeb9 in __pselect (nfds=3D, readfds=3D, writefds=3D, exceptfds=3D, timeout=3D, sigmask=3D) at ../sysdeps/unix/sysv/linux/pselect.c:78 78 ../sysdeps/unix/sysv/linux/pselect.c: No such file or directory. (gdb) bt #0 0x00007fe50beaaeb9 in __pselect (nfds=3D, readfds=3D, writefds=3D, exceptfds=3D, timeout=3D, sigmask=3D) at ../sysdeps/unix/sysv/linux/pselect.c:78 #1 0x00000000006c3843 in xg_select (fds_lim=3D28, rfds=3D0x7fff90d8d8d0, wfds=3D0x0, efds=3D0x0, timeout=3D0x7fff90d8d8b0, sigmask=3D0x0) at xgselect.c:105 #2 0x000000000066bb23 in wait_reading_process_output (time_limit=3D5, nsecs=3D0, read_kbd=3D0, do_display=3Dfalse, wait_for_cell=3D14274358, wait_proc=3D0x0, just_wait_proc=3D0) at process.c:4603 #3 0x00000000005537bb in x_get_foreign_selection (selection_symbol=3D14059234, target_type=3D14325826, time_stamp=3D14016754= , frame=3D62671861) at xselect.c:1237 #4 0x00000000005558f2 in Fx_get_selection_internal (selection_symbol=3D14059234, target_type=3D14325826, time_stamp=3D14016754= , terminal=3D14016754) at xselect.c:2017 #5 0x0000000000613d7d in Ffuncall (nargs=3D3, args=3D0x7fff90d8dcc8) at ev= al.c:2826 #6 0x000000000065e8d7 in exec_byte_code (bytestr=3D11267393, vector=3D11267429, maxdepth=3D28, args_template=3D14016754, nargs=3D0, args=3D0x0) at bytecode.c:916 #7 0x00000000006148d9 in funcall_lambda (fun=3D11267301, nargs=3D1, arg_vector=3D0xabed65 ) at eval.c:3049 #8 0x0000000000613edd in Ffuncall (nargs=3D2, args=3D0x7fff90d8e1e0) at ev= al.c:2864 #9 0x000000000065e8d7 in exec_byte_code (bytestr=3D11250537, vector=3D11250573, maxdepth=3D16, args_template=3D1028, nargs=3D1, args=3D0x7fff90d8e730) at bytecode.c:916 #10 0x00000000006144ee in funcall_lambda (fun=3D11250485, nargs=3D1, arg_vector=3D0x7fff90d8e728) at eval.c:2983 #11 0x0000000000613edd in Ffuncall (nargs=3D2, args=3D0x7fff90d8e720) at ev= al.c:2864 #12 0x000000000060c8aa in Fcall_interactively (function=3D21920738, record_flag=3D14016754, keys=3D14051741) at callint.c:836 #13 0x0000000000613d4a in Ffuncall (nargs=3D4, args=3D0x7fff90d8e9c8) at ev= al.c:2822 #14 0x000000000065e8d7 in exec_byte_code (bytestr=3D10843817, vector=3D10843853, maxdepth=3D52, args_template=3D4100, nargs=3D1, args=3D0x7fff90d8ef00) at bytecode.c:916 #15 0x00000000006144ee in funcall_lambda (fun=3D10843773, nargs=3D1, arg_vector=3D0x7fff90d8eef8) at eval.c:2983 #16 0x0000000000613edd in Ffuncall (nargs=3D2, args=3D0x7fff90d8eef0) at ev= al.c:2864 #17 0x0000000000613644 in call1 (fn=3D14060610, arg1=3D21920738) at eval.c:= 2614 #18 0x000000000056d335 in command_loop_1 () at keyboard.c:1559 #19 0x00000000006103b2 in internal_condition_case (bfun=3D0x56cb99 , handlers=3D14068322, hfun=3D0x56c30c ) at eval.c:1354 #20 0x000000000056c819 in command_loop_2 (ignore=3D14016754) at keyboard.c:= 1177 #21 0x000000000060f836 in internal_catch (tag=3D14064258, func=3D0x56c7f3 , arg=3D14016754) at eval.c:1118 #22 0x000000000056c7c7 in command_loop () at keyboard.c:1156 #23 0x000000000056be17 in recursive_edit_1 () at keyboard.c:777 #24 0x000000000056bffc in Frecursive_edit () at keyboard.c:848 #25 0x0000000000569f3a in main (argc=3D2, argv=3D0x7fff90d8f398) at emacs.c= :1646 (gdb) frame 1 #1 0x00000000006c3843 in xg_select (fds_lim=3D28, rfds=3D0x7fff90d8d8d0, wfds=3D0x0, efds=3D0x0, timeout=3D0x7fff90d8d8b0, sigmask=3D0x0) at xgselect.c:105 105 nfds =3D pselect (fds_lim, &all_rfds, have_wfds ? &all_wfds : NUL= L, (gdb) p fds_lim $1 =3D 28 (gdb) p all_rfds $2 =3D {fds_bits =3D {2048, 0 }} (gdb) c Continuing. On 25 June 2014 19:28, Jan Dj=C3=A4rv wrote: > Hi. > > 25 jun 2014 kl. 18:04 skrev Stefan Monnier : > >> forcemerge 17026 16737 >> thanks >> >> Do you guys still experience those hangs? >> Any hope of getting a vaguely reproducible recipe? >> >> Jan, is there some debugging code we could add somewhere around the >> *select code which could help us track down the source of the problem? > > If it times out, it is because we don't get the PropertyNotify we expect. > There is some TRACE one can turn on in xselect.c by defining TRACE_SELECT= ION. > > But we should add something like this (totally untested, not even compile= d): > > =3D=3D=3D modified file 'src/xselect.c' > --- src/xselect.c 2014-01-01 07:43:34 +0000 > +++ src/xselect.c 2014-06-25 18:27:16 +0000 > @@ -1144,8 +1144,19 @@ > { > struct prop_location *rest; > > + fprintf (stderr, "Got property notify for %s, %s, %lu %p\n", > + (event->state =3D=3D PropertyDelete ? "deletion" : "change"), > + XGetAtomName (event->display, event->atom), > + (unsigned long)event->window, > + event-display); > + > for (rest =3D property_change_wait_list; rest; rest =3D rest->next) > { > + fprintf (stderr, "Check property notify against %s, %s, %lu %p\n", > + (rest->desired_state =3D=3D PropertyDelete ? "deletion" := "change"), > + XGetAtomName (rest->display, rest->atom), > + (unsigned long)rest->window, > + rest->display); > if (!rest->arrived > && rest->property =3D=3D event->atom > && rest->window =3D=3D event->window > @@ -1166,6 +1177,7 @@ > return; > } > } > + fprintf (stderr, "No property match\n"); > } > > Jan D. > --=20 Alex Benn=C3=A9e KVM/QEMU Hacker for Linaro