unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
@ 2015-12-20  6:26 Joseph Mingrone
  2015-12-20 15:54 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 33+ messages in thread
From: Joseph Mingrone @ 2015-12-20  6:26 UTC (permalink / raw)
  To: 22214


If clipmon-mode is enaled and a gui dialog box is displayed, then
emacs will lock up and its process will use 100% CPU.  This happens
with both

GNU Emacs 25.0.50.1 (amd64-portbld-freebsd10.1, GTK+ Version 2.24.29) of 2015-12-20

and

GNU Emacs 25.0.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2015-11-11.

Here is a recipe to repeat the problem:

% emacs -Q
evaluate (load "/path/to/clipmon-20150306.1223/clipmon.el")
S-<down> <down-mouse-1>

Thanks,

Joseph

Sometimes X will lock up and the only way to regain control is to
switch to a virtual terminal and kill emacs.  Running emacs on a
remote box, with the same recipe can lock the local window manager.  I
will bring this to the attention of the clipmon developer in case this
is a problem with the package.




In GNU Emacs 25.0.50.1 (amd64-portbld-freebsd10.1, GTK+ Version 2.24.29)
 of 2015-12-20
Windowing system distributor 'The X.Org Foundation', version 11.0.11704000
Configured using:
 'configure --localstatedir=/var --with-gameuser=games:games
 --disable-acl --without-dbus --without-file-notification
 --without-gconf --with-gif --with-gnutls --without-gsettings
 --with-jpeg --with-m17n-flt --with-imagemagick --with-libotf
 --with-png --without-toolkit-scroll-bars --with-rsvg --with-tiff
 --with-x --with-xft --with-xim --with-xml2 --with-xpm
 --with-x-toolkit=gtk2 --with-sound=oss --x-libraries=/usr/local/lib
 --x-includes=/usr/local/include --prefix=/usr/local
 --mandir=/usr/local/man --infodir=/usr/local/share/emacs/info/
 --build=amd64-portbld-freebsd10.1 'CFLAGS=-O2 -pipe -fstack-protector
 -fno-strict-aliasing' CPPFLAGS=-I/usr/local/include 'LDFLAGS=
 -L/usr/local/lib -Wl,-rpath=/usr/lib:/usr/local/lib
 -fstack-protector''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GNUTLS LIBXML2 FREETYPE
M17N_FLT LIBOTF XFT ZLIB GTK2 X11

Important settings:
  value of $LANG: en_CA.UTF-8
  locale-coding-system: utf-8-unix

Major mode: ERC

Minor modes in effect:
  diff-auto-refine-mode: t
  savehist-mode: t
  global-company-mode: t
  company-mode: t
  erc-spelling-mode: t
  flyspell-mode: t
  erc-log-mode: t
  show-paren-mode: t
  global-auto-revert-mode: t
  clipmon-mode: t
  global-undo-tree-mode: t
  undo-tree-mode: t
  pdf-occur-global-minor-mode: t
  helm-flx-mode: t
  helm-mode: t
  google-this-mode: t
  shell-dirtrack-mode: t
  erc-list-mode: t
  erc-menu-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-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  beacon-mode: t
  tooltip-mode: t
  global-eldoc-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
  column-number-mode: t
  line-number-mode: t
  visual-line-mode: t
  transient-mark-mode: t

Recent messages:
Mark set
Mark saved where search started
Invalid face reference: package-status-builtin-face
Type C-x 1 to delete the help window.
Invalid face reference: package-status-builtin-face [32 times]
gui-get-selection: (error "Timed out waiting for reply from selection owner") [6 times]
Quit
Type C-x 1 to delete the help window.
Quit
Mark set

Load-path shadows:
/home/jrm/.emacs.d/elpa/helm-20151218.1216/helm-multi-match hides /home/jrm/.emacs.d/elpa/helm-core-20151213.17/helm-multi-match
/home/jrm/.emacs.d/elpa/org-20151214/org-element hides /usr/local/share/emacs/25.0.50/lisp/org/org-element
/home/jrm/.emacs.d/elpa/org-20151214/org-pcomplete hides /usr/local/share/emacs/25.0.50/lisp/org/org-pcomplete
/home/jrm/.emacs.d/elpa/org-20151214/ob-dot hides /usr/local/share/emacs/25.0.50/lisp/org/ob-dot
/home/jrm/.emacs.d/elpa/org-20151214/org-gnus hides /usr/local/share/emacs/25.0.50/lisp/org/org-gnus
/home/jrm/.emacs.d/elpa/org-20151214/org-attach hides /usr/local/share/emacs/25.0.50/lisp/org/org-attach
/home/jrm/.emacs.d/elpa/org-20151214/ob-latex hides /usr/local/share/emacs/25.0.50/lisp/org/ob-latex
/home/jrm/.emacs.d/elpa/org-20151214/org-mhe hides /usr/local/share/emacs/25.0.50/lisp/org/org-mhe
/home/jrm/.emacs.d/elpa/org-20151214/ob-org hides /usr/local/share/emacs/25.0.50/lisp/org/ob-org
/home/jrm/.emacs.d/elpa/org-20151214/ob-python hides /usr/local/share/emacs/25.0.50/lisp/org/ob-python
/home/jrm/.emacs.d/elpa/org-20151214/ob-sqlite hides /usr/local/share/emacs/25.0.50/lisp/org/ob-sqlite
/home/jrm/.emacs.d/elpa/org-20151214/ob-exp hides /usr/local/share/emacs/25.0.50/lisp/org/ob-exp
/home/jrm/.emacs.d/elpa/org-20151214/ob-octave hides /usr/local/share/emacs/25.0.50/lisp/org/ob-octave
/home/jrm/.emacs.d/elpa/org-20151214/ob-lisp hides /usr/local/share/emacs/25.0.50/lisp/org/ob-lisp
/home/jrm/.emacs.d/elpa/org-20151214/ob hides /usr/local/share/emacs/25.0.50/lisp/org/ob
/home/jrm/.emacs.d/elpa/org-20151214/org-list hides /usr/local/share/emacs/25.0.50/lisp/org/org-list
/home/jrm/.emacs.d/elpa/org-20151214/org-colview hides /usr/local/share/emacs/25.0.50/lisp/org/org-colview
/home/jrm/.emacs.d/elpa/org-20151214/org-src hides /usr/local/share/emacs/25.0.50/lisp/org/org-src
/home/jrm/.emacs.d/elpa/org-20151214/org-bbdb hides /usr/local/share/emacs/25.0.50/lisp/org/org-bbdb
/home/jrm/.emacs.d/elpa/org-20151214/ob-screen hides /usr/local/share/emacs/25.0.50/lisp/org/ob-screen
/home/jrm/.emacs.d/elpa/org-20151214/org-macs hides /usr/local/share/emacs/25.0.50/lisp/org/org-macs
/home/jrm/.emacs.d/elpa/org-20151214/ob-scheme hides /usr/local/share/emacs/25.0.50/lisp/org/ob-scheme
/home/jrm/.emacs.d/elpa/org-20151214/org-macro hides /usr/local/share/emacs/25.0.50/lisp/org/org-macro
/home/jrm/.emacs.d/elpa/org-20151214/ob-keys hides /usr/local/share/emacs/25.0.50/lisp/org/ob-keys
/home/jrm/.emacs.d/elpa/org-20151214/ob-sql hides /usr/local/share/emacs/25.0.50/lisp/org/ob-sql
/home/jrm/.emacs.d/elpa/org-20151214/ob-makefile hides /usr/local/share/emacs/25.0.50/lisp/org/ob-makefile
/home/jrm/.emacs.d/elpa/org-20151214/ob-C hides /usr/local/share/emacs/25.0.50/lisp/org/ob-C
/home/jrm/.emacs.d/elpa/org-20151214/org hides /usr/local/share/emacs/25.0.50/lisp/org/org
/home/jrm/.emacs.d/elpa/org-20151214/ob-sass hides /usr/local/share/emacs/25.0.50/lisp/org/ob-sass
/home/jrm/.emacs.d/elpa/org-20151214/ob-ditaa hides /usr/local/share/emacs/25.0.50/lisp/org/ob-ditaa
/home/jrm/.emacs.d/elpa/org-20151214/ob-js hides /usr/local/share/emacs/25.0.50/lisp/org/ob-js
/home/jrm/.emacs.d/elpa/org-20151214/ox-texinfo hides /usr/local/share/emacs/25.0.50/lisp/org/ox-texinfo
/home/jrm/.emacs.d/elpa/org-20151214/ob-io hides /usr/local/share/emacs/25.0.50/lisp/org/ob-io
/home/jrm/.emacs.d/elpa/org-20151214/ob-awk hides /usr/local/share/emacs/25.0.50/lisp/org/ob-awk
/home/jrm/.emacs.d/elpa/org-20151214/org-feed hides /usr/local/share/emacs/25.0.50/lisp/org/org-feed
/home/jrm/.emacs.d/elpa/org-20151214/ob-shen hides /usr/local/share/emacs/25.0.50/lisp/org/ob-shen
/home/jrm/.emacs.d/elpa/org-20151214/ox-md hides /usr/local/share/emacs/25.0.50/lisp/org/ox-md
/home/jrm/.emacs.d/elpa/org-20151214/ob-gnuplot hides /usr/local/share/emacs/25.0.50/lisp/org/ob-gnuplot
/home/jrm/.emacs.d/elpa/org-20151214/org-eshell hides /usr/local/share/emacs/25.0.50/lisp/org/org-eshell
/home/jrm/.emacs.d/elpa/org-20151214/ob-core hides /usr/local/share/emacs/25.0.50/lisp/org/ob-core
/home/jrm/.emacs.d/elpa/org-20151214/ob-matlab hides /usr/local/share/emacs/25.0.50/lisp/org/ob-matlab
/home/jrm/.emacs.d/elpa/org-20151214/org-agenda hides /usr/local/share/emacs/25.0.50/lisp/org/org-agenda
/home/jrm/.emacs.d/elpa/org-20151214/ox-html hides /usr/local/share/emacs/25.0.50/lisp/org/ox-html
/home/jrm/.emacs.d/elpa/org-20151214/org-table hides /usr/local/share/emacs/25.0.50/lisp/org/org-table
/home/jrm/.emacs.d/elpa/org-20151214/ob-asymptote hides /usr/local/share/emacs/25.0.50/lisp/org/ob-asymptote
/home/jrm/.emacs.d/elpa/org-20151214/org-clock hides /usr/local/share/emacs/25.0.50/lisp/org/org-clock
/home/jrm/.emacs.d/elpa/org-20151214/ob-fortran hides /usr/local/share/emacs/25.0.50/lisp/org/ob-fortran
/home/jrm/.emacs.d/elpa/org-20151214/ob-ledger hides /usr/local/share/emacs/25.0.50/lisp/org/ob-ledger
/home/jrm/.emacs.d/elpa/org-20151214/org-compat hides /usr/local/share/emacs/25.0.50/lisp/org/org-compat
/home/jrm/.emacs.d/elpa/org-20151214/org-indent hides /usr/local/share/emacs/25.0.50/lisp/org/org-indent
/home/jrm/.emacs.d/elpa/org-20151214/org-plot hides /usr/local/share/emacs/25.0.50/lisp/org/org-plot
/home/jrm/.emacs.d/elpa/org-20151214/ob-clojure hides /usr/local/share/emacs/25.0.50/lisp/org/ob-clojure
/home/jrm/.emacs.d/elpa/org-20151214/org-ctags hides /usr/local/share/emacs/25.0.50/lisp/org/org-ctags
/home/jrm/.emacs.d/elpa/org-20151214/ob-java hides /usr/local/share/emacs/25.0.50/lisp/org/ob-java
/home/jrm/.emacs.d/elpa/org-20151214/org-protocol hides /usr/local/share/emacs/25.0.50/lisp/org/org-protocol
/home/jrm/.emacs.d/elpa/org-20151214/ox hides /usr/local/share/emacs/25.0.50/lisp/org/ox
/home/jrm/.emacs.d/elpa/org-20151214/ob-table hides /usr/local/share/emacs/25.0.50/lisp/org/ob-table
/home/jrm/.emacs.d/elpa/org-20151214/org-habit hides /usr/local/share/emacs/25.0.50/lisp/org/org-habit
/home/jrm/.emacs.d/elpa/org-20151214/org-entities hides /usr/local/share/emacs/25.0.50/lisp/org/org-entities
/home/jrm/.emacs.d/elpa/org-20151214/org-info hides /usr/local/share/emacs/25.0.50/lisp/org/org-info
/home/jrm/.emacs.d/elpa/org-20151214/org-capture hides /usr/local/share/emacs/25.0.50/lisp/org/org-capture
/home/jrm/.emacs.d/elpa/org-20151214/ob-scala hides /usr/local/share/emacs/25.0.50/lisp/org/ob-scala
/home/jrm/.emacs.d/elpa/org-20151214/org-crypt hides /usr/local/share/emacs/25.0.50/lisp/org/org-crypt
/home/jrm/.emacs.d/elpa/org-20151214/ob-ruby hides /usr/local/share/emacs/25.0.50/lisp/org/ob-ruby
/home/jrm/.emacs.d/elpa/org-20151214/ob-ref hides /usr/local/share/emacs/25.0.50/lisp/org/ob-ref
/home/jrm/.emacs.d/elpa/org-20151214/ob-picolisp hides /usr/local/share/emacs/25.0.50/lisp/org/ob-picolisp
/home/jrm/.emacs.d/elpa/org-20151214/ob-haskell hides /usr/local/share/emacs/25.0.50/lisp/org/ob-haskell
/home/jrm/.emacs.d/elpa/org-20151214/org-rmail hides /usr/local/share/emacs/25.0.50/lisp/org/org-rmail
/home/jrm/.emacs.d/elpa/org-20151214/ob-calc hides /usr/local/share/emacs/25.0.50/lisp/org/ob-calc
/home/jrm/.emacs.d/elpa/org-20151214/ox-org hides /usr/local/share/emacs/25.0.50/lisp/org/ox-org
/home/jrm/.emacs.d/elpa/org-20151214/ob-emacs-lisp hides /usr/local/share/emacs/25.0.50/lisp/org/ob-emacs-lisp
/home/jrm/.emacs.d/elpa/org-20151214/ox-icalendar hides /usr/local/share/emacs/25.0.50/lisp/org/ox-icalendar
/home/jrm/.emacs.d/elpa/org-20151214/ob-lob hides /usr/local/share/emacs/25.0.50/lisp/org/ob-lob
/home/jrm/.emacs.d/elpa/org-20151214/ox-beamer hides /usr/local/share/emacs/25.0.50/lisp/org/ox-beamer
/home/jrm/.emacs.d/elpa/org-20151214/ob-comint hides /usr/local/share/emacs/25.0.50/lisp/org/ob-comint
/home/jrm/.emacs.d/elpa/org-20151214/org-footnote hides /usr/local/share/emacs/25.0.50/lisp/org/org-footnote
/home/jrm/.emacs.d/elpa/org-20151214/org-timer hides /usr/local/share/emacs/25.0.50/lisp/org/org-timer
/home/jrm/.emacs.d/elpa/org-20151214/ob-css hides /usr/local/share/emacs/25.0.50/lisp/org/ob-css
/home/jrm/.emacs.d/elpa/org-20151214/org-w3m hides /usr/local/share/emacs/25.0.50/lisp/org/org-w3m
/home/jrm/.emacs.d/elpa/org-20151214/ox-publish hides /usr/local/share/emacs/25.0.50/lisp/org/ox-publish
/home/jrm/.emacs.d/elpa/org-20151214/ob-maxima hides /usr/local/share/emacs/25.0.50/lisp/org/ob-maxima
/home/jrm/.emacs.d/elpa/org-20151214/ob-lilypond hides /usr/local/share/emacs/25.0.50/lisp/org/ob-lilypond
/home/jrm/.emacs.d/elpa/org-20151214/ob-eval hides /usr/local/share/emacs/25.0.50/lisp/org/ob-eval
/home/jrm/.emacs.d/elpa/org-20151214/org-mouse hides /usr/local/share/emacs/25.0.50/lisp/org/org-mouse
/home/jrm/.emacs.d/elpa/org-20151214/org-faces hides /usr/local/share/emacs/25.0.50/lisp/org/org-faces
/home/jrm/.emacs.d/elpa/org-20151214/ob-plantuml hides /usr/local/share/emacs/25.0.50/lisp/org/ob-plantuml
/home/jrm/.emacs.d/elpa/org-20151214/org-id hides /usr/local/share/emacs/25.0.50/lisp/org/org-id
/home/jrm/.emacs.d/elpa/org-20151214/ox-ascii hides /usr/local/share/emacs/25.0.50/lisp/org/ox-ascii
/home/jrm/.emacs.d/elpa/org-20151214/ob-perl hides /usr/local/share/emacs/25.0.50/lisp/org/ob-perl
/home/jrm/.emacs.d/elpa/org-20151214/ox-odt hides /usr/local/share/emacs/25.0.50/lisp/org/ox-odt
/home/jrm/.emacs.d/elpa/org-20151214/ob-R hides /usr/local/share/emacs/25.0.50/lisp/org/ob-R
/home/jrm/.emacs.d/elpa/org-20151214/ob-mscgen hides /usr/local/share/emacs/25.0.50/lisp/org/ob-mscgen
/home/jrm/.emacs.d/elpa/org-20151214/org-mobile hides /usr/local/share/emacs/25.0.50/lisp/org/org-mobile
/home/jrm/.emacs.d/elpa/org-20151214/ob-tangle hides /usr/local/share/emacs/25.0.50/lisp/org/ob-tangle
/home/jrm/.emacs.d/elpa/org-20151214/org-loaddefs hides /usr/local/share/emacs/25.0.50/lisp/org/org-loaddefs
/home/jrm/.emacs.d/elpa/org-20151214/org-archive hides /usr/local/share/emacs/25.0.50/lisp/org/org-archive
/home/jrm/.emacs.d/elpa/org-20151214/org-docview hides /usr/local/share/emacs/25.0.50/lisp/org/org-docview
/home/jrm/.emacs.d/elpa/org-20151214/org-datetree hides /usr/local/share/emacs/25.0.50/lisp/org/org-datetree
/home/jrm/.emacs.d/elpa/org-20151214/org-install hides /usr/local/share/emacs/25.0.50/lisp/org/org-install
/home/jrm/.emacs.d/elpa/org-20151214/ox-latex hides /usr/local/share/emacs/25.0.50/lisp/org/ox-latex
/home/jrm/.emacs.d/elpa/org-20151214/ox-man hides /usr/local/share/emacs/25.0.50/lisp/org/ox-man
/home/jrm/.emacs.d/elpa/org-20151214/org-inlinetask hides /usr/local/share/emacs/25.0.50/lisp/org/org-inlinetask
/home/jrm/.emacs.d/elpa/org-20151214/ob-ocaml hides /usr/local/share/emacs/25.0.50/lisp/org/ob-ocaml
/home/jrm/.emacs.d/elpa/org-20151214/org-irc hides /usr/local/share/emacs/25.0.50/lisp/org/org-irc
/home/jrm/.emacs.d/elpa/org-20151214/org-bibtex hides /usr/local/share/emacs/25.0.50/lisp/org/org-bibtex
/home/jrm/.emacs.d/elpa/org-20151214/org-version hides /usr/local/share/emacs/25.0.50/lisp/org/org-version
/home/jrm/.emacs.d/elpa/company-statistics-0.2.2/.dir-locals hides /usr/local/share/emacs/25.0.50/lisp/gnus/.dir-locals
/home/jrm/.emacs.d/elpa/cl-generic-0.2/cl-generic hides /usr/local/share/emacs/25.0.50/lisp/emacs-lisp/cl-generic
/home/jrm/.emacs.d/elpa/seq-20151121.1017/seq hides /usr/local/share/emacs/25.0.50/lisp/emacs-lisp/seq

