From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: huge files in ~/.emacs.d/auto-save-list/ Date: Wed, 23 May 2007 14:56:32 -0400 Message-ID: References: <17763.1179779953@gemini.franz.com> <20566.1179846367@gemini.franz.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1179946679 7468 80.91.229.12 (23 May 2007 18:57:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 May 2007 18:57:59 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 23 20:57:50 2007 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.50) id 1Hqw1s-0004rd-I9 for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 May 2007 20:57:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqw1u-00005i-KT for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 May 2007 14:57:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hqw0m-0007ep-8N for bug-gnu-emacs@gnu.org; Wed, 23 May 2007 14:56:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hqw0l-0007eX-RA for bug-gnu-emacs@gnu.org; Wed, 23 May 2007 14:56:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqw0l-0007eS-GK for bug-gnu-emacs@gnu.org; Wed, 23 May 2007 14:56:39 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hqw0l-0006Qf-3N for bug-gnu-emacs@gnu.org; Wed, 23 May 2007 14:56:39 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Hqw0e-0008EV-7j; Wed, 23 May 2007 14:56:32 -0400 In-reply-to: (message from Andreas Schwab on Wed, 23 May 2007 11:32:10 +0200) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:15740 Archived-At: This will cause crashes. First, stream may be NULL, Indeed, it has to check that. second, using stream after fclose is undefined. Using the stream after it shouldn't be used any more seems to be exactly the bug we are trying to find. Are you talking about the second call to `fclose'? I guess we would have to change do_auto_save_unwind so it doesn't close the stream a second time if it was already closed. In any case, Layer's latest message suggests that the problem is of a different kind, not the one this patch was intended to prevent.