Subject: bug#9087: Crash reading from minibuffer with icomplete-mode

From: [email-masked] (Claudio Bley)
Date: Wed, 04 Jan 2012 16:44:53 +0100

Hi.

Here's a simple example code exposing the crash:

----------------------------------------------------------------------

(defun dosmthg ()
  "`nth' is a bytecode function in bytecode.c
which sets immediate_quit to non-zero before execution."
  (let ((alist (cons 1 nil)))
    (setcdr alist alist)
    (nth most-positive-fixnum alist)))

(catch 'yahee
  (let ((throw-on-input 'yahee)
	(i 4))
    (sit-for 1)
    (while (> i 1)
      (message "hit a key after countdown... %d" (setq i (1- i)))
      (sit-for 1))
    (message "now!")
    (dosmthg)))

----------------------------------------------------------------------

Save as "triggerbug.el" and bytecompile.

Run "emacs -Q -l triggerbug.elc" and follow the on screen
instructions.