From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to debug Error during redisplay Date: Sat, 12 Jan 2013 14:30:32 +0200 Message-ID: <831udqtwgn.fsf@gnu.org> References: <83bocwuidc.fsf@gnu.org> <837gnjvmlg.fsf@gnu.org> <83a9seu47p.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1357993820 14410 80.91.229.3 (12 Jan 2013 12:30:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 12:30:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 13:30:38 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tu0EP-0001pU-Ek for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 13:30:37 +0100 Original-Received: from localhost ([::1]:46947 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0E9-0008Cq-9C for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2013 07:30:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0E3-0008Cl-EB for emacs-devel@gnu.org; Sat, 12 Jan 2013 07:30:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tu0Dz-0005Gn-Hd for emacs-devel@gnu.org; Sat, 12 Jan 2013 07:30:15 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:53750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tu0Dz-0005Dh-9A for emacs-devel@gnu.org; Sat, 12 Jan 2013 07:30:11 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MGI00J00IQ89H00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sat, 12 Jan 2013 14:30:08 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGI00JQ1IQ84Y60@a-mtaout21.012.net.il>; Sat, 12 Jan 2013 14:30:08 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156264 Archived-At: > From: Leo Liu > Date: Sat, 12 Jan 2013 19:56:59 +0800 > > 1. Install adaptive-wrap.el from ELPA > 2. Install sbcl or clisp or any CL supported by slime > 1. Emacs -q -l t.el (t.el assumes sbcl, which you may want to change) > 2. M-x slime Thanks, so it sounds like the culprit might be adaptive-wrap, and not slime or animate-string. However, I hope there's a simpler way to debug this. Please run Emacs under GDB, put a breakpoint in Fstringp, where it is about to return Qnil: DEFUN ("stringp", Fstringp, Sstringp, 1, 1, 0, doc: /* Return t if OBJECT is a string. */) (Lisp_Object object) { if (STRINGP (object)) return Qt; return Qnil; <<<<<<<<<<<<<<<<<<<<<<<< } and then run your recipe to reproduce the problem. (I hope this breakpoint won't break too many times in unrelated cases; if it does, we can figure out a way to make the breakpoint smarter.) When the breakpoint breaks, the backtrace should tell us which Lisp code caused it. Please show both the C and Lisp parts of the backtrace. Thanks.