Features:
(shadow sort bbdb-message mail-extr gnus-msg gnus-art mm-uu mml2015
mm-view mml-smime smime dig emacsbug sendmail lisp-mnt mm-archive
url-handlers url-http url-gw url-cache url-auth eieio-opt speedbar
sb-image ezimage dframe ace-window time-stamp vc vc-dispatcher vc-git
diff-mode tramp-sh tramp-cache pcmpl-unix em-xtra em-unix em-term term
disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob
em-dirs em-cmpl em-basic em-banner em-alias esh-var esh-io esh-cmd
esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode
esh-util multi-eshell character-fold misearch multi-isearch epa-file
epa derived epg gnutls network-stream nsm starttls znc winner flx
helm-command helm-elisp helm-eval edebug server ace-link avy cal-china
lunar solar cal-dst cal-islam cal-hebrew holidays hol-loaddefs
bbdb-anniv bbdb-com crm bbdb bbdb-site timezone appt diary-lib
diary-loaddefs savehist company-files company-oddmuse company-keywords
company-etags etags xref project company-gtags company-dabbrev-code
company-dabbrev company-capf company-cmake company-xcode company-clang
company-semantic company-eclim company-template company-css
company-nxml company-bbdb company smart-mode-line-dark-theme
smart-mode-line rich-minority org-w3m org-protocol org-mhe org-irc
org-info org-gnus org-docview doc-view org-bibtex bibtex org-bbdb
org-element avl-tree erc-spelling flyspell ispell erc-log paren
hl-line autorevert filenotify clipmon undo-tree diff transpar s
ucs-normalize pdf-occur ibuf-ext ibuffer tablist tablist-filter
semantic/wisent/comp semantic/wisent semantic/wisent/wisent
semantic/util-modes semantic/util semantic semantic/tag semantic/lex
semantic/fw mode-local cedet pdf-isearch let-alist pdf-misc imenu
pdf-tools cus-edit cus-start cus-load pdf-view jka-compr pdf-cache
pdf-info tq pdf-util image-mode org-clock org-location-google-maps
org-agenda google-maps google-maps-static google-maps-geocode
google-maps-base json map org org-macro org-footnote org-pcomplete
org-list org-faces org-entities noutline outline org-version
ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src
ob-keys ob-comint ob-core ob-eval org-compat org-macs org-loaddefs
cal-menu calendar cal-loaddefs nnmairix nnml gnus-sum gnus-group
gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls utf7
netrc parse-time 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 nnoo nnheader mail-utils misc key-chord helm-flx helm-mode
helm-files rx tramp tramp-compat tramp-loaddefs trampver ffap
helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive
helm-info bookmark helm-locate helm-grep helm-regexp helm-plugin
helm-external helm-net xml helm-utils helm-help helm-types helm
helm-source eieio-compat helm-multi-match helm-lib google-this url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util url-parse url-vars mailcap ido ess-toolbar
ess-mouse mouseme browse-url ess-menu ess-swv ess-noweb
ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l
ess-sas-a shell ess-sta-d ess-sta-l cc-vars cc-defs make-regexp
ess-sp6-d ess-sp3-d ess-julia julia-mode ert find-func ewoc debug
ess-r-d ess-r-syntax ess-r-completion ess-tracebug ess-roxy hideshow
ess-help ess-developer ess-s-l ess ess-inf compile ess-mode
ess-noweb-mode ess-utils ess-custom executable ess-compat ess-site
erc-tex edmacro kmacro erc-list erc-menu erc-join erc-ring
erc-networks erc-pcomplete pcomplete comint ansi-color ring erc-track
erc-match erc-button wid-edit erc-fill erc-stamp erc-netsplit
erc-goodies erc erc-backend erc-compat auth-source cl-seq eieio
byte-opt bytecomp byte-compile cl-extra cconv gnus-util time-date
mm-util help-fns mail-prsvr password-cache thingatpt pp cl help-mode
easy-mmode dired+ image-dired format-spec image-file dired-x dired-aux
dired beacon seq finder-inf tex-site advice info eieio-core cl-macs gv
cl-loaddefs pcase cl-lib package easymenu epg-config mule-util tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cl-generic cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese charscript case-table
epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded
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 dynamic-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 806808 121139)
 (symbols 48 64587 0)
 (miscs 40 601 1849)
 (strings 32 185147 27482)
 (string-bytes 1 6065476)
 (vectors 16 112110)
 (vector-slots 8 2716270 41641)
 (floats 8 5055 482)
 (intervals 56 16971 4539)
 (buffers 976 60))
<#secure method=pgpmime mode=sign>





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-20  6:26 bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode Joseph Mingrone
@ 2015-12-20 15:54 ` Eli Zaretskii
  2015-12-21  2:31   ` Joseph Mingrone
  2015-12-21  0:21 ` Brian Burns
  2015-12-22  5:21 ` Joseph Mingrone
  2 siblings, 1 reply; 33+ messages in thread
From: Eli Zaretskii @ 2015-12-20 15:54 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214

> From: Joseph Mingrone <jrm@ftfl.ca>
> Date: Sun, 20 Dec 2015 02:26:57 -0400
> 
> If clipmon-mode is enaled and a gui dialog box is displayed, then
> emacs will lock up and its process will use 100% CPU.  This happens
> with both
> 
> GNU Emacs 25.0.50.1 (amd64-portbld-freebsd10.1, GTK+ Version 2.24.29) of 2015-12-20
> 
> and
> 
> GNU Emacs 25.0.50.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2015-11-11.
> 
> Here is a recipe to repeat the problem:
> 
> % emacs -Q
> evaluate (load "/path/to/clipmon-20150306.1223/clipmon.el")
> S-<down> <down-mouse-1>
> 
> Thanks,
> 
> Joseph
> 
> Sometimes X will lock up and the only way to regain control is to
> switch to a virtual terminal and kill emacs.  Running emacs on a
> remote box, with the same recipe can lock the local window manager.  I
> will bring this to the attention of the clipmon developer in case this
> is a problem with the package.

What is your value of x-selection-timeout?

I think there is indeed a problem in clipmon: it calls
x-get-selection-value from a timer that runs every 2 sec.  But if the
call times out, and the value of x-selection-timeout is more than 2
sec (the default is 5, I think), then this will indeed wedge Emacs
cold, for obvious reasons.  In addition, the function that waits for
the timeout to expire also runs timers, which probably exacerbates the
problem.

Can you attach a debugger to Emacs when it is wedged, and see which
threads run and consume CPU?

Thanks.





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-20  6:26 bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode Joseph Mingrone
  2015-12-20 15:54 ` Eli Zaretskii
@ 2015-12-21  0:21 ` Brian Burns
  2015-12-21  0:45   ` Joseph Mingrone
  2015-12-21 15:26   ` Eli Zaretskii
  2015-12-22  5:21 ` Joseph Mingrone
  2 siblings, 2 replies; 33+ messages in thread
From: Brian Burns @ 2015-12-21  0:21 UTC (permalink / raw)
  To: eliz, jrm, 22214

[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]

> I think there is indeed a problem in clipmon: it calls
x-get-selection-value
> from a timer that runs every 2 sec. But if the call times out, and the
value of
> x-selection-timeout is more than 2 sec (the default is 5, I think), then
this
> will indeed wedge Emacs cold, for obvious reasons. In addition, the
function
> that waits for the timeout to expire also runs timers, which probably
> exacerbates the problem.

Hi, clipmon author here - this seems to be a problem on Linux as the Windows
build (25.0.50.1) works okay on Windows 8.1, but I read that
`x-get-selection-value' is obsolete in Emacs 25, and was changed to
`gui-get-primary-selection' -
http://stackoverflow.com/questions/28403647/emacs-25-yank-from-x-windows-primary-clipboard-buffer-with-keyboard
.

Does anyone know what might have changed in this function? If not I'll
check git
for any changes, and then I'll setup a Linux VM then I can test it out and
do
some debugging.

Also tracking the issue here - https://github.com/bburns/clipmon/issues/3

Regards,
Brian

[-- Attachment #2: Type: text/html, Size: 1343 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-21  0:21 ` Brian Burns
@ 2015-12-21  0:45   ` Joseph Mingrone
  2015-12-22  7:56     ` Brian Burns
  2015-12-21 15:26   ` Eli Zaretskii
  1 sibling, 1 reply; 33+ messages in thread
From: Joseph Mingrone @ 2015-12-21  0:45 UTC (permalink / raw)
  To: Brian Burns; +Cc: 22214

[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]

Brian Burns <bburns.km@gmail.com> writes:

>> I think there is indeed a problem in clipmon: it calls
> x-get-selection-value
>> from a timer that runs every 2 sec. But if the call times out, and the
> value of
>> x-selection-timeout is more than 2 sec (the default is 5, I think), then
> this
>> will indeed wedge Emacs cold, for obvious reasons. In addition, the
> function
>> that waits for the timeout to expire also runs timers, which probably
>> exacerbates the problem.

> Hi, clipmon author here - this seems to be a problem on Linux as the Windows
> build (25.0.50.1) works okay on Windows 8.1, but I read that
> `x-get-selection-value' is obsolete in Emacs 25, and was changed to
> `gui-get-primary-selection' -
> http://stackoverflow.com/questions/28403647/emacs-25-yank-from-x-windows-primary-clipboard-buffer-with-keyboard
> .

> Does anyone know what might have changed in this function? If not I'll
> check git
> for any changes, and then I'll setup a Linux VM then I can test it out and
> do
> some debugging.

> Also tracking the issue here - https://github.com/bburns/clipmon/issues/3

Eli and Brian,

The value of x-selection-timeout was indeed 5000 milliseconds.  I
tried changing it to 0 and 500 milliseconds with no change.

The results of the simple test were the same on 24.5.1.  I'm working
on attaching the debugger, so hopefully more information will follow
soon.

Joseph

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-20 15:54 ` Eli Zaretskii
@ 2015-12-21  2:31   ` Joseph Mingrone
  2015-12-21 15:24     ` Eli Zaretskii
  0 siblings, 1 reply; 33+ messages in thread
