unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Peter Flynn <peter@silmaril.ie>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 46607@debbugs.gnu.org
Subject: bug#46607: 25.2; Emacs hangs with Error running timer 'blink-cursor-start'
Date: Thu, 18 Feb 2021 22:32:39 +0000	[thread overview]
Message-ID: <a49fa78f-2d07-dbb5-6121-f402acf4a53a@silmaril.ie> (raw)
In-Reply-To: <87v9apwq4o.fsf@gnus.org>

On 18/02/2021 11:51, Lars Ingebrigtsen wrote:

[sorry for the delay]

> Could you put
> 
> (setq debug-on-error t)
> 
> in your .emacs file?  That should give you a backtrace when the function
> fails, which should tell us more about where the error is.

That did something (.emacs containing just that line and nothing else:

> Debugger entered--Lisp error: (wrong-type-argument listp 10)
>   cdr(10)
>   (setq time (cdr time))
>   (prog1 time (setq time (cdr time)))
>   (car-safe (prog1 time (setq time (cdr time))))
>   (let* ((time t2) (high2 (car-safe (prog1 time (setq time (cdr time))))) low2 micro2 type2) (if (consp time) (progn (setq low2 (car-safe (prog1 time (setq time (cdr time))))) (if time (setq micro2 (car time) type2 2) (setq micro2 0 type2 1))) (setq low2 time micro2 0 type2 0)) (progn (setq high (+ high high2) low (+ low low2) micro (+ micro micro2) type (max type type2)) (if (>= micro 1000000) (progn (setq low (1+ low) micro (- micro 1000000)))) (if (>= low 65536) (progn (setq high (1+ high) low (- low 65536)))) (encode-time-value high low micro type)))
>   (let* ((time t1) (high (car-safe (prog1 time (setq time (cdr time))))) low micro type) (if (consp time) (progn (setq low (car-safe (prog1 time (setq time (cdr time))))) (if time (setq micro (car time) type 2) (setq micro 0 type 1))) (setq low time micro 0 type 0)) (let* ((time t2) (high2 (car-safe (prog1 time (setq time (cdr time))))) low2 micro2 type2) (if (consp time) (progn (setq low2 (car-safe (prog1 time (setq time ...)))) (if time (setq micro2 (car time) type2 2) (setq micro2 0 type2 1))) (setq low2 time micro2 0 type2 0)) (progn (setq high (+ high high2) low (+ low low2) micro (+ micro micro2) type (max type type2)) (if (>= micro 1000000) (progn (setq low (1+ low) micro (- micro 1000000)))) (if (>= low 65536) (progn (setq high (1+ high) low (- low 65536)))) (encode-time-value hi
 gh low micro type))))
>   time-add(nil 10)
>   timer-relative-time(nil 10)
>   run-at-time(10 nil undo-auto--boundary-timer)
>   undo-auto--boundary-ensure-timer()
>   undo-auto--undoable-change()
>   command-line-1(nil)
>   command-line()
>   normal-top-level()

> Emacs 25.2 is pretty old -- do you also see this in more recent Emacs
> versions?

That's what comes with Mint 19, unfortunately. I'm looking to upgrade 
the machines to Zorin 15, which I have tested from a boot USB; and one 
of the tests was to see if Emacs still exhibited the same problems, 
which it does. So I replaced .emacs on the test machine with the line 
above, and got this:

> Debugger entered--Lisp error: (wrong-type-argument listp 10)
> cdr(10)
> (setq time (cdr time))
> (prog1 time (setq time (cdr time)))
> (car-safe (prog1 time (setq time (cdr time))))
> (let* ((time t2) (high2 (car-safe (prog1 time (setq time (cdr time))))) low2 micro2 type2) (if (consp time) (progn (setq low2 (car-safe (prog1 time (setq time (cdr time))))) (if time (setq micro2 (car time) type2 2) (setq micro2 0 type2 1))) (setq low2 time micro2 0 type2 0)) (progn (setq high (+ high high2) low (+ low low2) micro (+ micro micro2) type (max type type2)) (if (>= micro 1000000) (progn (setq low (1+ low) micro (- micro 1000000)))) (if (>= low 65536) (progn (setq high (1+ high) low (- low 65536)))) (encode-time-value high low micro type)))
> (let* ((time t1) (high (car-safe (prog1 time (setq time (cdr time))))) low micro type) (if (consp time) (progn (setq low (car-safe (prog1 time (setq time (cdr time))))) (if time (setq micro (car time) type 2) (setq micro 0 type 1))) (setq low time micro 0 type 0)) (let* ((time t2) (high2 (car-safe (prog1 time (setq time (cdr time))))) low2 micro2 type2) (if (consp time) (progn (setq low2 (car-safe (prog1 time (setq time ...)))) (if time (setq micro2 (car time) type2 2) (setq micro2 0 type2 1))) (setq low2 time micro2 0 type2 0)) (progn (setq high (+ high high2) low (+ low low2) micro (+ micro micro2) type (max type type2)) (if (>= micro 1000000) (progn (setq low (1+ low) micro (- micro 1000000)))) (if (>= low 65536) (progn (setq high (1+ high) low (- low 65536)))) (encode-time-value high
  low micro type))))
> time-add(nil 10)
> timer-relative-time(nil 10)
> run-at-time(10 nil undo-auto--boundary-timer)
> undo-auto--boundary-ensure-timer()
> undo-auto--undoable-change()
> command-line-1(nil)
> command-line()
> normal-top-level()

That sacrificial machine is running:

In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
  of 2017-09-22, modified by Debian built on lgw01-amd64-050
Windowing system distributor 'The X.Org Foundation', version 11.0.12008000
System Description:	Zorin OS 15.3

Configured using:
  'configure --build x86_64-linux-gnu --prefix=/usr
  --sharedstatedir=/var/lib --libexecdir=/usr/lib
  --localstatedir=/var/lib --infodir=/usr/share/info
  --mandir=/usr/share/man --with-pop=yes
 
--enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
  --with-sound=alsa --without-gconf --build x86_64-linux-gnu
  --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
  --localstatedir=/var/lib --infodir=/usr/share/info
  --mandir=/usr/share/man --with-pop=yes
 
--enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
  --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3
  --with-toolkit-scroll-bars 'CFLAGS=-g -O2
  -fdebug-prefix-map=/build/emacs25-jYekUr/emacs25-25.2+1=. 
-fstack-protector-strong
  -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
  -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11

Important settings:
   value of $LC_MONETARY: en_US.UTF-8
   value of $LC_NUMERIC: en_US.UTF-8
   value of $LC_TIME: en_US.UTF-8
   value of $LANG: en_GB.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
   tooltip-mode: t
   global-eldoc-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   tool-bar-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   line-number-mode: t
   transient-mark-mode: t

Recent messages:
remem.el: (lambda (buf) ...) quoted with ' rather than with #'
remem.el: (lambda (format) ...) quoted with ' rather than with #'
remem.el: (lambda (e) ...) quoted with ' rather than with #'
remem.el: (lambda (scope) ...) quoted with ' rather than with #'
remem.el: (lambda (line) ...) quoted with ' rather than with #'
remem.el: (lambda (s) ...) quoted with ' rather than with #'
remem.el: (lambda (filename) ...) quoted with ' rather than with #'
remem.el: (lambda (scopeinfo) ...) quoted with ' rather than with #'
Loading /usr/local/share/emacs/site-lisp/remem.el (source)...done
Making completion list...

Load-path shadows:
/usr/local/share/emacs/site-lisp/css-mode hides 
/usr/share/emacs/25.2/lisp/textmodes/css-mode
/usr/local/share/emacs/site-lisp/package hides 
/usr/share/emacs/25.2/lisp/emacs-lisp/package

Features:
(shadow sort mail-extr emacsbug message idna dired format-spec rfc822
mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode mail-prsvr
mail-utils package derived remem php-mode cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
cl-loaddefs pcase cl-lib speedbar sb-image ezimage dframe easymenu
vc-dispatcher vc-svn time-date 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 dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 249253 7779)
  (symbols 48 27871 0)
  (miscs 40 189 143)
  (strings 32 67589 68563)
  (string-bytes 1 1888847)
  (vectors 16 19997)
  (vector-slots 8 504729 15181)
  (floats 8 177 84)
  (intervals 56 270 11)
  (buffers 976 19))


