From: Kaushal Modi <kaushal.modi@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Understanding the cause of a bug causing *all* bindings to be wiped out
Date: Mon, 11 Jul 2016 15:20:01 +0000 [thread overview]
Message-ID: <CAFyQvY1e+HJMKdyKEBYcw8zV_OcBZR7o+WhnT5bYXZ33iaodcQ@mail.gmail.com> (raw)
In-Reply-To: <83twfwck2l.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2655 bytes --]
Looks like you have nailed it. If I now think about it, this has happened
only after an error (but not always after an error).
Last time this happened was after I was trying to intentionally generate an
error by evaluating
(string-match-p "." nil)
That was part of testing out some elisp, but that's a different story. I
basically needed to try some snippet that would generate error and I came
up with above.
I later find that the above causes emacs to freeze when using my config,
but not in emacs -Q (master branch).
I can get out of the emacs freeze by hitting C-g. But then I get:
Entering debugger...
Error during redisplay: (jit-lock-function 1619) signaled
(args-out-of-range 0 1622)
Error during redisplay: (jit-lock-function 2119) signaled
(args-out-of-range 0 2131)
Error during redisplay: (jit-lock-function 2619) signaled
(args-out-of-range 0 2684)
Error during redisplay: (jit-lock-function 3119) signaled
(args-out-of-range 0 3364)
help-function-arglist: End of file during parsing
Error in post-command-hook (global-font-lock-mode-check-buffers): (quit)
Error during redisplay: (jit-lock-function 1619) signaled (quit)
Error during redisplay: (jit-lock-function 1620) signaled (quit)
Quit [8 times]
So then I repeated generating the above error to figure out what in my
config is causing it (still haven't figured it out).
The strange thing is that
(string-match-p "." nil)
generates proper backtrace as expected when using my config:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-match("." nil)
eval((string-match "." nil) nil)
eval-expression((string-match "." nil) nil)
funcall-interactively(eval-expression (string-match "." nil) nil)
call-interactively(eval-expression nil nil)
command-execute(eval-expression)
Note that I simply replaced string-match-p with string-match. So error
backtrace generation has been working fine for me, except that "(string-match-p
"." nil)" triggers some bug in my config that causes emacs to freeze, and
that's most likely what's wiping the bindings, except that I cannot
recreate the binding loss scenario.
In one of such intentionally generated error trials, I lost all the
bindings. (I have no idea was help-function-arglist has to do in this. I
grepped my config, packages, but couldn't figure out what that has to do
with error caused by using nil instead of a string.)
On Mon, Jul 11, 2016 at 10:43 AM Eli Zaretskii <eliz@gnu.org> wrote:
> One of those (or something similar) done by some code that fails to
> unwind-protect itself, and so leaves these values behind when you type
> C-g or some other error is signaled.
>
--
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 3638 bytes --]
prev parent reply other threads:[~2016-07-11 15:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-11 5:28 Understanding the cause of a bug causing *all* bindings to be wiped out Kaushal Modi
2016-07-11 7:29 ` Andreas Schwab
2016-07-11 12:33 ` Stefan Monnier
2016-07-11 14:00 ` Kaushal Modi
2016-07-11 14:10 ` Stefan Monnier
2016-07-11 15:52 ` Kaushal Modi
2016-07-11 19:57 ` Kaushal Modi
2016-07-11 14:42 ` Eli Zaretskii
2016-07-11 15:20 ` Kaushal Modi [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFyQvY1e+HJMKdyKEBYcw8zV_OcBZR7o+WhnT5bYXZ33iaodcQ@mail.gmail.com \
--to=kaushal.modi@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.