From: Joseph Mingrone @ 2015-12-21  2:31 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22214, Brian Burns

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:
> Can you attach a debugger to Emacs when it is wedged, and see which
> threads run and consume CPU?

Does below include what you're looking for?  If not, just let me know and I'll investigate further.

Joseph

GNU gdb (GDB) 7.10 [GDB v7.10 for FreeBSD]
.
.
.
Type "apropos word" to search for commands related to "word".
Attaching to process 57303
Reading symbols from /usr/home/jrm/scm/nm/emacs.git/src/emacs-25.0.50.1...done.
.
.
.
[New Thread 16b5c00 (LWP 101370)]
[New Thread 1902400 (LWP 100742)]
.
.
.
[Switching to Thread 1902400 (LWP 100742)]
0x0000000807444cfa in _sigprocmask () from /lib/libc.so.7
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0.0
TERM = screen-256color
Breakpoint 1 at 0x5dfb54: file emacs.c, line 371.
Temporary breakpoint 2 at 0x61e9d9: file sysdep.c, line 905.
(gdb)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-21  2:31   ` Joseph Mingrone
@ 2015-12-21 15:24     ` Eli Zaretskii
  2015-12-21 16:41       ` Joseph Mingrone
  0 siblings, 1 reply; 33+ messages in thread
From: Eli Zaretskii @ 2015-12-21 15:24 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214, bburns.km

> From: Joseph Mingrone <jrm@ftfl.ca>
> Cc: 22214@debbugs.gnu.org, Brian Burns <bburns.km@gmail.com>
> Date: Sun, 20 Dec 2015 22:31:08 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> > Can you attach a debugger to Emacs when it is wedged, and see which
> > threads run and consume CPU?
> 
> Does below include what you're looking for?  If not, just let me know and I'll investigate further.
> 
> Joseph
> 
> GNU gdb (GDB) 7.10 [GDB v7.10 for FreeBSD]
> .
> .
> .
> Type "apropos word" to search for commands related to "word".
> Attaching to process 57303
> Reading symbols from /usr/home/jrm/scm/nm/emacs.git/src/emacs-25.0.50.1...done.
> .
> .
> .
> [New Thread 16b5c00 (LWP 101370)]
> [New Thread 1902400 (LWP 100742)]
> .
> .
> .
> [Switching to Thread 1902400 (LWP 100742)]
> 0x0000000807444cfa in _sigprocmask () from /lib/libc.so.7
> SIGINT is used by the debugger.
> Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
> DISPLAY = :0.0
> TERM = screen-256color
> Breakpoint 1 at 0x5dfb54: file emacs.c, line 371.
> Temporary breakpoint 2 at 0x61e9d9: file sysdep.c, line 905.
> (gdb)

Yes, but at this point please type

  thread apply all bt

and post everything that GDB displays.

Thanks.





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-21  0:21 ` Brian Burns
  2015-12-21  0:45   ` Joseph Mingrone
@ 2015-12-21 15:26   ` Eli Zaretskii
  1 sibling, 0 replies; 33+ messages in thread
From: Eli Zaretskii @ 2015-12-21 15:26 UTC (permalink / raw)
  To: Brian Burns; +Cc: jrm, 22214

> From: Brian Burns <bburns.km@gmail.com>
> Date: Sun, 20 Dec 2015 18:21:24 -0600
> 
> Hi, clipmon author here - this seems to be a problem on Linux as the Windows
> build (25.0.50.1) works okay on Windows 8.1, but I read that
> `x-get-selection-value' is obsolete in Emacs 25, and was changed to
> `gui-get-primary-selection' -
> http://stackoverflow.com/questions/28403647/emacs-25-yank-from-x-windows-primary-clipboard-buffer-with-keyboard.

That shouldn't matter -- these are equivalent.

I'm guessing that GTK has something to do with this issue.

