From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#10159: auto-complete causes crash in emacs HEAD Date: Sat, 22 Sep 2012 14:58:17 +0300 Message-ID: <83ipb6l15y.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1348315171 27853 80.91.229.3 (22 Sep 2012 11:59:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 11:59:31 +0000 (UTC) Cc: 10159@debbugs.gnu.org To: Christopher Monsanto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 13:59:35 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TFOMw-0004qR-Dc for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 13:59:34 +0200 Original-Received: from localhost ([::1]:34487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFOMr-0006PO-Rg for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 07:59:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFOMm-0006OS-9T for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:59:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFOMi-0000LL-51 for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:59:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFOMi-0000LH-1F for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 07:59:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFOOL-0001qp-Sq for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 08:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2012 12:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10159 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10159-submit@debbugs.gnu.org id=B10159.13483152297073 (code B ref 10159); Sat, 22 Sep 2012 12:01:01 +0000 Original-Received: (at 10159) by debbugs.gnu.org; 22 Sep 2012 12:00:29 +0000 Original-Received: from localhost ([127.0.0.1]:48215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFONl-0001pw-51 for submit@debbugs.gnu.org; Sat, 22 Sep 2012 08:00:29 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:35950) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFONZ-0001pZ-Et for 10159@debbugs.gnu.org; Sat, 22 Sep 2012 08:00:17 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MAR006002KF4H00@a-mtaout22.012.net.il> for 10159@debbugs.gnu.org; Sat, 22 Sep 2012 14:58:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MAR005792LHXC40@a-mtaout22.012.net.il>; Sat, 22 Sep 2012 14:58:29 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64734 Archived-At: > From: Christopher Monsanto > Date: Sat, 22 Sep 2012 07:12:45 -0400 > > Sorry, there should not be a space in "def ". "def" is what will do it. Neither "def " nor "def" reproduce the crash for me. But I succeeded in reproducing a very similar crash anyway. The problem seems to be that the display code runs off the end of an overlay string. To verify that this is what happens to you as well, please do (gdb) frame 1 (gdb) pp string (If 'pp' doesn't work, you will need to type (gdb) source /path/to/emacs/src/.gdbinit to make that command available to GDB.) You should see that 'string' is shorter than 43 characters, whereas this part of your backtrace: #1 0x0000000000663076 in composition_compute_stop_pos (cmp_it=0x7fffffff9148, charpos=43, bytepos=44, endpos=43, string=25414881) at composite.c:1053 indicates that the code attempted to access character number 43. In my case, 'charpos' is 41, 'bytepos' is 42, and 'string' is 36 characters long. I'm looking into the cause of this bug.