GNU bug report logs - #17026
24.3.50; x-get-selection: Timed out waiting for reply from selection owner

Previous Next

Package: emacs;

Reported by: Tom Tromey <tromey <at> redhat.com>

Date: Mon, 17 Mar 2014 14:50:04 UTC

Severity: important

Tags: moreinfo, patch

Merged with 16737, 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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17026 in the body.
You can then email your comments to 17026 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17026; Package emacs. (Mon, 17 Mar 2014 14:50:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tom Tromey <tromey <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 17 Mar 2014 14:50:05 GMT) Full text and rfc822 format available.

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

From: Tom Tromey <tromey <at> redhat.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50;
 x-get-selection: Timed out waiting for reply from selection owner
Date: Mon, 17 Mar 2014 08:49:09 -0600
I'm using a recent-ish emacs trunk on x86-64 Fedora 20.
Whenever I try to paste using the middle mouse button, Emacs freezes.
After a time it comes back and gives the error:

x-get-selection: Timed out waiting for reply from selection owner




In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.6)
 of 2014-03-09 on barimba
Repository revision: 116709 rudalics <at> gmx.at-20140309113651-v2g63s6ewa9oxx13
Windowing system distributor `Fedora Project', version 11.0.11404000
Configured using:
 `configure --prefix=/home/tromey/Space/EmacsBzr/emacs-mt/trunk-install'

Important settings:
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix

Major mode: C/l

Minor modes in effect:
  global-auto-revert-mode: t
  shell-dirtrack-mode: t
  bug-reference-prog-mode: t
  diff-auto-refine-mode: t
  erc-spelling-mode: t
  erc-truncate-mode: t
  flyspell-mode: t
  erc-status-mode: t
  erc-services-mode: t
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-netsplit-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  auto-fill-function: tjt-c++-do-auto-fill
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
c - i n t <tab> <return> C-/ C-x s y y C-z n C-v C-v 
C-s < < < C-a <help-echo> C-n C-k C-k C-n C-n C-n C-y 
C-k C-k C-u C-p C-p C-SPC C-n C-n C-w C-n C-n C-n C-k 
C-k C-n C-n C-n C-n C-n C-SPC C-n C-n C-n C-n C-w n 
C-/ C-n C-n M-b M-b M-b & C-n C-n C-a C-k C-k C-p C-f 
C-x C-g C-p C-k C-x s y C-z n <f10> <f10> C-x b * c 
o m <tab> <return> g M-> C-z n C-u <f9> C-z n C-x b 
g c c - i n t <tab> <return> M-v C-l C-z n M-f M-f 
M-f M-/ M-/ M-/ M-/ M-/ <f9> C-x o g y C-x o <f9> C-x 
o M-> C-x o C-x 1 C-e C-f C-f C-x s M-> C-u C-SPC C-v 
C-x C-f M-p M-p M-p M-p C-g C-x b g c c - t <tab> <return> 
C-x C-f g c c - s y m b o l s . c <return> C-x b <return> 
M-< C-SPC C-u C-u C-n C-u C-n C-n C-n C-n C-n C-n M-w 
C-x b <return> C-y M-< M-f M-f <M-backspace> s y m 
b o l s M-> <backspace> # i n c l u d e SPC " s y m 
t a b . h " C-a C-u C-p C-n C-k C-k M-> <return> <return> 
C-x C-s C-x C-f g c c - <tab> <backspace> j <tab> - 
<tab> <return> C-u C-u C-n C-l C-z n C-x b * m e s 
<tab> M-b M-c <tab> <return> M-v M-v M-v M-< C-s s 
e l e c t C-z n M-x r e o r <backspace> <backspace> 
p o r t - e m <tab> <return> b <tab> <return>

Recent messages:
Quit
(New file)
Mark set [6 times]
syntax: ((topmost-intro 1)), indent: 0 [4 times]
Saving file /home/tromey/Space/SecondArcher/binutils-gdb/gdb/gccjit/gcc-symbols.c...
Wrote /home/tromey/Space/SecondArcher/binutils-gdb/gdb/gccjit/gcc-symbols.c
Making completion list...
Mark set
Mark saved where search started
Making completion list...