But in any case, calling x-get-selection-value from a timer that runs
every few seconds is not a very good idea.





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-21 15:24     ` Eli Zaretskii
@ 2015-12-21 16:41       ` Joseph Mingrone
  2015-12-21 17:50         ` Eli Zaretskii
  0 siblings, 1 reply; 33+ messages in thread
From: Joseph Mingrone @ 2015-12-21 16:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22214, bburns.km

[-- Attachment #1: Type: text/plain, Size: 20540 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:
> Yes, but at this point please type

>   thread apply all bt

> and post everything that GDB displays.

jrm@phe ~/scm/nm/emacs.git/src % gdb710 -p 71203
GNU gdb (GDB) 7.10 [GDB v7.10 for FreeBSD]
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd10.1".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 71203
Reading symbols from /usr/home/jrm/scm/nm/emacs.git/src/emacs-25.0.50.1...done.
Reading symbols from /usr/local/lib/libtiff.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libjpeg.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpng16.so.16...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgif.so.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXpm.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXaw.so.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXmu.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXt.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libSM.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libICE.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXext.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libX11.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libX11-xcb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXrender.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXft.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/librsvg-2.so.2...(no debugging symbols found)...done.
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgio-2.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgdk_pixbuf-2.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgobject-2.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libcairo.so.2...(no debugging symbols found)...done.
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.
[New Thread 16b5c00 (LWP 100166)]
[New Thread 1902400 (LWP 100743)]
Reading symbols from /usr/local/lib/libMagickWand-6.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libMagickCore-6.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libexecinfo.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXrandr.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXinerama.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXfixes.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxml2.so.2...(no debugging symbols found)...done.
Reading symbols from /lib/libutil.so.9...(no debugging symbols found)...done.
Reading symbols from /lib/libncurses.so.8...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libfreetype.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libfontconfig.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libotf.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libm17n-flt.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libm17n-core.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgnutls.so.28...(no debugging symbols found)...done.
Reading symbols from /lib/libz.so.6...(no debugging symbols found)...done.
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Reading symbols from /usr/lib/liblzma.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libjbig.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/lib/librpcsvc.so.5...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXau.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpthread-stubs.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpangocairo-1.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpango-1.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libcroco-0.6.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libffi.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgmodule-2.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libiconv.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpcre.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpixman-1.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libEGL.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-shm.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-render.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libGL.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/liblcms2.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/liblqr-1.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libfftw3.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libbz2.so.4...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libltdl.so.7...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libelf.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libexpat.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libp11-kit.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libtspi.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libtasn1.so.6...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libnettle.so.4...done.
Reading symbols from /usr/local/lib/libhogweed.so.2...done.
Reading symbols from /usr/local/lib/libgmp.so.10...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libpangoft2-1.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgthread-2.0.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libharfbuzz.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-dri2.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-xfixes.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-shape.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgbm.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libdrm.so.2...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libglapi.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXdamage.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libxcb-glx.so.0...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXxf86vm.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/libcrypto.so.7...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libgraphite2.so.3...(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc++.so.1...(no debugging symbols found)...done.
Reading symbols from /lib/libcxxrt.so.1...(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libXcursor.so.1...(no debugging symbols found)...done.
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
[Switching to Thread 16b5c00 (LWP 100166)]
0x00000008073dacda in _poll () from /lib/libc.so.7
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0.0
TERM = screen-256color
Breakpoint 1 at 0x5dfb54: file emacs.c, line 371.
Temporary breakpoint 2 at 0x61e9d9: file sysdep.c, line 905.
(gdb) thread apply all bt

Thread 3 (Thread 1902400 (LWP 100743)):
#0  0x0000000807444cfa in _sigprocmask () from /lib/libc.so.7
#1  0x0000000804656526 in pthread_sigmask () from /lib/libthr.so.3
#2  0x00000000007ab8e9 in block_atimers (oldset=0x7fffffff7970) at atimer.c:70
#3  0x00000000007abffc in do_pending_atimers () at atimer.c:434
#4  0x00000000005f803e in process_pending_signals () at keyboard.c:7043
#5  0x00000000006c1559 in Fmake_list (length=0, init=0) at alloc.c:2718
#6  0x0000000000713c2a in concat (nargs=1, args=0x7fffffff7b28, target_type=Lisp_Cons, last_special=false) at fns.c:633
#7  0x00000000007135d2 in Fcopy_sequence (arg=18186131) at fns.c:501
#8  0x00000000005f25b3 in timer_check () at keyboard.c:4452
#9  0x00000000005efd94 in readable_events (flags=1) at keyboard.c:3309
#10 0x00000000005f7963 in get_input_pending (flags=1) at keyboard.c:6691
#11 0x00000000005f1bbb in swallow_events (do_display=false) at keyboard.c:4203
#12 0x0000000000789ebf in wait_reading_process_output (time_limit=5, nsecs=0, read_kbd=0, do_display=false, wait_for_cell=17528851, wait_proc=0x0, just_wait_proc=0) at process.c:4996
#13 0x00000000005c4e4d in x_get_foreign_selection (selection_symbol=7008, target_type=7344, time_stamp=0, frame=24185909) at xselect.c:1201
#14 0x00000000005c6fe6 in Fx_get_selection_internal (selection_symbol=7008, target_type=7344, time_stamp=0, terminal=0) at xselect.c:1974
#15 0x0000000000706739 in Ffuncall (nargs=5, args=0x7fffffff8238) at eval.c:2704
#16 0x0000000000775a34 in exec_byte_code (bytestr=22986148, vector=23429013, maxdepth=38, args_template=4106, nargs=2, args=0x7fffffff87a8) at bytecode.c:880
#17 0x0000000000707011 in funcall_lambda (fun=24796533, nargs=2, arg_vector=0x7fffffff8798) at eval.c:2855
#18 0x0000000000706907 in Ffuncall (nargs=3, args=0x7fffffff8790) at eval.c:2742
#19 0x0000000000705998 in Fapply (nargs=2, args=0x7fffffff8930) at eval.c:2321
#20 0x000000000070654d in Ffuncall (nargs=3, args=0x7fffffff8928) at eval.c:2673
#21 0x0000000000775a34 in exec_byte_code (bytestr=26299780, vector=23760597, maxdepth=62, args_template=514, nargs=2, args=0x7fffffff8ee0) at bytecode.c:880
#22 0x0000000000707011 in funcall_lambda (fun=23752581, nargs=2, arg_vector=0x7fffffff8ee0) at eval.c:2855
#23 0x0000000000706907 in Ffuncall (nargs=3, args=0x7fffffff8ed8) at eval.c:2742
#24 0x0000000000775a34 in exec_byte_code (bytestr=14113164, vector=14113197, maxdepth=38, args_template=2050, nargs=2, args=0x7fffffff9478) at bytecode.c:880
#25 0x0000000000707011 in funcall_lambda (fun=14113117, nargs=2, arg_vector=0x7fffffff9468) at eval.c:2855
#26 0x0000000000706907 in Ffuncall (nargs=3, args=0x7fffffff9460) at eval.c:2742
#27 0x0000000000775a34 in exec_byte_code (bytestr=14111356, vector=14111389, maxdepth=34, args_template=1030, nargs=1, args=0x7fffffff99d8) at bytecode.c:880
#28 0x0000000000707011 in funcall_lambda (fun=14111309, nargs=1, arg_vector=0x7fffffff99d0) at eval.c:2855
#29 0x0000000000706907 in Ffuncall (nargs=2, args=0x7fffffff99c8) at eval.c:2742
#30 0x0000000000775a34 in exec_byte_code (bytestr=14112060, vector=14112093, maxdepth=10, args_template=2, nargs=0, args=0x7fffffff9e50) at bytecode.c:880
#31 0x0000000000707011 in funcall_lambda (fun=14112013, nargs=0, arg_vector=0x7fffffff9e50) at eval.c:2855
#32 0x0000000000706cbb in apply_lambda (fun=14112013, args=0, count=26) at eval.c:2794
#33 0x000000000070507f in eval_sub (form=18091331) at eval.c:2211
#34 0x00000000006fff4c in Fprogn (body=18091699) at eval.c:426
#35 0x0000000000704ac1 in eval_sub (form=18091715) at eval.c:2119
#36 0x0000000000702af6 in internal_lisp_condition_case (var=0, bodyform=18091715, handlers=12837003) at eval.c:1280
#37 0x00000000007025e8 in Fcondition_case (args=18091747) at eval.c:1206
#38 0x0000000000704ac1 in eval_sub (form=18091763) at eval.c:2119
#39 0x00000000006fff4c in Fprogn (body=18091875) at eval.c:426
#40 0x00000000007073a2 in funcall_lambda (fun=18091827, nargs=0, arg_vector=0x7fffffffa440) at eval.c:2914
#41 0x0000000000706cbb in apply_lambda (fun=18091827, args=0, count=23) at eval.c:2794
#42 0x0000000000705274 in eval_sub (form=18099939) at eval.c:2241
#43 0x00000000007019c8 in Flet (args=18097699) at eval.c:918
#44 0x0000000000704ac1 in eval_sub (form=18097715) at eval.c:2119
#45 0x00000000006fff4c in Fprogn (body=18097779) at eval.c:426
#46 0x00000000007073a2 in funcall_lambda (fun=18097731, nargs=0, arg_vector=0x7fffffffaac8) at eval.c:2914
#47 0x00000000007069fd in Ffuncall (nargs=1, args=0x7fffffffaac0) at eval.c:2754
#48 0x0000000000705387 in Fapply (nargs=2, args=0x7fffffffaac0) at eval.c:2274
#49 0x000000000070654d in Ffuncall (nargs=3, args=0x7fffffffaab8) at eval.c:2673
#50 0x0000000000775a34 in exec_byte_code (bytestr=14127588, vector=14127621, maxdepth=30, args_template=0, nargs=0, args=0x0) at bytecode.c:880
#51 0x0000000000707433 in funcall_lambda (fun=14127541, nargs=1, arg_vector=0xd79205 <pure+1391141>) at eval.c:2921
#52 0x0000000000706907 in Ffuncall (nargs=2, args=0x7fffffffb030) at eval.c:2742
#53 0x0000000000706051 in call1 (fn=42864, arg1=24288741) at eval.c:2552
#54 0x00000000005f24e7 in timer_check_2 (timers=0, idle_timers=0) at keyboard.c:4401
#55 0x00000000005f2615 in timer_check () at keyboard.c:4463
#56 0x00000000004cfaa7 in x_menu_wait_for_event (data=0x0) at xmenu.c:173
#57 0x00000000004cfc2d in popup_get_selection (initial_event=0x0, dpyinfo=0x16d5400, id=65537, do_timers=true) at xmenu.c:231
#58 0x00000000004d15af in create_and_show_popup_menu (f=0x1710c30, first_wv=0x1361100, x=997, y=472, for_click=true) at xmenu.c:1383
#59 0x00000000004d1fae in x_menu_show (f=0x1710c30, x=978, y=441, menuflags=3, title=14101652, error_name=0x7fffffffd3f0) at xmenu.c:1588
#60 0x00000000004c9af4 in Fx_popup_menu (position=18447187, menu=18436307) at menu.c:1430
#61 0x00000000007066bb in Ffuncall (nargs=3, args=0x7fffffffd598) at eval.c:2696
#62 0x0000000000775a34 in exec_byte_code (bytestr=14101124, vector=14101157, maxdepth=74, args_template=1030, nargs=1, args=0x7fffffffdc68) at bytecode.c:880
---Type <return> to continue, or q <return> to quit---
#63 0x0000000000707011 in funcall_lambda (fun=14101069, nargs=1, arg_vector=0x7fffffffdc60) at eval.c:2855
#64 0x0000000000706907 in Ffuncall (nargs=2, args=0x7fffffffdc58) at eval.c:2742
#65 0x00000000006f7b08 in Ffuncall_interactively (nargs=2, args=0x7fffffffdc58) at callint.c:248
#66 0x000000000070654d in Ffuncall (nargs=3, args=0x7fffffffdc50) at eval.c:2673
#67 0x00000000006fa007 in Fcall_interactively (function=9300720, record_flag=0, keys=17352085) at callint.c:836
#68 0x00000000007066f6 in Ffuncall (nargs=4, args=0x7fffffffdf88) at eval.c:2700
#69 0x0000000000775a34 in exec_byte_code (bytestr=13627676, vector=13627709, maxdepth=54, args_template=4102, nargs=1, args=0x7fffffffe510) at bytecode.c:880
#70 0x0000000000707011 in funcall_lambda (fun=13627629, nargs=1, arg_vector=0x7fffffffe508) at eval.c:2855
#71 0x0000000000706907 in Ffuncall (nargs=2, args=0x7fffffffe500) at eval.c:2742
#72 0x0000000000706051 in call1 (fn=13344, arg1=9300720) at eval.c:2552
#73 0x00000000005ea6df in command_loop_1 () at keyboard.c:1457
#74 0x0000000000702b82 in internal_condition_case (bfun=0x5e9ec2 <command_loop_1>, handlers=17232, hfun=0x5e952d <cmd_error>) at eval.c:1309
#75 0x00000000005e9af0 in command_loop_2 (ignore=0) at keyboard.c:1086
#76 0x0000000000702153 in internal_catch (tag=43440, func=0x5e9ac7 <command_loop_2>, arg=0) at eval.c:1074
#77 0x00000000005e9a90 in command_loop () at keyboard.c:1065
#78 0x00000000005e9012 in recursive_edit_1 () at keyboard.c:671
#79 0x00000000005e9217 in Frecursive_edit () at keyboard.c:742
#80 0x00000000005e145c in main (argc=2, argv=0x7fffffffe950) at emacs.c:1656

Lisp Backtrace:
"x-get-selection-internal" (0xffff8240)
0x17a5d70 PVEC_COMPILED
"apply" (0xffff8930)
"gui-backend-get-selection" (0xffff8ee0)
"gui-get-selection" (0xffff9468)
"gui--selection-value-internal" (0xffff99d0)
"gui-get-primary-selection" (0xffff9e50)
"progn" (0xffffa0b0)
"condition-case" (0xffffa2d0)
"clipmon--clipboard-contents" (0xffffa440)
"let" (0xffffa730)
"clipmon--check-clipboard" (0xffffaac8)
"apply" (0xffffaac0)
"timer-event-handler" (0xffffb038)
"x-popup-menu" (0xffffd5a0)
"mouse-appearance-menu" (0xffffdc60)
"funcall-interactively" (0xffffdc58)
"call-interactively" (0xffffdf90)
"command-execute" (0xffffe508)

Thread 2 (Thread 16b5c00 (LWP 100166)):
#0  0x00000008073dacda in _poll () from /lib/libc.so.7
#1  0x0000000804653d26 in ?? () from /lib/libthr.so.3
#2  0x0000000803e708ad in ?? () from /usr/local/lib/libglib-2.0.so.0
#3  0x0000000803e70984 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#4  0x0000000803e72196 in ?? () from /usr/local/lib/libglib-2.0.so.0
#5  0x0000000803e9682a in ?? () from /usr/local/lib/libglib-2.0.so.0
#6  0x00000008046517c5 in ?? () from /lib/libthr.so.3
#7  0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdfffe000

^C

Lisp Backtrace:
"x-get-selection-internal" (0xffff8240)
0x17a5d70 PVEC_COMPILED
"apply" (0xffff8930)
"gui-backend-get-selection" (0xffff8ee0)
"gui-get-selection" (0xffff9468)
"gui--selection-value-internal" (0xffff99d0)
"gui-get-primary-selection" (0xffff9e50)
"progn" (0xffffa0b0)
"condition-case" (0xffffa2d0)
"clipmon--clipboard-contents" (0xffffa440)
"let" (0xffffa730)
"clipmon--check-clipboard" (0xffffaac8)
"apply" (0xffffaac0)
---Type <return> to continue, or q <return> to quit---
"timer-event-handler" (0xffffb038)
"x-popup-menu" (0xffffd5a0)
"mouse-appearance-menu" (0xffffdc60)
"funcall-interactively" (0xffffdc58)
"call-interactively" (0xffffdf90)
"command-execute" (0xffffe508)

Thread 1 (Thread 16b5c00 (LWP 100166)):
#0  0x00000008073dacda in _poll () from /lib/libc.so.7
#1  0x0000000804653d26 in ?? () from /lib/libthr.so.3
#2  0x0000000803e708ad in ?? () from /usr/local/lib/libglib-2.0.so.0
#3  0x0000000803e70984 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
#4  0x0000000803e72196 in ?? () from /usr/local/lib/libglib-2.0.so.0
#5  0x0000000803e9682a in ?? () from /usr/local/lib/libglib-2.0.so.0
#6  0x00000008046517c5 in ?? () from /lib/libthr.so.3
#7  0x0000000000000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffdfffe000

Lisp Backtrace:
"x-get-selection-internal" (0xffff8240)
0x17a5d70 PVEC_COMPILED
"apply" (0xffff8930)
"gui-backend-get-selection" (0xffff8ee0)
"gui-get-selection" (0xffff9468)
"gui--selection-value-internal" (0xffff99d0)
"gui-get-primary-selection" (0xffff9e50)
"progn" (0xffffa0b0)
"condition-case" (0xffffa2d0)
"clipmon--clipboard-contents" (0xffffa440)
"let" (0xffffa730)
"clipmon--check-clipboard" (0xffffaac8)
"apply" (0xffffaac0)
"timer-event-handler" (0xffffb038)
"x-popup-menu" (0xffffd5a0)
"mouse-appearance-menu" (0xffffdc60)
"funcall-interactively" (0xffffdc58)
"call-interactively" (0xffffdf90)
"command-execute" (0xffffe508)
(gdb)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-21 16:41       ` Joseph Mingrone
@ 2015-12-21 17:50         ` Eli Zaretskii
  2015-12-21 19:42           ` Joseph Mingrone
  0 siblings, 1 reply; 33+ messages in thread
From: Eli Zaretskii @ 2015-12-21 17:50 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214, bburns.km

> From: Joseph Mingrone <jrm@ftfl.ca>
> Cc: 22214@debbugs.gnu.org,  bburns.km@gmail.com
> Date: Mon, 21 Dec 2015 12:41:47 -0400
> 
> Thread 3 (Thread 1902400 (LWP 100743)):
> #0  0x0000000807444cfa in _sigprocmask () from /lib/libc.so.7
> #1  0x0000000804656526 in pthread_sigmask () from /lib/libthr.so.3
> #2  0x00000000007ab8e9 in block_atimers (oldset=0x7fffffff7970) at atimer.c:70
> #3  0x00000000007abffc in do_pending_atimers () at atimer.c:434
> #4  0x00000000005f803e in process_pending_signals () at keyboard.c:7043
> #5  0x00000000006c1559 in Fmake_list (length=0, init=0) at alloc.c:2718
> #6  0x0000000000713c2a in concat (nargs=1, args=0x7fffffff7b28, target_type=Lisp_Cons, last_special=false) at fns.c:633
> #7  0x00000000007135d2 in Fcopy_sequence (arg=18186131) at fns.c:501
> #8  0x00000000005f25b3 in timer_check () at keyboard.c:4452

Thanks.

Can you find out which thread uses up the CPU?  If that's this thread
(the Emacs application main thread), can you use the technique
described in etc/DEBUG under "If the symptom of the bug is that Emacs
fails to respond" to find out whether Emacs is looping and where?





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-21 17:50         ` Eli Zaretskii
@ 2015-12-21 19:42           ` Joseph Mingrone
  0 siblings, 0 replies; 33+ messages in thread
From: Joseph Mingrone @ 2015-12-21 19:42 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 22214, bburns.km

[-- Attachment #1: Type: text/plain, Size: 12156 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Joseph Mingrone <jrm@ftfl.ca>
>> Cc: 22214@debbugs.gnu.org,  bburns.km@gmail.com
>> Date: Mon, 21 Dec 2015 12:41:47 -0400

>> Thread 3 (Thread 1902400 (LWP 100743)):
>> #0  0x0000000807444cfa in _sigprocmask () from /lib/libc.so.7
>> #1  0x0000000804656526 in pthread_sigmask () from /lib/libthr.so.3
>> #2  0x00000000007ab8e9 in block_atimers (oldset=0x7fffffff7970) at atimer.c:70
>> #3  0x00000000007abffc in do_pending_atimers () at atimer.c:434
>> #4  0x00000000005f803e in process_pending_signals () at keyboard.c:7043
>> #5  0x00000000006c1559 in Fmake_list (length=0, init=0) at alloc.c:2718
>> #6  0x0000000000713c2a in concat (nargs=1, args=0x7fffffff7b28, target_type=Lisp_Cons, last_special=false) at fns.c:633
>> #7  0x00000000007135d2 in Fcopy_sequence (arg=18186131) at fns.c:501
>> #8  0x00000000005f25b3 in timer_check () at keyboard.c:4452

> Thanks.

> Can you find out which thread uses up the CPU?  If that's this thread
> (the Emacs application main thread), can you use the technique
> described in etc/DEBUG under "If the symptom of the bug is that Emacs
> fails to respond" to find out whether Emacs is looping and where?

It looks like it's looping in process.c  starting at line 4565

  while (1)
    {
      bool process_skipped = false;
      ...

The gdb output below shows the steps through the looping.

Joseph

jrm@phe ~/scm/nm/emacs.git/src % /usr/local/bin/gdb ./emacs
GNU gdb (GDB) 7.10 [GDB v7.10 for FreeBSD]
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd10.1".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./emacs...done.
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0.0
TERM = screen-256color
Breakpoint 1 at 0x5dfb54: file emacs.c, line 371.
Temporary breakpoint 2 at 0x61e9d9: file sysdep.c, line 905.
(gdb) run -Q
Starting program: /usr/home/jrm/scm/nm/emacs.git/src/emacs -Q
[New Thread 1902400 (LWP 101016)]
^Z[New Thread 16b5c00 (LWP 100130)]

Program received signal SIGTSTP, Stopped (user).
[Switching to Thread 1902400 (LWP 101016)]
0x000000080736efaa in ktimer_settime () from /lib/libc.so.7
(gdb) finish
Run till exit from #0  0x000000080736efaa in ktimer_settime () from /lib/libc.so.7
0x00000000007abd8b in set_alarm () at atimer.c:312
312                   && timer_settime (alarm_timer, TIMER_ABSTIME, &ispec, 0) == 0)
(gdb) finish
Run till exit from #0  0x00000000007abd8b in set_alarm () at atimer.c:312
run_timers () at atimer.c:382
382     }
(gdb) finish
Run till exit from #0  run_timers () at atimer.c:382
do_pending_atimers () at atimer.c:436
436           unblock_atimers (&oldset);
(gdb) finish
Run till exit from #0  do_pending_atimers () at atimer.c:436
process_pending_signals () at keyboard.c:7044
7044    }
(gdb) finish
Run till exit from #0  process_pending_signals () at keyboard.c:7044
Fmake_list (length=0, init=0) at alloc.c:2689
2689      while (size > 0)
(gdb) finish
Run till exit from #0  Fmake_list (length=0, init=0) at alloc.c:2689
0x0000000000713c2a in concat (nargs=1, args=0x7fffffff7ad8, target_type=Lisp_Cons, last_special=false) at fns.c:633
633         val = Fmake_list (make_number (result_len), Qnil);
Value returned is $1 = 105189203
(gdb) finish
Run till exit from #0  0x0000000000713c2a in concat (nargs=1, args=0x7fffffff7ad8, target_type=Lisp_Cons, last_special=false)
    at fns.c:633
