GNU bug report logs - #16737
24.3.50; Yank causes hang

Previous Next

Package: emacs;

Reported by: Sujith Manoharan <sujith <at> msujith.org>

Date: Thu, 13 Feb 2014 03:49:02 UTC

Severity: important

Tags: moreinfo, patch

Merged with 17026, 17101, 17172, 19320, 20283

Found in versions 24.3.50, 24.4, 25.0.50

Done: Tassilo Horn <tsdh <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #99 received at 16737 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Vincent Bernat <bernat <at> luffy.cx>
Cc: 16737 <at> debbugs.gnu.org, o.krehel <at> tue.nl
Subject: Re: bug#16737: Timed out waiting for reply from selection owner
Date: Mon, 19 Jan 2015 19:46:02 +0200
> From: Vincent Bernat <bernat <at> luffy.cx>
> Cc: Oleh Krehel <o.krehel <at> tue.nl>,  16737 <at> debbugs.gnu.org
> Date: Sat, 17 Jan 2015 22:43:21 +0100
> 
>  ❦ 17 janvier 2015 20:07 +0200, Eli Zaretskii <eliz <at> gnu.org> :
> 
> >> 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 <at> entry=27,
>  readfds=readfds <at> entry=0x7fff9569f510, writefds=writefds <at> entry=0x0,
>  exceptfds=exceptfds <at> entry=0x0, timeout=<optimized out>,
>  timeout <at> entry=0x7fff9569faf0, sigmask=sigmask <at> entry=0x0) at
>  ../sysdeps/unix/sysv/linux/pselect.c:77
> #1  0x00000000005d4ac2 in xg_select (fds_lim=27,
>  rfds=rfds <at> entry=0x7fff9569fb10, wfds=wfds <at> entry=0x0,
>  efds=efds <at> entry=0x0, timeout=timeout <at> entry=0x7fff9569faf0,
>  sigmask=sigmask <at> entry=0x0) at xgselect.c:105
> #2  0x0000000000599b66 in wait_reading_process_output
>  (time_limit=<optimized out>, 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?




This bug report was last modified 9 years and 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.