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#9738: 24.0.90; Crash at overlay-put-ov 'after-string Date: Wed, 12 Oct 2011 19:59:54 +0200 Message-ID: <837h4a3xb9.fsf@gnu.org> References: <1318437830.56119.YahooMailClassic@web161203.mail.bf1.yahoo.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1318442628 30163 80.91.229.12 (12 Oct 2011 18:03:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 18:03:48 +0000 (UTC) Cc: 9738@debbugs.gnu.org To: dcl441-bugs@yahoo.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 12 20:03:44 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RE39b-00040b-Ki for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Oct 2011 20:03:43 +0200 Original-Received: from localhost ([::1]:36324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE39a-0005VJ-W2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Oct 2011 14:03:42 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE39X-0005VB-KI for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2011 14:03:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RE39W-0006tZ-B2 for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2011 14:03:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE39W-0006tT-9U for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2011 14:03:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RE39t-0002Ia-Va for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2011 14:04: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: Wed, 12 Oct 2011 18:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9738 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9738-submit@debbugs.gnu.org id=B9738.13184425948783 (code B ref 9738); Wed, 12 Oct 2011 18:04:01 +0000 Original-Received: (at 9738) by debbugs.gnu.org; 12 Oct 2011 18:03:14 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RE398-0002Hc-6g for submit@debbugs.gnu.org; Wed, 12 Oct 2011 14:03:14 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RE396-0002HP-80 for 9738@debbugs.gnu.org; Wed, 12 Oct 2011 14:03:12 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LSY00D00SJX7G00@a-mtaout20.012.net.il> for 9738@debbugs.gnu.org; Wed, 12 Oct 2011 19:59:53 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.51.78]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LSY00CPRSNSO7B0@a-mtaout20.012.net.il>; Wed, 12 Oct 2011 19:59:52 +0200 (IST) In-reply-to: <1318437830.56119.YahooMailClassic@web161203.mail.bf1.yahoo.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 12 Oct 2011 14:04:01 -0400 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:52599 Archived-At: > Date: Wed, 12 Oct 2011 09:43:50 -0700 (PDT) > From: Daniel Clemente >=20 > 1. emacs -Q > 2. Eval the following: > =A0 (setq ov (make-overlay 1 2)) > =A0 (overlay-put ov 'after-string "\n111\n2" ) > 3. Crash. This stacktrace appears under gdb: Please see if the patch below fixes the problem. I cannot reproduce the crash with your recipe, so I cannot verify that it's fixed by thi= s patch. Thanks. =3D=3D=3D modified file 'src/bidi.c' --- src/bidi.c=092011-10-12 15:12:52 +0000 +++ src/bidi.c=092011-10-12 17:56:48 +0000 @@ -808,7 +808,6 @@ bidi_init_it (EMACS_INT charpos, EMACS_I bidi_it->nchars =3D -1;=09/* to be computed in bidi_resolve_explic= it_1 */ bidi_it->first_elt =3D 1; bidi_set_paragraph_end (bidi_it); - bidi_it->paragraph_dir =3D NEUTRAL_DIR; bidi_it->new_paragraph =3D 1; bidi_it->separator_limit =3D -1; bidi_it->type =3D NEUTRAL_B; =3D=3D=3D modified file 'src/xdisp.c' --- src/xdisp.c=092011-10-12 15:12:52 +0000 +++ src/xdisp.c=092011-10-12 17:56:28 +0000 @@ -19479,6 +19479,7 @@ See also `bidi-paragraph-direction'. */ =09 bytepos--; =09} bidi_init_it (pos, bytepos, FRAME_WINDOW_P (SELECTED_FRAME ())= , &itb); + itb.paragraph_dir =3D NEUTRAL_DIR; itb.string.s =3D NULL; itb.string.lstring =3D Qnil; itb.string.bufpos =3D 0;