Fcopy_sequence (arg=21640739) at fns.c:502
502     }
Value returned is $2 = 105189203
(gdb) finish
Run till exit from #0  Fcopy_sequence (arg=21640739) at fns.c:502
0x00000000005f25b3 in timer_check () at keyboard.c:4452
4452      timers = Fcopy_sequence (Vtimer_list);
Value returned is $3 = 105189203
(gdb) finish
Run till exit from #0  0x00000000005f25b3 in timer_check () at keyboard.c:4452
readable_events (flags=1) at keyboard.c:3313
3313      if (kbd_fetch_ptr != kbd_store_ptr)
Value returned is $4 = {tv_sec = 0, tv_nsec = -1}
(gdb) finish
Run till exit from #0  readable_events (flags=1) at keyboard.c:3313
0x00000000005f7963 in get_input_pending (flags=1) at keyboard.c:6691
6691      input_pending = (!NILP (Vquit_flag) || readable_events (flags));
Value returned is $5 = true
(gdb) finish
Run till exit from #0  0x00000000005f7963 in get_input_pending (flags=1) at keyboard.c:6691
swallow_events (do_display=false) at keyboard.c:4205
4205      if (!input_pending && timers_run != old_timers_run && do_display)
Value returned is $6 = true
(gdb) finish
Run till exit from #0  swallow_events (do_display=false) at keyboard.c:4205
wait_reading_process_output (time_limit=5, nsecs=0, read_kbd=0, do_display=false, wait_for_cell=17528851, wait_proc=0x0,
    just_wait_proc=0) at process.c:5004
5004          if (! NILP (wait_for_cell) && ! NILP (XCAR (wait_for_cell)))
(gdb) finish
Run till exit from #0  wait_reading_process_output (time_limit=5, nsecs=0, read_kbd=0, do_display=false, wait_for_cell=17528851,
    wait_proc=0x0, just_wait_proc=0) at process.c:5004
^Z
Program received signal SIGTSTP, Stopped (user).
0x000000080736efaa in ktimer_settime () from /lib/libc.so.7
(gdb) finish
Run till exit from #0  0x000000080736efaa in ktimer_settime () from /lib/libc.so.7
0x00000000007abd8b in set_alarm () at atimer.c:312
312                   && timer_settime (alarm_timer, TIMER_ABSTIME, &ispec, 0) == 0)
(gdb) finish
Run till exit from #0  0x00000000007abd8b in set_alarm () at atimer.c:312
run_timers () at atimer.c:382
382     }
(gdb) finish
Run till exit from #0  run_timers () at atimer.c:382
do_pending_atimers () at atimer.c:436
436           unblock_atimers (&oldset);
(gdb) finish
Run till exit from #0  do_pending_atimers () at atimer.c:436
process_pending_signals () at keyboard.c:7044
7044    }
(gdb) finish
Run till exit from #0  process_pending_signals () at keyboard.c:7044
0x0000000000788a69 in wait_reading_process_output (time_limit=5, nsecs=0, read_kbd=0, do_display=false, wait_for_cell=17528851,
    wait_proc=0x0, just_wait_proc=0) at process.c:4573
4573            QUIT;
(gdb) finish
Run till exit from #0  0x0000000000788a69 in wait_reading_process_output (time_limit=5, nsecs=0, read_kbd=0, do_display=false,
    wait_for_cell=17528851, wait_proc=0x0, just_wait_proc=0) at process.c:4573
^Z
Program received signal SIGTSTP, Stopped (user).
0x0000000807444cfa in _sigprocmask () from /lib/libc.so.7
(gdb) finish
Run till exit from #0  0x0000000807444cfa in _sigprocmask () from /lib/libc.so.7
0x0000000804656526 in pthread_sigmask () from /lib/libthr.so.3
(gdb) finish
Run till exit from #0  0x0000000804656526 in pthread_sigmask () from /lib/libthr.so.3
unblock_atimers (oldset=0x7fffffff7920) at atimer.c:76
76      }
(gdb) finish
Run till exit from #0  unblock_atimers (oldset=0x7fffffff7920) at atimer.c:76
do_pending_atimers () at atimer.c:438
438     }
(gdb) finish
Run till exit from #0  do_pending_atimers () at atimer.c:438
process_pending_signals () at keyboard.c:7044
7044    }
(gdb) finish
Run till exit from #0  process_pending_signals () at keyboard.c:7044
Fmake_list (length=0, init=0) at alloc.c:2689
2689      while (size > 0)
(gdb) finish
Run till exit from #0  Fmake_list (length=0, init=0) at alloc.c:2689
0x0000000000713c2a in concat (nargs=1, args=0x7fffffff7ad8, target_type=Lisp_Cons, last_special=false) at fns.c:633
633         val = Fmake_list (make_number (result_len), Qnil);
Value returned is $7 = 757173027
(gdb) finish
Run till exit from #0  0x0000000000713c2a in concat (nargs=1, args=0x7fffffff7ad8, target_type=Lisp_Cons, last_special=false)
    at fns.c:633
Fcopy_sequence (arg=21640739) at fns.c:502
502     }
Value returned is $8 = 757173027
(gdb) finish
Run till exit from #0  Fcopy_sequence (arg=21640739) at fns.c:502
0x00000000005f25b3 in timer_check () at keyboard.c:4452
4452      timers = Fcopy_sequence (Vtimer_list);
Value returned is $9 = 757173027
(gdb) finish
Run till exit from #0  0x00000000005f25b3 in timer_check () at keyboard.c:4452
readable_events (flags=1) at keyboard.c:3313
3313      if (kbd_fetch_ptr != kbd_store_ptr)
Value returned is $10 = {tv_sec = 0, tv_nsec = -1}
(gdb) finish
Run till exit from #0  readable_events (flags=1) at keyboard.c:3313
0x00000000005f7963 in get_input_pending (flags=1) at keyboard.c:6691
6691      input_pending = (!NILP (Vquit_flag) || readable_events (flags));
Value returned is $11 = true
(gdb) finish
Run till exit from #0  0x00000000005f7963 in get_input_pending (flags=1) at keyboard.c:6691
swallow_events (do_display=false) at keyboard.c:4205
4205      if (!input_pending && timers_run != old_timers_run && do_display)
Value returned is $12 = true
(gdb) finish
Run till exit from #0  swallow_events (do_display=false) at keyboard.c:4205
wait_reading_process_output (time_limit=5, nsecs=0, read_kbd=0, do_display=false, wait_for_cell=17528851, wait_proc=0x0,
    just_wait_proc=0) at process.c:5004