Load-path shadows:
/home/tromey/.emacs.d/elpa/css-mode-1.0/css-mode hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/textmodes/css-mode
/home/tromey/lib/lisp/prog-mode hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/progmodes/prog-mode
/home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/play/bubbles
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-mode hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-mode
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-valid hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-valid
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-xsd hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-xsd
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-enc hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-enc
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-glyph hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-glyph
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-pttrn hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-pttrn
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-uchnm hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-uchnm
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-nxml hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-nxml
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/xmltok hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/xmltok
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-parse hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-parse
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-dt hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-dt
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-maint hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-maint
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-rap hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-rap
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-cmpct hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-cmpct
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-match hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-match
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-parse hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-parse
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-outln hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-outln
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-util hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-util
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-uri hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-uri
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-maint hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-maint
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-ns hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-ns
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/xsd-regexp hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/xsd-regexp
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/nxml-util hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/nxml-util
/home/tromey/.emacs.d/elpa/nxml-mode-20041004/rng-loc hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/nxml/rng-loc
/home/tromey/.emacs.d/elpa/emms-3.0/tq hides /home/tromey/Space/EmacsBzr/emacs-mt/trunk-install/share/emacs/24.3.50/lisp/emacs-lisp/tq

Features:
(shadow emacsbug novice gnus-uu yenc smerge-mode gnus-fun perl-mode
url-queue tcl pcmpl-unix pcmpl-gnu find-file cus-start cus-load
autorevert filenotify gdb-shell shell conf-mode python nxml-mode
nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok find-dired grep
make-mode nnagent idutils compile mailalias cal-move bbdb-sc supercite
regi mail-hist nnir goto-addr log-edit dabbrev eieio-opt speedbar
sb-image ezimage dframe find-func help-mode autoconf autoconf-mode
sh-script smie executable shr-color color url-http url-gw url-auth eww
shr webjump w3m-cookie w3m-bookmark w3m-tabmenu w3m-session w3m doc-view
jka-compr image-mode w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl
w3m-favicon w3m-image w3m-proc w3m-util flow-fill xterm copyright
bug-reference cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds
misearch multi-isearch diff-mode gnus-html browse-url xml url-cache
mm-url qp mm-archive add-log log-view pcvs-util vc-git vc-bzr vc-sccs
vc-svn vc-cvs vc-rcs vc-dir ewoc vc vc-dispatcher bbdb-gui bbdb-hooks
mule-util smiley gnus-cite gnus-async gnus-bcklg gnus-ml disp-table
nndraft nnmh gnutls nnml parse-time netrc nnfolder bbdb-gnus bbdb-snarf
mail-extr bbdb-com warnings nnnil gnus-agent gnus-srvr gnus-score
score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view
mml-smime smime dig nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo
nnmail mail-source smtpmail sendmail gnus-start gnus-spec gnus-int
gnus-range message rfc822 mml mml-sec mm-decode mm-bodies mm-encode
mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils
mailheader gnus-win gnus gnus-ems nnheader mail-utils network-stream
starttls tls erc-spelling erc-truncate flyspell ispell eldoc emms-status
emms-info-ogginfo emms-info-mp3info emms-playlist-mode
emms-player-mplayer emms-setup emms-lastfm rx emms-browser sort
emms-cache emms-playlist-sort emms-score emms-player-xine
emms-player-mpd emms-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util url-parse
url-vars mailcap tq emms-source-playlist emms-playing-time emms-info
emms-lyrics derived emms-source-file locate dired emms-player-simple
emms-streams edmacro kmacro later-do emms-mode-line emms emms-compat
dwarf-mode-autoloads gdb-shell-autoloads lisppaste-autoloads
magit-autoloads pydoc-info-autoloads info-look info weblogger-autoloads
xml-rpc-autoloads package cal-china lunar solar cal-dst cal-bahai
cal-islam cal-hebrew holidays hol-loaddefs appt diary-lib diary-loaddefs
cal-menu calendar cal-loaddefs mouse-sel easy-mmode cl-macs gv status cl
erc-services erc-list erc-menu easymenu erc-join erc-ring erc-networks
erc-pcomplete pcomplete erc-track erc-match erc-button wid-edit
cl-loaddefs cl-lib erc-fill erc-stamp erc-netsplit erc-goodies erc
erc-backend erc-compat format-spec auth-source eieio byte-opt bytecomp
byte-compile cconv eieio-core gnus-util mm-util mail-prsvr
password-cache thingatpt pp cc-styles cc-align cc-engine cc-vars cc-defs
advice help-fns bbdb timezone ange-ftp comint ansi-color ring server
bbdb-autoloads time-date tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

Tom




Merged 17026 17101. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 26 Mar 2014 17:54:04 GMT) Full text and rfc822 format available.

