GNU bug report logs -
#2309
Saving under Windows (sometimes) causes Emacs to freeze and allocate a lot of memory - Emacs 22.3.1
Previous Next
Reported by: fredrik.hellman <at> gmail.com
Date: Thu, 12 Feb 2009 12:10:04 UTC
Severity: normal
Done: Jason Rumney <jasonr <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2309 in the body.
You can then email your comments to 2309 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#2309
; Package
emacs
.
(Thu, 12 Feb 2009 12:10:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
fredrik.hellman <at> gmail.com
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Thu, 12 Feb 2009 12:10:05 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Hello!
I have downloaded and installed the following Emacs version for Windows:
GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600)
of 2008-09-06 on SOFT-MJASON
When I start emacs, open a file in a buffer, do some changes in it and
then saves the file with C-x C-s Emacs freezes and I can see how the
memory allocated by Emacs slowly increases until it after a few
minutes wakes up again and says in a separate buffer:
Emergency (alloc): Warning: past 95% of memory limit
This problem doesn't always occur on saves.
I don't know what more to tell, but if you want more details about
something, feel free to ask me.
Best regards,
Fredrik Hellman
bug reassigned from package `emacs' to `emacs,w32'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 12 Feb 2009 22:40:04 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
:
bug#2309
; Package
emacs,w32
.
(Fri, 13 Feb 2009 13:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jason Rumney <jasonr <at> gnu.org>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>, owner <at> emacsbugs.donarmstrong.com
.
(Fri, 13 Feb 2009 13:50:03 GMT)
Full text and
rfc822 format available.
Message #12 received at 2309 <at> emacsbugs.donarmstrong.com (full text, mbox):
tags 2309 +moreinfo
Fredrik Hellman wrote:
> When I start emacs, open a file in a buffer, do some changes in it and
> then saves the file with C-x C-s Emacs freezes and I can see how the
> memory allocated by Emacs slowly increases until it after a few
> minutes wakes up again and says in a separate buffer:
>
> Emergency (alloc): Warning: past 95% of memory limit
>
> This problem doesn't always occur on saves.
>
> I don't know what more to tell, but if you want more details about
> something, feel free to ask me.
>
Is there any pattern to when this occurs? Particular file types? Files
saved in a particular location?
Try setting debug-on-quit to t (you can toggle this variable from the
Options menu), then when you notice the problem, press C-g and see if
you get thrown into the lisp debugger.
Information stored
:
bug#2309
; Package
emacs,w32
.
(Sat, 14 Feb 2009 00:15:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
fredrik.hellman <at> gmail.com
:
Extra info received and filed, but not forwarded.
(Sat, 14 Feb 2009 00:15:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 2309-quiet <at> emacsbugs.donarmstrong.com (full text, mbox):
Hi!
Thanks for your reply! I toggled the "Enter Debugger on Quit/C-g" on
and got the following output in some buffer when pressing C-g when
Emacs was frozen:
Debugger entered--Lisp error: (quit)
directory-file-name("d:/")
make-directory("d:/program/emacs/backup" parents)
byte-code("ࣁ숀\"� [abs-backup-directory make-directory parents] 3)
make-backup-file-name-1("c:/home/hellman/programmering/c/flyttal/flyttal/timing.h")
find-backup-file-name("c:/home/hellman/programmering/c/flyttal/flyttal/timing.h")
backup-buffer()
basic-save-buffer-2()
basic-save-buffer-1()
basic-save-buffer()
save-buffer(1)
call-interactively(save-buffer)
I realized that the path at third line there: make-directory("d:/..."
doesn't make sense any more. When installing this new version of Emacs
on my fresh XP-installation I simply copied my old .emacs-file where
it was written:
(custom-set-variables
'(backup-directory-alist (quote (("." . "d:/program/emacs/backup"))))
However, d:\ doesn't even exist on my current setup, so I now changed
that to some accessible directory, and voila, the problem seems to be
gone. However, I guess we still can consider this a bug in Emacs as I
guess it shouldn't start allocating increasingly more memory because
of such a thing.
Thanks for the advice about debug-on-quit!
If you want more information, please ask.
Best regards,
Fredrik Hellman
On Fri, Feb 13, 2009 at 2:42 PM, Jason Rumney <jasonr <at> gnu.org> wrote:
> tags 2309 +moreinfo
>
> Fredrik Hellman wrote:
>>
>> When I start emacs, open a file in a buffer, do some changes in it and
>> then saves the file with C-x C-s Emacs freezes and I can see how the
>> memory allocated by Emacs slowly increases until it after a few
>> minutes wakes up again and says in a separate buffer:
>>
>> Emergency (alloc): Warning: past 95% of memory limit
>>
>> This problem doesn't always occur on saves.
>>
>> I don't know what more to tell, but if you want more details about
>> something, feel free to ask me.
>>
>
> Is there any pattern to when this occurs? Particular file types? Files saved
> in a particular location?
>
> Try setting debug-on-quit to t (you can toggle this variable from the
> Options menu), then when you notice the problem, press C-g and see if you
> get thrown into the lisp debugger.
>
>
Reply sent
to
Jason Rumney <jasonr <at> gnu.org>
:
You have taken responsibility.
(Tue, 17 Feb 2009 14:35:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
fredrik.hellman <at> gmail.com
:
bug acknowledged by developer.
(Tue, 17 Feb 2009 14:35:04 GMT)
Full text and
rfc822 format available.
Message #22 received at 2309-done <at> emacsbugs.donarmstrong.com (full text, mbox):
Fredrik Hellman wrote:
>> When I start emacs, open a file in a buffer, do some changes in it and
>> then saves the file with C-x C-s Emacs freezes and I can see how the
>> memory allocated by Emacs slowly increases until it after a few
>> minutes wakes up again and says in a separate buffer:
Thank you for the extra info you provided.
Emacs appears to be in an infinite loop trying to create the
non-existent directory "d:/" and all its parents.
I've fixed make-directory to abort this loop when the directory is its
own parent.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Wed, 18 Mar 2009 14:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 16 years and 156 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.