Peter






  reply	other threads:[~2021-02-18 22:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-17 23:09 bug#46607: 25.2; Emacs hangs with Error running timer 'blink-cursor-start' Peter Flynn
2021-02-18 11:51 ` Lars Ingebrigtsen
2021-02-18 22:32   ` Peter Flynn [this message]
2021-02-18 23:03     ` Glenn Morris
2021-02-18 23:07       ` Peter Flynn
2021-02-18 23:31         ` Glenn Morris
2021-02-19 10:19           ` Peter Flynn
2021-02-19 16:33             ` Glenn Morris
2021-02-19 21:38               ` Peter Flynn
2021-02-20 12:28                 ` Lars Ingebrigtsen
2021-02-20 14:11                   ` Peter Flynn
2021-02-19 12:40     ` Lars Ingebrigtsen
2021-02-19 14:14       ` Peter Flynn
2021-02-19 14:19         ` Peter Flynn
2021-02-20 12:28         ` Lars Ingebrigtsen
2021-02-18 14:05 ` Eli Zaretskii
2021-02-18 22:37   ` Peter Flynn
2021-02-19 10:25   ` Peter Flynn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a49fa78f-2d07-dbb5-6121-f402acf4a53a@silmaril.ie \
    --to=peter@silmaril.ie \
    --cc=46607@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).