Forcibly Merged 17026 17101 17172. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 02 Apr 2014 15:56:02 GMT) Full text and rfc822 format available.

Forcibly Merged 16737 17026 17101 17172. Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> debbugs.gnu.org. (Wed, 25 Jun 2014 16:05:03 GMT) Full text and rfc822 format available.

Forcibly Merged 16737 17026 17101 17172 19320. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 31 Dec 2014 06:53:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17026; Package emacs. (Fri, 20 Mar 2015 15:57:02 GMT) Full text and rfc822 format available.

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

From: Mariusz Gronczewski <xani666 <at> gmail.com>
To: 17026 <at> debbugs.gnu.org
Subject: 24.4+1-5 x-get-selection: Timed out waiting for reply from selection
 owner
Date: Fri, 20 Mar 2015 14:06:54 +0100
[Message part 1 (text/plain, inline)]
Seems like easiest way to reproduce it is to run any command that touches
primary selection, for example:

(shell-command "xclip -o -selection XA_PRIMARY")

freezes whole emacs until Ctrl+G but with XA_CLIPBOARD it works as intended

-- 
Mariusz Gronczewski (XANi) <xani666 <at> gmail.com>
GnuPG: 0xEA8ACE64
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17026; Package emacs. (Sun, 22 Mar 2015 13:40:02 GMT) Full text and rfc822 format available.

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

From: "Jan D." <jan.h.d <at> swipnet.se>
To: Mariusz Gronczewski <xani666 <at> gmail.com>
Cc: 17026 <at> debbugs.gnu.org
Subject: Re: bug#17026: 24.4+1-5 x-get-selection: Timed out waiting for reply
 from selection owner
Date: Sun, 22 Mar 2015 14:39:42 +0100
Hi.

