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#8472: 24.0.50; weird emacs bugs causing data lossage Date: Mon, 11 Apr 2011 03:56:42 -0400 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1302509260 19878 80.91.229.12 (11 Apr 2011 08:07:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 08:07:40 +0000 (UTC) Cc: 8472@debbugs.gnu.org To: joakim@verona.se Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 11 10:07:36 2011 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 1Q9C9m-0006lD-2z for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 10:07:34 +0200 Original-Received: from localhost ([127.0.0.1]:40988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9C9k-0004bw-GU for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Apr 2011 04:07:32 -0400 Original-Received: from [140.186.70.92] (port=38579 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9C9c-0004b8-G6 for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 04:07:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9C9Y-0005VE-7n for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 04:07:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9C9Y-0005V9-6H for bug-gnu-emacs@gnu.org; Mon, 11 Apr 2011 04:07:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q9Bza-0007ZC-BO; Mon, 11 Apr 2011 03:57: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: Mon, 11 Apr 2011 07:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8472 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8472-submit@debbugs.gnu.org id=B8472.130250861129069 (code B ref 8472); Mon, 11 Apr 2011 07:57:02 +0000 Original-Received: (at 8472) by debbugs.gnu.org; 11 Apr 2011 07:56:51 +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 1Q9BzO-0007Yo-QR for submit@debbugs.gnu.org; Mon, 11 Apr 2011 03:56:51 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9BzM-0007Yc-Bf for 8472@debbugs.gnu.org; Mon, 11 Apr 2011 03:56:49 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Q9BzG-00074o-MW; Mon, 11 Apr 2011 03:56:42 -0400 In-reply-to: (joakim@chopper.i-did-not-set--mail-host-address--so-tickle-me) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 11 Apr 2011 03:57:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:45753 Archived-At: > From: joakim@chopper.i-did-not-set--mail-host-address--so-tickle-me you-did-not-set--mail-host-address--so-i'm-tickling-you > Date: Sun, 10 Apr 2011 21:39:55 +0200 > Cc: > > Emacs ask if I really want to edit the buffer and I say > no. Then Emacs redisplay seems to hang. > > This happened several times. Most times I had to kill emacs and loose > my work. This time I tried more debugging. Lately I run Emacs in a > debugger. Weirdly gdb refused to break itho a prompt. ctrl z and fg > woke up gdb. That might mean that Emacs was stuck in a system call. But the fact that it responded to emacsclient eliminates this possibility, I think. I would try delivering a fatal signal to Emacs ("kill -TERM", for example) from the shell prompt. Detaching the debugger under which you ran Emacs and attaching another instance of GDB is another thing to try. > it occured to me that maybe Emacs wasnt totaly hung maybe just > redisplay. I don't see how this can be true. If redisplay infloops, it will never return, and the rest of Emacs will never get to do anything, including the calls to `select' that you saw in strace. > So I tested emacs client and I could recover data like > this: > > emacsclient -e "(let ((b (set-buffer \"journal.org\")) (text (buffer-string))) (set-text-properties 0 (length text) nil text)text)" Now I don't understand how come you couldn't break into it from GDB. > There are two weird things here: > - the file was truncated. Maybe this is due to a combination of > narrowing and automatic save. Can't happen, auto-save forces temporary widening of the buffer (as you'd expect ;-). > - redisplay hangs in minibuffer input. I have no idea about why this > happens. Doesn't seem to be the case, see above. Best thing to try next time is somehow to stop Emacs, and then use the procedure described in etc/DEBUG under "If the symptom of the bug is that Emacs fails to respond".