From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: GNU Emacs crashes with longlines-mode and outline-mode Date: Sun, 23 Sep 2007 23:11:05 +0100 Message-ID: <46F6E479.3070309@gnu.org> References: 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: sea.gmane.org 1190585509 29628 80.91.229.12 (23 Sep 2007 22:11:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Sep 2007 22:11:49 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: r.thiel@uni-jena.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 24 00:11:44 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IZZfw-0000iX-V1 for ged-emacs-devel@m.gmane.org; Mon, 24 Sep 2007 00:11:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZZft-0001SL-UX for ged-emacs-devel@m.gmane.org; Sun, 23 Sep 2007 18:11:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZZfr-0001S6-Ik for emacs-devel@gnu.org; Sun, 23 Sep 2007 18:11:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZZfp-0001Ru-47 for emacs-devel@gnu.org; Sun, 23 Sep 2007 18:11:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZZfo-0001Rr-U6 for emacs-devel@gnu.org; Sun, 23 Sep 2007 18:11:32 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZZfo-00068Q-OK for emacs-devel@gnu.org; Sun, 23 Sep 2007 18:11:32 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZZfB-0004F3-Dp for emacs-pretest-bug@gnu.org; Sun, 23 Sep 2007 18:10:53 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IZZfn-00068C-6K for emacs-pretest-bug@gnu.org; Sun, 23 Sep 2007 18:11:32 -0400 Original-Received: from outmail1.freedom2surf.net ([194.106.33.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZZfm-000684-T6 for emacs-pretest-bug@gnu.org; Sun, 23 Sep 2007 18:11:31 -0400 Original-Received: from [127.0.0.1] (i-83-67-23-108.freedom2surf.net [83.67.23.108]) by outmail1.freedom2surf.net (Postfix) with ESMTP id 78B1652489; Sun, 23 Sep 2007 23:11:29 +0100 (BST) User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-Detected-Kernel: Linux 2.4-2.6 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79625 gmane.emacs.pretest.bugs:19978 Archived-At: Rainer Thiel wrote: > I can reproduce the problem with the following file: > > ----------, > -*- mode: text; mode: outline -*- > > * One chapter > > Some text. Some text that must be longer than one line, to test if > Emacs really fails to handle outline mode and longlines-mode together. > ----------=B4 > > [last paragraph is supposed to be one long line, but may be wrapped by > my mail client. > > When I load the file, I can only see > > ---, > -*- mode: text; mode: outline -*- > > * One chapter... > --- > =20 To reproduce this, the following is required: (setq longlines-show-hard-newlines t) C-c l after the file above is visited. > as expected. When I now press M-x longlines-mode, the crash occur= s. > =20 I can reproduce this crash on both Windows XP and GNU/Linux. The crash occurs in next_element_from_display_vector in xdisp.c (line 5961 in my current trunk sandbox), because it->dpvec is NULL and we try to take its address. There is an xassert at the beginning of the function that should catch this, but it must be compiled out in my build. =20 Emacs crashes in the same place regardless of whether longlines-mode is enabled before or after the C-c l in the outline buffer, and regardless of whether there are long lines in the buffer (the important things seem to be longlines-show-hard-newlines and hidden text containing a hard newline).