From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Monsanto Newsgroups: gmane.emacs.bugs Subject: bug#10159: auto-complete causes crash in emacs HEAD Date: Sat, 22 Sep 2012 08:19:11 -0400 Message-ID: References: <83ipb6l15y.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1348316436 4541 80.91.229.3 (22 Sep 2012 12:20:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Sep 2012 12:20:36 +0000 (UTC) Cc: 10159@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 22 14:20:37 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 1TFOhI-0003Yj-LP for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 14:20:36 +0200 Original-Received: from localhost ([::1]:42127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFOhD-0003cj-VZ for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Sep 2012 08:20:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFOh7-0003Jn-5a for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 08:20:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TFOh2-0007yY-Iu for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 08:20:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TFOh2-0007yB-Fa for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 08:20:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TFOig-0002JJ-AU for bug-gnu-emacs@gnu.org; Sat, 22 Sep 2012 08:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christopher Monsanto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Sep 2012 12:22:02 +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.13483165078860 (code B ref 10159); Sat, 22 Sep 2012 12:22:02 +0000 Original-Received: (at 10159) by debbugs.gnu.org; 22 Sep 2012 12:21:47 +0000 Original-Received: from localhost ([127.0.0.1]:48247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFOiL-0002Il-BY for submit@debbugs.gnu.org; Sat, 22 Sep 2012 08:21:46 -0400 Original-Received: from mail-vb0-f44.google.com ([209.85.212.44]:43887) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TFOiE-0002IY-Kr for 10159@debbugs.gnu.org; Sat, 22 Sep 2012 08:21:39 -0400 Original-Received: by vbbfc26 with SMTP id fc26so5571126vbb.3 for <10159@debbugs.gnu.org>; Sat, 22 Sep 2012 05:19:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=kkYYoplulmVl1jnM+qOAo6xPTPFEUGP+z++ZY/TU2tg=; b=Xy80/EkzxjoDRVCbsgkFEHuzzyv1RYoEMJXUjXIR+16dqjYSIhADPXBnBJnWi343hD QERw+D645J/mqfsiunwzNr1j4bEHfU89bWBdkaOpz0Le/D7H8PQBb6L5Cuvi/2bA3YcB 7xx8h+CpAxBRx4edeATSb80xKuAzrQkwHuC795giR/UthrqMT0aIajWt0eeX/ndZhZth n2core8lmFSqWGeQ9yb+NfkmFXOfDISeXsg3FJpyRl2rElrPBm27D8r+MAhKtaOCqVCu TXIiWYk3Bdp0Gun3YMQVk/13cBZX19f3QBLyL92fgAPDd7RJWk4tDMVhlTZqWeymc8+2 XLqg== Original-Received: by 10.52.68.7 with SMTP id r7mr2300568vdt.96.1348316391445; Sat, 22 Sep 2012 05:19:51 -0700 (PDT) Original-Received: by 10.220.235.132 with HTTP; Sat, 22 Sep 2012 05:19:11 -0700 (PDT) In-Reply-To: <83ipb6l15y.fsf@gnu.org> X-Gm-Message-State: ALoCoQmM5yQTKexAW5I0wDBL+kGOm7Zc8iE8uZT3IjdcdeY/lqQyH38SpPHdnGfXMozpHH9hSxnK 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:64735 Archived-At: Same here. (gdb) pp string #(" " 0 36 (face popup-tip-face keymap nil popup-item "")) Thanks. Seems to me that this value is coming from xdisp.c, display_line, var n_glyphs_before, derived from row->used[TEXT_AREA] (line 19425). (I wish I knew what a "struct it" is, not the most descriptive name! :-)) Christopher Monsanto chris@monsan.to -- http://monsan.to/ On Sat, Sep 22, 2012 at 7:58 AM, Eli Zaretskii wrote: >> 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.