5004          if (! NILP (wait_for_cell) && ! NILP (XCAR (wait_for_cell)))
(gdb) next
5013          if (read_kbd && interrupt_input
(gdb) next
5020          if (read_kbd || ! NILP (wait_for_cell))
(gdb) next
5021            do_pending_window_change (0);
(gdb) next
5024          if (no_avail || nfds == 0)
(gdb) next
5025            continue;
(gdb) next
5215        }                           /* End while exit conditions not met.  */
(gdb) next
4567          bool process_skipped = false;
(gdb) next
4572          if (read_kbd >= 0)
(gdb) next
4573            QUIT;
(gdb) next
4578          if (! NILP (wait_for_cell) && ! NILP (XCAR (wait_for_cell)))
(gdb) next
4583          if (wait == TIMEOUT)
(gdb) next
4585              if (!timespec_valid_p (now))
(gdb) next
4587              if (timespec_cmp (end_time, now) <= 0)
(gdb) next
4589              timeout = timespec_sub (end_time, now);
(gdb) next
4598          if (NILP (wait_for_cell)
(gdb) next
4642          if (read_kbd < 0)
(gdb) next
4649          if (update_tick != process_tick)
(gdb) next
4681          if (wait_proc && wait_proc->raw_status_new)
(gdb) next
4683          if (wait_proc
(gdb) next
4727          if (wait_proc && just_wait_proc)
(gdb) next
4735          else if (!NILP (wait_for_cell))
(gdb) next
4737              Available = non_process_wait_mask;
(gdb) next
4738              check_delay = 0;
(gdb) next
4739              check_write = 0;
(gdb) next
4757          if (frame_garbaged && do_display)
(gdb) next
4769          no_avail = 0;
(gdb) next
4770          if ((read_kbd || !NILP (wait_for_cell))
(gdb) next
4771              && detect_input_pending ())
(gdb) next
4773              nfds = read_kbd ? 0 : 1;
(gdb) next
4774              no_avail = 1;
(gdb) next
4775              FD_ZERO (&Available);
(gdb) next
4910          xerrno = errno;
(gdb) next
4913          clear_waiting_for_input ();
(gdb) next
4916          do_pending_window_change (0);
(gdb) next
4918          if (nfds == 0)
(gdb) next
4942          if (nfds < 0)
(gdb) next
4956          if (read_kbd != 0)
(gdb) next
4983          if (read_kbd != 0
(gdb) next
4994          if (read_kbd == 0 && detect_input_pending ())
(gdb) next
4996              swallow_events (do_display);
(gdb) next
5004          if (! NILP (wait_for_cell) && ! NILP (XCAR (wait_for_cell)))
(gdb) next
5013          if (read_kbd && interrupt_input
(gdb) next
5020          if (read_kbd || ! NILP (wait_for_cell))
(gdb) next
5021            do_pending_window_change (0);
(gdb) next
5024          if (no_avail || nfds == 0)
(gdb) next
5025            continue;
(gdb) next
5215        }                           /* End while exit conditions not met.  */
(gdb)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-20  6:26 bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode Joseph Mingrone
  2015-12-20 15:54 ` Eli Zaretskii
  2015-12-21  0:21 ` Brian Burns
@ 2015-12-22  5:21 ` Joseph Mingrone
  2015-12-22 16:06   ` Eli Zaretskii
  2 siblings, 1 reply; 33+ messages in thread
From: Joseph Mingrone @ 2015-12-22  5:21 UTC (permalink / raw)
  To: 22214; +Cc: Brian Burns

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:
> I'm guessing that GTK has something to do with this issue.

I built with two different configurations: --with-x-toolkit=gtk2 and
--with-x-toolkit=athena and it made no difference.  That is, the
problem existed with both configurations.

Joseph

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-21  0:45   ` Joseph Mingrone
@ 2015-12-22  7:56     ` Brian Burns
  0 siblings, 0 replies; 33+ messages in thread
From: Brian Burns @ 2015-12-22  7:56 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214

[-- Attachment #1: Type: text/plain, Size: 985 bytes --]

On Sun, Dec 20, 2015 at 6:45 PM, Joseph Mingrone <jrm@ftfl.ca> wrote:

> The results of the simple test were the same on 24.5.1.  I'm working
> on attaching the debugger, so hopefully more information will follow
> soon.
>

Thanks for all your help Joseph and Eli - I just tried it with Emacs 24.5.1
in Xubuntu 15.10 under VirtualBox emulation on Windows but it didn't have a
problem - x-selection-timeout was 5000 ms - I tried at 2000 and 0 but no
problem there either.

I'll see if I can get a dual boot setup tomorrow so I can help debug it, in
case the VM is interfering with the clipboard somehow.

The x-selection-timeout is something specific to Linux - I wasn't aware
that the selection could timeout like that - I'd tested it on a Linux VM
(with Ubuntu) when it was released back in March or April, and it seemed to
work alright, though I most likely didn't try the shift+click window.

I'll look into the X window selection routines in some more detail tomorrow
also.

Brian

[-- Attachment #2: Type: text/html, Size: 1412 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-22  5:21 ` Joseph Mingrone
@ 2015-12-22 16:06   ` Eli Zaretskii
  2015-12-23 17:00     ` Joseph Mingrone
  0 siblings, 1 reply; 33+ messages in thread
From: Eli Zaretskii @ 2015-12-22 16:06 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: bburns.km, 22214

[Please keep the bug address on the CC list.]

> From: Joseph Mingrone <jrm@ftfl.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>, Brian Burns <bburns.km@gmail.com>
> Date: Tue, 22 Dec 2015 01:21:54 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> > I'm guessing that GTK has something to do with this issue.
> 
> I built with two different configurations: --with-x-toolkit=gtk2 and
> --with-x-toolkit=athena and it made no difference.  That is, the
> problem existed with both configurations.

What was the last version of Emacs in which this worked on GNU/Linux?





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-22 16:06   ` Eli Zaretskii
@ 2015-12-23 17:00     ` Joseph Mingrone
  2015-12-23 17:12       ` Eli Zaretskii
  0 siblings, 1 reply; 33+ messages in thread
From: Joseph Mingrone @ 2015-12-23 17:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: bburns.km, 22214

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:
> What was the last version of Emacs in which this worked on GNU/Linux?

I've only gone back as far as 24.  The Debian box I was testing on
isn't accessible to me now that the holidays have started.  I'm able
to do the following: test on FreeBSD 10.2, test on GNU/Linux by
running it remotely with X forwarding, test on GNU/Linux by running it
through a VM.

Joseph

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-23 17:00     ` Joseph Mingrone
@ 2015-12-23 17:12       ` Eli Zaretskii
  2015-12-23 18:18         ` Joseph Mingrone
  0 siblings, 1 reply; 33+ messages in thread
From: Eli Zaretskii @ 2015-12-23 17:12 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: bburns.km, 22214

> From: Joseph Mingrone <jrm@ftfl.ca>
> Cc: bburns.km@gmail.com,  22214@debbugs.gnu.org
> Date: Wed, 23 Dec 2015 13:00:49 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> > What was the last version of Emacs in which this worked on GNU/Linux?
> 
> I've only gone back as far as 24.

Can you test 24.4 or 24.3?

Thanks.





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-23 17:12       ` Eli Zaretskii
@ 2015-12-23 18:18         ` Joseph Mingrone
  2015-12-23 18:22           ` Eli Zaretskii
  0 siblings, 1 reply; 33+ messages in thread
From: Joseph Mingrone @ 2015-12-23 18:18 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: bburns.km, 22214

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:
> Can you test 24.4 or 24.3?

The tarball listed as emacs-24.4.tar.xz is actually 24.4.1.  Is that OK or should I checkout a specific tag?

The colleague running Debian is actually still here, so I tested there with 24.4.1.

% emacs -Q
(load "/path/to/clipmon.el")
M-x clipmon-mode

S-<down>-<down-mouse-1> causes the problem.

Joseph

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-23 18:18         ` Joseph Mingrone
@ 2015-12-23 18:22           ` Eli Zaretskii
  2015-12-23 20:16             ` Brian Burns
  0 siblings, 1 reply; 33+ messages in thread
From: Eli Zaretskii @ 2015-12-23 18:22 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: bburns.km, 22214

> From: Joseph Mingrone <jrm@ftfl.ca>
> Cc: bburns.km@gmail.com,  22214@debbugs.gnu.org
> Date: Wed, 23 Dec 2015 14:18:25 -0400
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> > Can you test 24.4 or 24.3?
> 
> The tarball listed as emacs-24.4.tar.xz is actually 24.4.1.  Is that OK or should I checkout a specific tag?

24.4.1 is okay.

> The colleague running Debian is actually still here, so I tested there with 24.4.1.
> 
> % emacs -Q
> (load "/path/to/clipmon.el")
> M-x clipmon-mode
> 
> S-<down>-<down-mouse-1> causes the problem.

So it's likely clipmon never worked well on X, is that right?





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-23 18:22           ` Eli Zaretskii
@ 2015-12-23 20:16             ` Brian Burns
  2015-12-23 21:21               ` Joseph Mingrone
  0 siblings, 1 reply; 33+ messages in thread
From: Brian Burns @ 2015-12-23 20:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Joseph Mingrone, 22214

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

> So it's likely clipmon never worked well on X, is that right?

It sounds like it - it's only been out for 8 or 9 months but I guess no-one
had tried shift+dragging with the mouse yet, or else hadn't reported the
problem.

I just got the dual boot working with Xubuntu 15.10 and got it to hang,
testing with 24.5.1, but it's okay on Windows or in a Xubuntu VM.

I'll add a warning to the package, and see if I can make a minimal function
to reproduce the error - I guess it would be something like check the
clipboard contents, shift+down, then shift+mouse+dragdown? I'm not sure how
the polling timer might fit into it, as it seemed to hang instantly on
dragging the mouse down.

Brian

[-- Attachment #2: Type: text/html, Size: 971 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-23 20:16             ` Brian Burns
@ 2015-12-23 21:21               ` Joseph Mingrone
  2015-12-24  7:43                 ` Brian Burns
  2022-04-23 14:06                 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 33+ messages in thread
From: Joseph Mingrone @ 2015-12-23 21:21 UTC (permalink / raw)
  To: Brian Burns; +Cc: 22214

[-- Attachment #1: Type: text/plain, Size: 666 bytes --]

Brian Burns <bburns.km@gmail.com> writes:
> I'll add a warning to the package, and see if I can make a minimal function
> to reproduce the error - I guess it would be something like check the
> clipboard contents, shift+down, then shift+mouse+dragdown? I'm not sure how
> the polling timer might fit into it, as it seemed to hang instantly on
> dragging the mouse down.

Here is the simplest example I can come up with that causes the problem.

;; substitute x-get-selection-value for 24.x
(run-at-time nil 2 (gui-get-primary-selection))
(menu-set-font)

Substituting larger values for the first argument of `run-at-time`
just (possibly) delays when Emacs locks up.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-23 21:21               ` Joseph Mingrone
@ 2015-12-24  7:43                 ` Brian Burns
  2015-12-24 16:20                   ` Eli Zaretskii
  2022-04-23 14:06                 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 33+ messages in thread
From: Brian Burns @ 2015-12-24  7:43 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214

[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

Joseph Mingrone <jrm@ftfl.ca> wrote:

> Here is the simplest example I can come up with that causes the problem.
>
> ;; substitute x-get-selection-value for 24.x
> (run-at-time nil 2 (gui-get-primary-selection))
> (menu-set-font)
>

Thanks, that does it - I tried adding menu-or-popup-active-p around it but
it didn't help -

(defun foo ()
  (if (not (menu-or-popup-active-p))
    (x-get-selection-value)))

(run-at-time nil 2 'foo)
(menu-set-font)

Maybe there's some other way to tell if a gui window is showing / waiting
for input? Then as a workaround I could just skip checking the clipboard.

I looked at some of the internals - as Eli said there's an event loop for
the x dialog that also checks the existing Emacs timers, which in this case
would be checking the x selection and starting another timer.

I'm not sure why that would cause a hang though, if the x selection returns
immediately.

Thanks again for your help in tracking this down - I'll keep tracing
through the code to see if I can figure out what's going on, and why
menu-or-popup-active-p doesn't help.

Brian

[-- Attachment #2: Type: text/html, Size: 1680 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-24  7:43                 ` Brian Burns
@ 2015-12-24 16:20                   ` Eli Zaretskii
  2015-12-27  7:29                     ` Brian Burns
  0 siblings, 1 reply; 33+ messages in thread
From: Eli Zaretskii @ 2015-12-24 16:20 UTC (permalink / raw)
  To: Brian Burns; +Cc: jrm, 22214

> From: Brian Burns <bburns.km@gmail.com>
> Date: Thu, 24 Dec 2015 01:43:39 -0600
> Cc: Eli Zaretskii <eliz@gnu.org>, 22214@debbugs.gnu.org
> 
> I looked at some of the internals - as Eli said there's an event loop for the x
> dialog that also checks the existing Emacs timers, which in this case would be
> checking the x selection and starting another timer. 

What I don't understand is how menus enter the picture, since the
lockup doesn't happen unless a menu is open.

Understanding that might be an important step towards finding a
solution.





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-24 16:20                   ` Eli Zaretskii
@ 2015-12-27  7:29                     ` Brian Burns
  0 siblings, 0 replies; 33+ messages in thread
From: Brian Burns @ 2015-12-27  7:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Joseph Mingrone, 22214

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

It looks like the gui menu runs through timer_check to check for any emacs
timers, and when the clipmon timer is triggered, it checks the x selection,
which also runs through timer_check. Putting the clipmon timer through that
routine twice might be throwing things off - it seems like it's the second
pass which get stuck in an endless loop.

I'm not positive about that though - I'm still learning my way around the
system and gdb. I'll keep tracing through it - I've been wanted to learn
more about Emacs internals so I could work on them someday, and this looks
like as good a place as any to start...

Brian



On Thu, Dec 24, 2015 at 10:20 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Brian Burns <bburns.km@gmail.com>
> > Date: Thu, 24 Dec 2015 01:43:39 -0600
> > Cc: Eli Zaretskii <eliz@gnu.org>, 22214@debbugs.gnu.org
> >
> > I looked at some of the internals - as Eli said there's an event loop
> for the x
> > dialog that also checks the existing Emacs timers, which in this case
> would be
> > checking the x selection and starting another timer.
>
> What I don't understand is how menus enter the picture, since the
> lockup doesn't happen unless a menu is open.
>
> Understanding that might be an important step towards finding a
> solution.
>

[-- Attachment #2: Type: text/html, Size: 1826 bytes --]

^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2015-12-23 21:21               ` Joseph Mingrone
  2015-12-24  7:43                 ` Brian Burns
@ 2022-04-23 14:06                 ` Lars Ingebrigtsen
  2022-04-24 13:23                   ` Joseph Mingrone
  1 sibling, 1 reply; 33+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-23 14:06 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214, Brian Burns

Joseph Mingrone <jrm@ftfl.ca> writes:

> Here is the simplest example I can come up with that causes the problem.
>
> ;; substitute x-get-selection-value for 24.x
> (run-at-time nil 2 (gui-get-primary-selection))
> (menu-set-font)

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Skimming this bug report, there were different cases for reproduction,
but I tried this one (well actually

 (run-at-time nil 2 (lambda () (gui-get-primary-selection)))
 (menu-set-font)

, since that's valid code), and I couldn't reproduce the lock up.

Are you still seeing this problem in recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-04-23 14:06                 ` Lars Ingebrigtsen
@ 2022-04-24 13:23                   ` Joseph Mingrone
  2022-04-25  0:50                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 33+ messages in thread
From: Joseph Mingrone @ 2022-04-24 13:23 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 22214, Brian Burns

I stopped using clipmon shortly after this bug was reported, but I just
cloned the repository and ran

% emacs -Q
(load "/path/to/clipmon/clipmon.el")
(run-at-time nil 2 (lambda () (gui-get-primary-selection)))
(menu-set-font)

When I dismissed the dialog box, sometimes things were fine, but other
times, Emacs started to use 100% CPU and would not respond to input.
Now I am able to kill the run-away emacs process and regain control of
the system.  Below is information about my current installation.

In GNU Emacs 29.0.50 (build 1, amd64-portbld-freebsd14.0, GTK+ Version 3.24.33, cairo version 1.17.4)
Repository revision: 1fed6e7
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12014000
System Description: 14.0-CURRENT

Configured using:
 'configure --disable-build-details --localstatedir=/var
 --without-libsystemd --without-selinux --with-x --enable-acl
 --with-cairo --without-dbus --without-gconf --with-gif --with-gnutls
 --without-gsettings --with-x-toolkit=gtk3 --with-harfbuzz --with-jpeg
 --with-json --with-file-notification=kqueue --with-lcms2
 --without-m17n-flt --without-imagemagick --without-mailutils
 --with-modules --with-native-compilation --with-sound=oss
 --without-libotf --without-pgtk --with-png --with-toolkit-scroll-bars
 --with-sqlite3 --with-rsvg --with-threads --with-tiff --with-webp
 --without-xft --with-xim --with-xml2 --without-xpm --without-xwidgets
 --x-libraries=/usr/local/lib --x-includes=/usr/local/include
 --prefix=/usr/local --mandir=/usr/local/man --disable-silent-rules
 --infodir=/usr/local/share/emacs/info/
 --build=amd64-portbld-freebsd14.0 'CFLAGS=-O2 -pipe
 -fstack-protector-strong -isystem /usr/local/include
 -fno-strict-aliasing ' 'CPPFLAGS=-isystem /usr/local/include' 'LDFLAGS=
 -L/usr/local/lib/gcc11 -fstack-protector-strong -L/usr/local/lib ''

Configured features:
ACL CAIRO FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2
MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER PNG RSVG SOUND SQLITE3 THREADS
TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM GTK3 ZLIB

On Sat, 2022-04-23 at 16:06, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Joseph Mingrone <jrm@ftfl.ca> writes:

>> Here is the simplest example I can come up with that causes the problem.

>> ;; substitute x-get-selection-value for 24.x
>> (run-at-time nil 2 (gui-get-primary-selection))
>> (menu-set-font)

> (I'm going through old bug reports that unfortunately weren't resolved
> at the time.)

> Skimming this bug report, there were different cases for reproduction,
> but I tried this one (well actually

>  (run-at-time nil 2 (lambda () (gui-get-primary-selection)))
>  (menu-set-font)

> , since that's valid code), and I couldn't reproduce the lock up.

> Are you still seeing this problem in recent Emacs versions?





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-04-24 13:23                   ` Joseph Mingrone
@ 2022-04-25  0:50                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-23  8:02                       ` Lars Ingebrigtsen
  0 siblings, 1 reply; 33+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-25  0:50 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: Lars Ingebrigtsen, Eli Zaretskii, 22214, Brian Burns

Joseph Mingrone <jrm@ftfl.ca> writes:

> I stopped using clipmon shortly after this bug was reported, but I just
> cloned the repository and ran
>
> % emacs -Q
> (load "/path/to/clipmon/clipmon.el")
> (run-at-time nil 2 (lambda () (gui-get-primary-selection)))
> (menu-set-font)
>
> When I dismissed the dialog box, sometimes things were fine, but other
> times, Emacs started to use 100% CPU and would not respond to input.
> Now I am able to kill the run-away emacs process and regain control of
> the system.  Below is information about my current installation.

Does this fix the problem?

diff --git a/src/xselect.c b/src/xselect.c
index 6d167c0b6f..eb297e9cba 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1255,7 +1255,9 @@ x_get_foreign_selection (Lisp_Object selection_symbol, Lisp_Object target_type,
   int nsecs = (timeout % 1000) * 1000000;
   TRACE1 ("  Start waiting %"PRIdMAX" secs for SelectionNotify", secs);
   wait_reading_process_output (secs, nsecs, 0, false,
-			       reading_selection_reply, NULL, 0);
+			       /* Don't run any timers, since this
+				  code isn't reentrant.  */
+			       reading_selection_reply, NULL, -1);
   TRACE1 ("  Got event = %d", !NILP (XCAR (reading_selection_reply)));
 
   if (NILP (XCAR (reading_selection_reply)))





^ permalink raw reply related	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-04-25  0:50                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-05-23  8:02                       ` Lars Ingebrigtsen
  2022-05-23 19:02                         ` Joseph Mingrone
  0 siblings, 1 reply; 33+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-23  8:02 UTC (permalink / raw)
  To: Po Lu; +Cc: Joseph Mingrone, Eli Zaretskii, 22214, Brian Burns

Po Lu <luangruo@yahoo.com> writes:

> Joseph Mingrone <jrm@ftfl.ca> writes:
>
>> I stopped using clipmon shortly after this bug was reported, but I just
>> cloned the repository and ran
>>
>> % emacs -Q
>> (load "/path/to/clipmon/clipmon.el")
>> (run-at-time nil 2 (lambda () (gui-get-primary-selection)))
>> (menu-set-font)
>>
>> When I dismissed the dialog box, sometimes things were fine, but other
>> times, Emacs started to use 100% CPU and would not respond to input.
>> Now I am able to kill the run-away emacs process and regain control of
>> the system.  Below is information about my current installation.
>
> Does this fix the problem?

Joseph, did you have a chance to try Po's patch?

>
> diff --git a/src/xselect.c b/src/xselect.c
> index 6d167c0b6f..eb297e9cba 100644
> --- a/src/xselect.c
> +++ b/src/xselect.c
> @@ -1255,7 +1255,9 @@ x_get_foreign_selection (Lisp_Object
> selection_symbol, Lisp_Object target_type,
>    int nsecs = (timeout % 1000) * 1000000;
>    TRACE1 ("  Start waiting %"PRIdMAX" secs for SelectionNotify", secs);
>    wait_reading_process_output (secs, nsecs, 0, false,
> -			       reading_selection_reply, NULL, 0);
> +			       /* Don't run any timers, since this
> +				  code isn't reentrant.  */
> +			       reading_selection_reply, NULL, -1);
>    TRACE1 ("  Got event = %d", !NILP (XCAR (reading_selection_reply)));
>
>    if (NILP (XCAR (reading_selection_reply)))

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-05-23  8:02                       ` Lars Ingebrigtsen
@ 2022-05-23 19:02                         ` Joseph Mingrone
  2022-05-24  0:27                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 33+ messages in thread
From: Joseph Mingrone @ 2022-05-23 19:02 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Po Lu, Eli Zaretskii, 22214, Brian Burns

On Mon, 2022-05-23 at 10:02, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Po Lu <luangruo@yahoo.com> writes:

>> Joseph Mingrone <jrm@ftfl.ca> writes:

>>> I stopped using clipmon shortly after this bug was reported, but I just
>>> cloned the repository and ran

>>> % emacs -Q
>>> (load "/path/to/clipmon/clipmon.el")
>>> (run-at-time nil 2 (lambda () (gui-get-primary-selection)))
>>> (menu-set-font)

>>> When I dismissed the dialog box, sometimes things were fine, but other
>>> times, Emacs started to use 100% CPU and would not respond to input.
>>> Now I am able to kill the run-away emacs process and regain control of
>>> the system.  Below is information about my current installation.

>> Does this fix the problem?

> Joseph, did you have a chance to try Po's patch?


>> diff --git a/src/xselect.c b/src/xselect.c
>> index 6d167c0b6f..eb297e9cba 100644
>> --- a/src/xselect.c
>> +++ b/src/xselect.c
>> @@ -1255,7 +1255,9 @@ x_get_foreign_selection (Lisp_Object
>> selection_symbol, Lisp_Object target_type,
>>    int nsecs = (timeout % 1000) * 1000000;
>>    TRACE1 ("  Start waiting %"PRIdMAX" secs for SelectionNotify", secs);
>>    wait_reading_process_output (secs, nsecs, 0, false,
>> -			       reading_selection_reply, NULL, 0);
>> +			       /* Don't run any timers, since this
>> +				  code isn't reentrant.  */
>> +			       reading_selection_reply, NULL, -1);
>>    TRACE1 ("  Got event = %d", !NILP (XCAR (reading_selection_reply)));

>>    if (NILP (XCAR (reading_selection_reply)))

Hello all,

Sorry for the delay.  I lost track of this thread.

I just rebuilt 5a1a67a with the patch applied.  Using the same recipe as
above, when I tried to dismiss the dialog box emacs became unresponsive
and stared using 100% CPU.  I had to use xkill.

Joe





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-05-23 19:02                         ` Joseph Mingrone
@ 2022-05-24  0:27                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-29 15:51                             ` Joseph Mingrone
  0 siblings, 1 reply; 33+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-24  0:27 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214, Lars Ingebrigtsen, Eli Zaretskii, Brian Burns

Joseph Mingrone <jrm@ftfl.ca> writes:

> Sorry for the delay.  I lost track of this thread.
>
> I just rebuilt 5a1a67a with the patch applied.  Using the same recipe as
> above, when I tried to dismiss the dialog box emacs became unresponsive
> and stared using 100% CPU.  I had to use xkill.

Could you attach a debugger to Emacs and show a backtrace?





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-05-24  0:27                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-05-29 15:51                             ` Joseph Mingrone
  2022-05-29 23:58                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-30  6:05                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 33+ messages in thread
From: Joseph Mingrone @ 2022-05-29 15:51 UTC (permalink / raw)
  To: Po Lu; +Cc: 22214, Lars Ingebrigtsen, Eli Zaretskii, Brian Burns

On Tue, 2022-05-24 at 08:27, Po Lu <luangruo@yahoo.com> wrote:
> Could you attach a debugger to Emacs and show a backtrace?

Here is /a/ backtrace.  Is it helpful?

Joe

jrm@phe /usr/src/etc [main|✔] % gdb -x ~/scm/nm/emacs.git/src/.gdbinit /usr/local/bin/emacs
GNU gdb (GDB) 12.1 [GDB v12.1 for FreeBSD]
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/emacs...
Warning: /usr/src/etc/../lwlib: No such file or directory.
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0.0
TERM = screen-256color
Breakpoint 1 at 0x48ab8e: file emacs.c, line 421.
Breakpoint 2 at 0x4451c4: file xterm.c, line 21297.
(gdb) r -Q
Starting program: /usr/local/bin/emacs -Q
warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?

[This is where I ran the recipe describe earlier in the thread.]

[New LWP 185279 of process 68421]
[New LWP 185280 of process 68421]
[New LWP 185281 of process 68421]
[New LWP 185282 of process 68421]
[LWP 185282 of process 68421 exited]
[New LWP 185283 of process 68421]
[New LWP 185284 of process 68421]
[LWP 185283 of process 68421 exited]
[New LWP 185285 of process 68421]
[New LWP 185286 of process 68421]
[LWP 185284 of process 68421 exited]
[LWP 185285 of process 68421 exited]
[LWP 185286 of process 68421 exited]
[LWP 185281 of process 68421 exited]
[New LWP 185314 of process 68421]
[New LWP 185315 of process 68421]
[LWP 185314 of process 68421 exited]
[New LWP 185317 of process 68421]
[New LWP 185318 of process 68421]
[LWP 185315 of process 68421 exited]
[LWP 185317 of process 68421 exited]
[LWP 185318 of process 68421 exited]
[New LWP 185319 of process 68421]
[New LWP 185320 of process 68421]
[LWP 185319 of process 68421 exited]
[New LWP 185321 of process 68421]
[New LWP 185322 of process 68421]
[LWP 185321 of process 68421 exited]
[LWP 185320 of process 68421 exited]
[LWP 185322 of process 68421 exited]
[New LWP 185323 of process 68421]
[New LWP 185324 of process 68421]
[LWP 185323 of process 68421 exited]
[New LWP 185325 of process 68421]
[New LWP 185326 of process 68421]
[LWP 185324 of process 68421 exited]
[LWP 185325 of process 68421 exited]
[LWP 185326 of process 68421 exited]
[New LWP 185327 of process 68421]
[New LWP 185328 of process 68421]
[LWP 185327 of process 68421 exited]
[New LWP 185329 of process 68421]
[New LWP 185330 of process 68421]
[LWP 185329 of process 68421 exited]
[LWP 185328 of process 68421 exited]
[New LWP 185331 of process 68421]
[New LWP 185332 of process 68421]
[LWP 185331 of process 68421 exited]
[LWP 185330 of process 68421 exited]
[New LWP 185333 of process 68421]
[New LWP 185334 of process 68421]
[LWP 185333 of process 68421 exited]
[LWP 185332 of process 68421 exited]
[New LWP 185335 of process 68421]
[New LWP 185336 of process 68421]
[LWP 185335 of process 68421 exited]
[New LWP 185337 of process 68421]
[LWP 185334 of process 68421 exited]
[New LWP 185338 of process 68421]
[LWP 185336 of process 68421 exited]
[LWP 185337 of process 68421 exited]
[LWP 185338 of process 68421 exited]
[New LWP 185339 of process 68421]
[New LWP 185340 of process 68421]
[LWP 185339 of process 68421 exited]
[New LWP 185341 of process 68421]
[New LWP 185342 of process 68421]
[LWP 185340 of process 68421 exited]
[LWP 185341 of process 68421 exited]
[New LWP 185343 of process 68421]
[New LWP 185344 of process 68421]
[LWP 185343 of process 68421 exited]
[New LWP 185345 of process 68421]
[LWP 185342 of process 68421 exited]
[New LWP 185346 of process 68421]
[LWP 185344 of process 68421 exited]
[LWP 185345 of process 68421 exited]
[New LWP 185347 of process 68421]
[New LWP 185348 of process 68421]
[LWP 185346 of process 68421 exited]
[LWP 185347 of process 68421 exited]
[New LWP 185349 of process 68421]
[New LWP 185350 of process 68421]
[LWP 185348 of process 68421 exited]
[LWP 185349 of process 68421 exited]
[New LWP 185351 of process 68421]
[New LWP 185352 of process 68421]
[LWP 185350 of process 68421 exited]
[LWP 185351 of process 68421 exited]
[LWP 185352 of process 68421 exited]


[ Here is where I tried to close the font selection menu, but could not
interact with that window.  I xkilled the window and this also closed
the main emacs frame.]


Thread 1 received signal SIGTERM, Terminated.
Sent by kill() from pid 68852 and user 1001.
_sigprocmask () at _sigprocmask.S:4
4       PSEUDO(sigprocmask)

[The gdb prompt didn't return and an emacs process remained running in
the background using 100% CPU.  I sent that process a SIGQUIT.]

(gdb) bt
#0  _sigprocmask () at _sigprocmask.S:4
#1  0x0000000802b7b18e in __thr_sigprocmask (how=1, set=<optimized out>, oset=<optimized out>) at /usr/src/lib/libthr/thread/thr_sig.c:656
#2  _thr_sigmask (how=1, set=<optimized out>, oset=0x7fffffff98e8) at /usr/src/lib/libthr/thread/thr_sig.c:666
#3  0x000000000065b4fe in block_atimers (oldset=0x7fffffff98e8) at atimer.c:77
#4  0x000000000065bc2b in do_pending_atimers () at atimer.c:456
#5  0x000000000049e666 in process_pending_signals () at keyboard.c:7546
#6  0x00000000005983cc in probably_quit () at eval.c:1630
#7  0x00000000006321af in maybe_quit () at ./../lwlib/../src/lisp.h:3666
#8  0x00000000006350f0 in wait_reading_process_output (time_limit=5, nsecs=0, read_kbd=0, do_display=false, wait_for_cell=XIL(0x806d2e1bb), wait_proc=0x0, just_wait_proc=0) at process.c:5234
#9  0x000000000046eb74 in x_get_foreign_selection (selection_symbol=XIL(0x2370), target_type=XIL(0x24f0), time_stamp=XIL(0), frame=XIL(0x813b144cd)) at xselect.c:1259
#10 0x000000000046e25a in Fx_get_selection_internal (selection_symbol=XIL(0x2370), target_type=XIL(0x24f0), time_stamp=XIL(0), terminal=XIL(0)) at xselect.c:2074
#11 0x000000000059f875 in funcall_subr (subr=0xa239a8 <Sx_get_selection_internal>, numargs=4, args=0x812f1f7d8) at eval.c:2961
#12 0x000000000060fe32 in exec_byte_code (fun=XIL(0x80672c165), args_template=1026, nargs=2, args=0x7fffffffad98) at bytecode.c:809
#13 0x00000000005a32a7 in fetch_and_exec_byte_code (fun=XIL(0x80672c165), args_template=1026, nargs=2, args=0x7fffffffad88) at eval.c:3004
#14 0x000000000059fc11 in funcall_lambda (fun=XIL(0x80672c165), nargs=2, arg_vector=0x7fffffffad88) at eval.c:3076
#15 0x000000000059f547 in funcall_general (fun=XIL(0x80672c165), numargs=2, args=0x7fffffffad88) at eval.c:2867
#16 0x0000000000596d54 in Ffuncall (nargs=3, args=0x7fffffffad80) at eval.c:2917
#17 0x000000000059ea8e in Fapply (nargs=2, args=0x812f1f738) at eval.c:2588
#18 0x000000000059f9cb in funcall_subr (subr=0xa2f240 <Sapply>, numargs=2, args=0x812f1f738) at eval.c:2982
#19 0x000000000060fe32 in exec_byte_code (fun=XIL(0x80672bfe5), args_template=128, nargs=2, args=0x7fffffffba28) at bytecode.c:809
#20 0x00000000005a32a7 in fetch_and_exec_byte_code (fun=XIL(0x80672bfe5), args_template=128, nargs=2, args=0x7fffffffba28) at eval.c:3004
#21 0x000000000059fc11 in funcall_lambda (fun=XIL(0x80672bfe5), nargs=2, arg_vector=0x7fffffffba28) at eval.c:3076
#22 0x000000000059f547 in funcall_general (fun=XIL(0x80672bfe5), numargs=2, args=0x7fffffffba28) at eval.c:2867
#23 0x0000000000596d54 in Ffuncall (nargs=3, args=0x7fffffffba20) at eval.c:2917
#24 0x000000080efe0a49 in F6775692d6765742d73656c656374696f6e_gui_get_selection_0 () at /usr/local/libexec/emacs/29.0.50/amd64-portbld-freebsd14.0/../../../../bin/../lib/emacs/29.0.50/native-lisp/29.0.50-1944ab15/preloaded/select-784d9bb7-95975f21.eln
#25 0x000000000059f819 in funcall_subr (subr=0x806728b18, numargs=2, args=0x7fffffffbc40) at eval.c:2957
#26 0x000000000059f4f5 in funcall_general (fun=XIL(0x806728b1d), numargs=2, args=0x7fffffffbc40) at eval.c:2863
#27 0x0000000000596d54 in Ffuncall (nargs=3, args=0x7fffffffbc38) at eval.c:2917
#28 0x000000080efe050a in F6775692d2d73656c656374696f6e2d76616c75652d696e7465726e616c_gui__selection_value_internal_0 ()
    at /usr/local/libexec/emacs/29.0.50/amd64-portbld-freebsd14.0/../../../../bin/../lib/emacs/29.0.50/native-lisp/29.0.50-1944ab15/preloaded/select-784d9bb7-95975f21.eln
#29 0x000000000059f7f7 in funcall_subr (subr=0x8067334b8, numargs=1, args=0x7fffffffbe28) at eval.c:2955
#30 0x000000000059f4f5 in funcall_general (fun=XIL(0x8067334bd), numargs=1, args=0x7fffffffbe28) at eval.c:2863
#31 0x0000000000596d54 in Ffuncall (nargs=2, args=0x7fffffffbe20) at eval.c:2917
#32 0x000000080efe08c1 in F6775692d6765742d7072696d6172792d73656c656374696f6e_gui_get_primary_selection_0 () at /usr/local/libexec/emacs/29.0.50/amd64-portbld-freebsd14.0/../../../../bin/../lib/emacs/29.0.50/native-lisp/29.0.50-1944ab15/preloaded/select-784d9bb7-95975f21.eln
#33 0x0000000000592dae in eval_sub (form=XIL(0x813cdc543)) at eval.c:2417
#34 0x00000000005935ab in Fprogn (body=XIL(0)) at eval.c:451
#35 0x00000000005a0016 in funcall_lambda (fun=XIL(0x813cdc713), nargs=0, arg_vector=0x7fffffffc4a8) at eval.c:3156
#36 0x000000000059f647 in funcall_general (fun=XIL(0x813cdc723), numargs=0, args=0x7fffffffc4a8) at eval.c:2879
#37 0x0000000000596d54 in Ffuncall (nargs=1, args=0x7fffffffc4a0) at eval.c:2917
#38 0x000000000059b73b in Fapply (nargs=2, args=0x7fffffffc4a0) at eval.c:2541
#39 0x000000000059f9cb in funcall_subr (subr=0xa2f240 <Sapply>, numargs=2, args=0x7fffffffc4a0) at eval.c:2982
#40 0x000000000059f4f5 in funcall_general (fun=XIL(0xa2f245), numargs=2, args=0x7fffffffc4a0) at eval.c:2863
#41 0x0000000000596d54 in Ffuncall (nargs=3, args=0x7fffffffc498) at eval.c:2917
#42 0x000000080ab29c27 in F74696d65722d6576656e742d68616e646c6572_timer_event_handler_0 () at /usr/local/libexec/emacs/29.0.50/amd64-portbld-freebsd14.0/../../../../bin/../lib/emacs/29.0.50/native-lisp/29.0.50-1944ab15/preloaded/timer-3ee7cfd9-76499eee.eln
#43 0x000000000059f7f7 in funcall_subr (subr=0x806f05a70, numargs=1, args=0x7fffffffc6b0) at eval.c:2955
#44 0x000000000059f4f5 in funcall_general (fun=XIL(0x806f05a75), numargs=1, args=0x7fffffffc6b0) at eval.c:2863
#45 0x0000000000596d54 in Ffuncall (nargs=2, args=0x7fffffffc6a8) at eval.c:2917
#46 0x0000000000495089 in call1 (fn=XIL(0xeb50), arg1=XIL(0x813a66d3d)) at ./../lwlib/../src/lisp.h:3228
#47 0x000000000049c5a2 in timer_check_2 (timers=XIL(0x8153908b3), idle_timers=XIL(0)) at keyboard.c:4612
#48 0x000000000049bde9 in timer_check () at keyboard.c:4678
#49 0x0000000000487059 in xg_maybe_add_timer (data=0x7fffffffca98) at gtkutil.c:2434
#50 0x00000008018d79d4 in  () at /usr/local/lib/libglib-2.0.so.0
#51 0x00000008018dbbb4 in g_main_context_dispatch () at /usr/local/lib/libglib-2.0.so.0
#52 0x00000008018dbf44 in  () at /usr/local/lib/libglib-2.0.so.0
#53 0x00000008018dc2aa in g_main_loop_run () at /usr/local/lib/libglib-2.0.so.0
#54 0x000000000047ff08 in xg_dialog_run (f=0x813b144c8, w=0x813a20440) at gtkutil.c:2482
#55 0x000000000048010c in xg_get_font (f=0x813b144c8, default_name=0x813e31fa0 "monospace 10") at gtkutil.c:2885
#56 0x0000000000465db0 in Fx_select_font (frame=XIL(0), ignored=XIL(0)) at xfns.c:9068
#57 0x000000080fa434fc in F6d656e752d7365742d666f6e74_menu_set_font_0 () at /usr/local/libexec/emacs/29.0.50/amd64-portbld-freebsd14.0/../../../../bin/../lib/emacs/29.0.50/native-lisp/29.0.50-1944ab15/preloaded/menu-bar-4f46ea94-fe1b0a07.eln
#58 0x0000000000592dae in eval_sub (form=XIL(0x8153911a3)) at eval.c:2417
#59 0x00000000005935ab in Fprogn (body=XIL(0)) at eval.c:451
#60 0x0000000000591585 in eval_sub (form=XIL(0x8153911c3)) at eval.c:2373
#61 0x0000000000599cf6 in Feval (form=XIL(0x8153911c3), lexical=XIL(0x30)) at eval.c:2278
#62 0x000000080b59b735 in F656c6973702d2d6576616c2d6c6173742d73657870_elisp__eval_last_sexp_0 () at /usr/local/libexec/emacs/29.0.50/amd64-portbld-freebsd14.0/../../../../bin/../lib/emacs/29.0.50/native-lisp/29.0.50-1944ab15/preloaded/elisp-mode-90dbfe40-b5ded1c4.eln
#63 0x000000000059f7f7 in funcall_subr (subr=0x806c0ff68, numargs=1, args=0x7fffffffd318) at eval.c:2955
#64 0x000000000059f4f5 in funcall_general (fun=XIL(0x806c0ff6d), numargs=1, args=0x7fffffffd318) at eval.c:2863
#65 0x0000000000596d54 in Ffuncall (nargs=2, args=0x7fffffffd310) at eval.c:2917
#66 0x000000080b59bc27 in F6576616c2d6c6173742d73657870_eval_last_sexp_0 () at /usr/local/libexec/emacs/29.0.50/amd64-portbld-freebsd14.0/../../../../bin/../lib/emacs/29.0.50/native-lisp/29.0.50-1944ab15/preloaded/elisp-mode-90dbfe40-b5ded1c4.eln
#67 0x000000000059f7f7 in funcall_subr (subr=0x806938050, numargs=1, args=0x7fffffffd6c0) at eval.c:2955
#68 0x000000000059f4f5 in funcall_general (fun=XIL(0x806938055), numargs=1, args=0x7fffffffd6c0) at eval.c:2863
#69 0x0000000000596d54 in Ffuncall (nargs=2, args=0x7fffffffd6b8) at eval.c:2917
#70 0x000000000058c3cf in Ffuncall_interactively (nargs=2, args=0x7fffffffd6b8) at callint.c:260
#71 0x000000000059f9cb in funcall_subr (subr=0xa2e740 <Sfuncall_interactively>, numargs=2, args=0x7fffffffd6b8) at eval.c:2982
#72 0x000000000059f4f5 in funcall_general (fun=XIL(0xa2e745), numargs=2, args=0x7fffffffd6b8) at eval.c:2863
#73 0x0000000000596d54 in Ffuncall (nargs=3, args=0x7fffffffd6b0) at eval.c:2917
#74 0x000000000058eb72 in Fcall_interactively (function=XIL(0x805e899d0), record_flag=XIL(0), keys=XIL(0x806efd4cd)) at callint.c:798
#75 0x00000008093bb9ff in F636f6d6d616e642d65786563757465_command_execute_0 () at /usr/local/libexec/emacs/29.0.50/amd64-portbld-freebsd14.0/../../../../bin/../lib/emacs/29.0.50/native-lisp/29.0.50-1944ab15/preloaded/simple-fab5b0cf-723c10c1.eln
#76 0x000000000059f875 in funcall_subr (subr=0x8067453e8, numargs=1, args=0x7fffffffdff0) at eval.c:2961
#77 0x000000000059f4f5 in funcall_general (fun=XIL(0x8067453ed), numargs=1, args=0x7fffffffdff0) at eval.c:2863
#78 0x0000000000596d54 in Ffuncall (nargs=2, args=0x7fffffffdfe8) at eval.c:2917
#79 0x0000000000495089 in call1 (fn=XIL(0x4440), arg1=XIL(0x805e899d0)) at ./../lwlib/../src/lisp.h:3228
#80 0x000000000049133e in command_loop_1 () at keyboard.c:1512
#81 0x0000000000597e52 in internal_condition_case (bfun=0x4909a0 <command_loop_1>, handlers=XIL(0x90), hfun=0x491b70 <cmd_error>) at eval.c:1452
#82 0x0000000000490969 in command_loop_2 (handlers=XIL(0x90)) at keyboard.c:1140
#83 0x0000000000597403 in internal_catch (tag=XIL(0xee50), func=0x490940 <command_loop_2>, arg=XIL(0x90)) at eval.c:1182
#84 0x000000000048fd06 in command_loop () at keyboard.c:1118
#85 0x000000000048fb0e in recursive_edit_1 () at keyboard.c:727
#86 0x000000000049009d in Frecursive_edit () at keyboard.c:810
#87 0x000000000048cc00 in main (argc=2, argv=0x7fffffffe6d0) at emacs.c:2488

Thread 1 received signal SIGTERM, Terminated.
Sent by kill() from pid 71434 and user 0.
backtrace_top () at eval.c:163
163     eval.c: No such file or directory.
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(backtrace_top) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb)





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-05-29 15:51                             ` Joseph Mingrone
@ 2022-05-29 23:58                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-30  6:05                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 33+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-29 23:58 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214, Lars Ingebrigtsen, Eli Zaretskii, Brian Burns

Joseph Mingrone <jrm@ftfl.ca> writes:

> (gdb) bt
> #0  _sigprocmask () at _sigprocmask.S:4
> #1  0x0000000802b7b18e in __thr_sigprocmask (how=1, set=<optimized out>, oset=<optimized out>) at /usr/src/lib/libthr/thread/thr_sig.c:656
> #2  _thr_sigmask (how=1, set=<optimized out>, oset=0x7fffffff98e8) at /usr/src/lib/libthr/thread/thr_sig.c:666
> #3  0x000000000065b4fe in block_atimers (oldset=0x7fffffff98e8) at atimer.c:77

Thanks.  Could you show the value of `interrupt_input_blocked'?





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-05-29 15:51                             ` Joseph Mingrone
  2022-05-29 23:58                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-05-30  6:05                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-30 13:00                                 ` Joseph Mingrone
  1 sibling, 1 reply; 33+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-30  6:05 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214, Lars Ingebrigtsen, Eli Zaretskii, Brian Burns

Joseph Mingrone <jrm@ftfl.ca> writes:

> On Tue, 2022-05-24 at 08:27, Po Lu <luangruo@yahoo.com> wrote:
>> Could you attach a debugger to Emacs and show a backtrace?
>
> Here is /a/ backtrace.  Is it helpful?

Please ignore my earlier reply.  This bug should be fixed now on master.





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-05-30  6:05                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-05-30 13:00                                 ` Joseph Mingrone
  2022-05-30 13:34                                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 33+ messages in thread
From: Joseph Mingrone @ 2022-05-30 13:00 UTC (permalink / raw)
  To: Po Lu; +Cc: 22214, Lars Ingebrigtsen, Eli Zaretskii, Brian Burns

On Mon, 2022-05-30 at 14:05, Po Lu <luangruo@yahoo.com> wrote:

> Joseph Mingrone <jrm@ftfl.ca> writes:

>> On Tue, 2022-05-24 at 08:27, Po Lu <luangruo@yahoo.com> wrote:
>>> Could you attach a debugger to Emacs and show a backtrace?

>> Here is /a/ backtrace.  Is it helpful?

> Please ignore my earlier reply.  This bug should be fixed now on master.

I just tested and it looks good here too.  Thanks.





^ permalink raw reply	[flat|nested] 33+ messages in thread

* bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode
  2022-05-30 13:00                                 ` Joseph Mingrone
@ 2022-05-30 13:34                                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 33+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-30 13:34 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: 22214-done, Lars Ingebrigtsen, Eli Zaretskii, Brian Burns

Joseph Mingrone <jrm@ftfl.ca> writes:

> I just tested and it looks good here too.  Thanks.

Great, then I'm closing this bug.  Thanks for testing.





^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2022-05-30 13:34 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-20  6:26 bug#22214: 25.0.50; lock up with gui dialogs and clipmon-mode Joseph Mingrone
2015-12-20 15:54 ` Eli Zaretskii
2015-12-21  2:31   ` Joseph Mingrone
2015-12-21 15:24     ` Eli Zaretskii
2015-12-21 16:41       ` Joseph Mingrone
2015-12-21 17:50         ` Eli Zaretskii
2015-12-21 19:42           ` Joseph Mingrone
2015-12-21  0:21 ` Brian Burns
2015-12-21  0:45   ` Joseph Mingrone
2015-12-22  7:56     ` Brian Burns
2015-12-21 15:26   ` Eli Zaretskii
2015-12-22  5:21 ` Joseph Mingrone
2015-12-22 16:06   ` Eli Zaretskii
2015-12-23 17:00     ` Joseph Mingrone
2015-12-23 17:12       ` Eli Zaretskii
2015-12-23 18:18         ` Joseph Mingrone
2015-12-23 18:22           ` Eli Zaretskii
2015-12-23 20:16             ` Brian Burns
2015-12-23 21:21               ` Joseph Mingrone
2015-12-24  7:43                 ` Brian Burns
2015-12-24 16:20                   ` Eli Zaretskii
2015-12-27  7:29                     ` Brian Burns
2022-04-23 14:06                 ` Lars Ingebrigtsen
2022-04-24 13:23                   ` Joseph Mingrone
2022-04-25  0:50                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-23  8:02                       ` Lars Ingebrigtsen
2022-05-23 19:02                         ` Joseph Mingrone
2022-05-24  0:27                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-29 15:51                             ` Joseph Mingrone
2022-05-29 23:58                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-30  6:05                               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-30 13:00                                 ` Joseph Mingrone
2022-05-30 13:34                                   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).