> 20 mar 2015 kl. 14:06 skrev Mariusz Gronczewski <xani666 <at> gmail.com>:
> 
> Seems like easiest way to reproduce it is to run any command that touches primary selection, for example:
> 
> (shell-command "xclip -o -selection XA_PRIMARY”)

This is not the same.  This hangs because of a deadlock.  Shell runs synchronous, and hangs until the command output has been read.  But when emacs does that, it can’t respond to the request from xclip.
It also only hangs if Emacs owns the primary selection, not if another process does.

> 
> freezes whole emacs until Ctrl+G but with XA_CLIPBOARD it works as intended

It is because there is a clipboard handler running, i.e. Emacs does not answer to xclip in this case.

	Jan D.





Forcibly Merged 16737 17026 17101 17172 19320 20283. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 09 Apr 2015 16:26:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17026; Package emacs. (Tue, 23 Jun 2015 23:45:04 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 17026 <at> debbugs.gnu.org, 13486 <at> debbugs.gnu.org, 20756 <at> debbugs.gnu.org
Subject: Re: 25.0.50; struct selection_input_event data might be corrupted
 by assignments as another structure type
Date: Tue, 23 Jun 2015 16:44:26 -0700
Thanks for tracking down and diagnosing this bug.  I've installed a patch as 
commit 1552e6737317ea2c85e06600e178114c6b0f9fb2 in emacs master; can you please 
try it in your environment?

It's possible, I suppose, that this fix will affect Bug#13486 and Bug#17026 
(merged with Bug#16737, Bug#17101, Bug#17172, Bug#19320, Bug#20283).  Ideally 
those bugs would go away too, though this is a shot in the dark.  Anyway, I'll 
CC: to those bug reports to give their followers a heads-up.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17026; Package emacs. (Wed, 24 Jun 2015 00:57:02 GMT) Full text and rfc822 format available.

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

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 17026 <at> debbugs.gnu.org, 13486 <at> debbugs.gnu.org, 20756 <at> debbugs.gnu.org
Subject: Re: 25.0.50;
 struct selection_input_event data might be corrupted by assignments
 as another structure type
Date: Wed, 24 Jun 2015 09:56:25 +0900
>>>>> On Tue, 23 Jun 2015 16:44:26 -0700, Paul Eggert <eggert <at> cs.ucla.edu> said:

> Thanks for tracking down and diagnosing this bug.  I've installed a
> patch as commit 1552e6737317ea2c85e06600e178114c6b0f9fb2 in emacs
> master; can you please try it in your environment?

Thanks for looking into this.  But it doesn't build as it is in the
original environment: OS X 10.7, and the following version of llvm-gcc

  i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

The error message is:

gcc -std=gnu99 -c -I/opt/local/include -Demacs  -I. -I../../../emacs/trunk/src -I../lib -I../../../emacs/trunk/lib   -D_REENTRANT -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/cairo -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include  -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include    -D_REENTRANT -I/opt/local/include/librsvg-2.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16 -I/opt/local/include  -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/opt/local/include/ImageMagick-6  -I/opt/local/include/libpng16 -I/opt/local/include/libxml2  -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include  -I/opt/local/include  -I/opt/local/include  -I/opt/local/include  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include  -DORBIT2=1 -D_REENTRANT -I/opt/local/include/gconf/2 -I/opt/local/include/orbit-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include  -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include  -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16  -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng16    -MMD -MF deps/dispnew.d -MP -I/opt/local/include -I/opt/local/include/p11-kit-1 -I/opt/local/include  -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include     -g3 -O2  ../../../emacs/trunk/src/dispnew.c
In file included from ../../../emacs/trunk/src/dispnew.c:33:
../../../emacs/trunk/src/keyboard.h: In function ‘kbd_buffer_store_event_hold’:
../../../emacs/trunk/src/keyboard.h:461: error: expected specifier-qualifier-list before ‘*’ token
../../../emacs/trunk/src/keyboard.h:461: error: ‘struct <anonymous>’ has no member named ‘__b’
../../../emacs/trunk/src/keyboard.h:461: error: expected specifier-qualifier-list before ‘*’ token
../../../emacs/trunk/src/keyboard.h:461: error: ‘struct <anonymous>’ has no member named ‘__b’
../../../emacs/trunk/src/keyboard.h:461: error: bit-field ‘_gl_verify_error_if_negative’ width not an integer constant
make: *** [dispnew.o] Error 1


The output of gcc -E for the corresponding part is:

kbd_buffer_store_event_hold (struct input_event *event,
        struct input_event *hold_quit)
{
  union buffered_input_event *ev = (union buffered_input_event *) event;
  extern int (*_gl_verify_function461 (void)) [(!!sizeof (struct { unsigned int _gl_verify_error_if_negative: (sizeof *event == sizeof *ev && __builtin_offsetof (struct { char __a; *event __b; }, __b) == __builtin_offsetof (struct { char __a; *ev __b; }, __b)) ? 1 : -1; }))];
  return kbd_buffer_store_buffered_event ((union buffered_input_event *) event,
       hold_quit);
}


If I comment out the line for the "verify" macro, the it successfully
builds and runs without crash.

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17026; Package emacs. (Wed, 24 Jun 2015 01:06:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 17026 <at> debbugs.gnu.org, 13486 <at> debbugs.gnu.org, 20756 <at> debbugs.gnu.org
Subject: Re: 25.0.50; struct selection_input_event data might be corrupted
 by assignments as another structure type
Date: Tue, 23 Jun 2015 18:05:27 -0700
[Message part 1 (text/plain, inline)]
YAMAMOTO Mitsuharu wrote:
> ../../../emacs/trunk/src/keyboard.h:461: error: expected specifier-qualifier-list before ‘*’ token

Thanks, it appears I was assuming C11 semantics that clang doesn't support.  I 
installed the attached further patch, which worked for me with clang 
3.6.0-2ubuntu1 (Ubuntu 15.04).
[0001-Port-selection-info-fix-to-clang.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17026; Package emacs. (Wed, 24 Jun 2015 01:21:05 GMT) Full text and rfc822 format available.

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

From: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 17026 <at> debbugs.gnu.org, 13486 <at> debbugs.gnu.org, 20756 <at> debbugs.gnu.org
Subject: Re: 25.0.50;
 struct selection_input_event data might be corrupted by assignments
 as another structure type
Date: Wed, 24 Jun 2015 10:20:48 +0900
>>>>> On Tue, 23 Jun 2015 18:05:27 -0700, Paul Eggert <eggert <at> cs.ucla.edu> said:

> YAMAMOTO Mitsuharu wrote:
>> ../../../emacs/trunk/src/keyboard.h:461: error: expected specifier-qualifier-list before ‘*’ token

> Thanks, it appears I was assuming C11 semantics that clang doesn't support.  I 
> installed the attached further patch, which worked for me with clang 
> 3.6.0-2ubuntu1 (Ubuntu 15.04).

It now builds and works for me, too.  Thanks again.

				     YAMAMOTO Mitsuharu
				mituharu <at> math.s.chiba-u.ac.jp




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17026; Package emacs. (Fri, 17 Jul 2015 19:09:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 16737 <at> debbugs.gnu.org, 17026 <at> debbugs.gnu.org, 17172 <at> debbugs.gnu.org, 
 19320 <at> debbugs.gnu.org
Cc: Tom Tromey <tromey <at> redhat.com>, Mitchel Humpherys <mitch.special <at> gmail.com>,
 Sujith Manoharan <sujith <at> msujith.org>, 17101 <at> debbugs.gnu.org
Subject: Patch for "Yank causes hang" bug in Emacs
Date: Fri, 17 Jul 2015 12:08:41 -0700
I installed a patch for this bug, as Emacs master commit
0592cefd03f1de2f04b721d07a16e6e0a9e48f73; could you please give it a try?  Thanks.




Added tag(s) patch. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Sun, 26 Jul 2015 17:26:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 28 Aug 2015 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from "Alan D. Salewski" <salewski <at> att.net> to control <at> debbugs.gnu.org. (Sun, 13 Sep 2015 19:08:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17026; Package emacs. (Sat, 26 Sep 2015 04:42:02 GMT) Full text and rfc822 format available.

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

From: Mitchel Humpherys <mitch.special <at> gmail.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Tom Tromey <tromey <at> redhat.com>, 17101 <at> debbugs.gnu.org,
 17172 <at> debbugs.gnu.org, 16737 <at> debbugs.gnu.org, 17026 <at> debbugs.gnu.org,
 19320 <at> debbugs.gnu.org, Sujith Manoharan <sujith <at> msujith.org>
Subject: Re: Patch for "Yank causes hang" bug in Emacs
Date: Fri, 25 Sep 2015 21:39:18 -0700
On Fri, Jul 17 2015 at 12:08:41 PM, Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> I installed a patch for this bug, as Emacs master commit
> 0592cefd03f1de2f04b721d07a16e6e0a9e48f73; could you please give it a try?  Thanks.

I haven't seen this since moving to Emacs from git a week ago, so the
bug is definitely gone.  I assume it was your patch.  Thanks!

-- 
Mitch




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 24 Oct 2015 11:24:04 GMT) Full text and rfc822 format available.

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

Previous Next


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