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#6177: 23.2; emacs crashes when reverting a file Date: Wed, 12 May 2010 21:13:00 +0300 Message-ID: <83d3x1ouoj.fsf@gnu.org> References: <87632uvx11.fsf@regnitz.physics.niu.edu> <83ljbpq0pi.fsf@gnu.org> <19434.43397.585317.669911@regnitz.physics.niu.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1273688805 1850 80.91.229.12 (12 May 2010 18:26:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 May 2010 18:26:45 +0000 (UTC) Cc: 6177@debbugs.gnu.org To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 12 20:26:43 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OCGdn-00081H-67 for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 May 2010 20:26:43 +0200 Original-Received: from localhost ([127.0.0.1]:58786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCGdm-0000pl-7S for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 May 2010 14:26:42 -0400 Original-Received: from [140.186.70.92] (port=46036 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCGdd-0000ol-3o for bug-gnu-emacs@gnu.org; Wed, 12 May 2010 14:26:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCGdb-00059H-L6 for bug-gnu-emacs@gnu.org; Wed, 12 May 2010 14:26:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34276) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCGdb-00059D-J7 for bug-gnu-emacs@gnu.org; Wed, 12 May 2010 14:26:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OCGTS-0007Bb-5h; Wed, 12 May 2010 14:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 May 2010 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6177-submit@debbugs.gnu.org id=B6177.127368811327610 (code B ref 6177); Wed, 12 May 2010 18:16:02 +0000 Original-Received: (at 6177) by debbugs.gnu.org; 12 May 2010 18:15:13 +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 1OCGSb-0007BF-Ce for submit@debbugs.gnu.org; Wed, 12 May 2010 14:15:13 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCGSX-0007Af-RS for 6177@debbugs.gnu.org; Wed, 12 May 2010 14:15:07 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L2B00E00IQ48C00@a-mtaout22.012.net.il> for 6177@debbugs.gnu.org; Wed, 12 May 2010 21:15:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.0.144]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L2B009MOK0VFXI0@a-mtaout22.012.net.il>; Wed, 12 May 2010 21:14:56 +0300 (IDT) In-reply-to: <19434.43397.585317.669911@regnitz.physics.niu.edu> 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 May 2010 14:16:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36902 Archived-At: > Date: Wed, 12 May 2010 08:13:41 -0500 > From: "Roland Winkler" > Cc: 6177@debbugs.gnu.org > > Any hints on what these crashes are possibly be related with > according to the backtrace are greatly appreciated. Let me try to give you some insights, by walking the call-stack frames, telling what I see, and asking questions. #1 0x081deb85 in temp_set_point_both (buffer=0x98411c8, charpos=92, bytepos=92) at intervals.c:1950 This frame causes the crash here: if (charpos > BUF_ZV (buffer) || charpos < BUF_BEGV (buffer)) abort (); BUF_ZV and BUF_BEGV are, respectively (point-max) and (point-min) of the buffer. Since we see that charpos is 92, I'm guessing that the first comparison is the culprit, i.e. (point-max) is less than or equal to 92. What do the following GDB commands display in frame #1? (gdb) print buffer->zv (gdb) print *buffer->text->beg@N Here N is the value of buffer->zv displayed by the first command. #2 0x08091754 in redisplay_window (window=159032549, just_this_one_p=0) at xdisp.c:13940 This frame calls temp_set_point_both here: /* Restore current_buffer and value of point in it. */ TEMP_SET_PT_BOTH (CHARPOS (opoint), BYTEPOS (opoint)); opoint is initialized at the beginning of the function to the value of point: SET_TEXT_POS (lpoint, PT, PT_BYTE); opoint = lpoint; So it looks like the value of point that was valid before redisplaying the window somehow became invalid during redisplaying it. Hmm... What kind of buffer is this? Type these commands to find out: (gdb) print buffer->name (gdb) xstring Also, what window are we redisplaying? Type these commands: (gdb) print w->mini_p (gdb) xsymbol TIA