GNU bug report logs - #30182
27.0.50; Crash when doing mouse-over on modeline

Previous Next

Package: emacs;

Reported by: Sujith <m.sujith <at> gmail.com>

Date: Sat, 20 Jan 2018 06:27:02 UTC

Severity: normal

Found in version 27.0.50

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: m.sujith <at> gmail.com, 30182 <at> debbugs.gnu.org
Subject: bug#30182: Update
Date: Wed, 24 Jan 2018 21:10:52 +0200
> Date: Wed, 24 Jan 2018 09:38:49 +0100
> From: martin rudalics <rudalics <at> gmx.at>
> CC: m.sujith <at> gmail.com, 30182 <at> debbugs.gnu.org
> 
> I asked the OP to
> 
>    Just to eliminate one possible cause: Does the bug disappear when you
>    customize `mode-line-default-help-echo' to the default value of the
>    'string' alternative?
> 
> and he answered that
> 
>    Yes, if that is done, then the crash doesn't happen.

OK, thanks.

>  > So if using a string instead of a function the returns a string solves
>  > the problem, then I guess we should try and understand why a function
>  > causes the problem.
> 
> Apparently because evaluating that function creates a timer.

You mean, mode-line-default-help-echo creates a timer?  If it does, I
don't see where it does that.

> w3m.el, when creating a buffer for its purposes, does
> 
>    (setq mode-line-buffer-identification
> 	`(
> [...]
> 	  (w3m-current-process
> 	   "Loading..." ,(if (fboundp 'format-mode-line)
> 			     '(:eval (w3m-modeline-title))
> 
> where the latter contains
> 
> (defun w3m-modeline-title ()
> [...]
> 				(condition-case nil
> 				    (format-mode-line mode-line-format 1)
> 				  (error "")))
> [...]
> 	    (run-at-time 0.5 nil
> 			 (lambda (buffer)
> 			   (when (buffer-live-p buffer)
> 			     (with-current-buffer buffer
> 			       (setq w3m-modeline-title-timer nil))))
> 			 (current-buffer)))))))
> 
> 
> But I haven't been able yet to trigger the crash from here.

What I don't understand is how is the above :eval form related to
mode-line-default-help-echo.  They are both properties of parts of the
mode line, but how is that relevant to the issue at hand?




This bug report was last modified 7 years and 108 days ago.

Previous Next


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