From: Baoqiu.Cui@yahoo.com
To: gnu-emacs-bug@moderators.isc.org
Subject: Re: VM crashes on big INBOX file
Date: Fri, 26 Oct 2007 15:22:44 GMT [thread overview]
Message-ID: <yoru3avxj3y9.fsf@AFTERRDOUBT-LX.ds.corp.yahoo.com> (raw)
In-Reply-To: yorumyu8f7pt.fsf@AFTERRDOUBT-LX.ds.corp.yahoo.com
Baoqiu.Cui@yahoo.com writes:
> Reiner Steib <reinersteib+from-uce@imap.cc> writes:
>
>>>>I also tried splitting this big folder into two (one with 44MB and
>>>>one with 35MB), and VM can also crash on the small ones sometimes.
>>
>> Please clarify if *Emacs* or *VM* crashes. (What to you mean by
>> "crash"?)
>
> It is Emacs that crashes... Everything is gone except a line of
> "Segmentation fault emacs" on the console. I can easily recreate
> this using the 79MB folder.
OK. After running GDB on Emacs, I finally found the real cause for the
crash. The problem is that, when VM is visiting the huge 79MB folder,
garbage collection is triggered and function mark_object() (in alloc.c)
is recursively called about 29,885 times!!! Too many levels of
mark_object() calls make the stack overflow, causing a segmentation
fault.
Since I am running Emacs on Cygwin, I had to change the following line
in src/Makefile
LD=$(CC) -Wl,--image-base,0x20000000
to something like
LD=$(CC) -Wl,--image-base,0x20000000,--stack,8000000
to increase the stack limit to ~8MB. After making this change and
rebuilding Emacs, now I am able to read the huge folder without any
problem.
Maybe some comments could be added in etc/PROBLEMS for such a problem.
Apparently, XEmacs has a higher stack limit on Cygwin.
Thanks to all of your for the help!
- Baoqiu
prev parent reply other threads:[~2007-10-26 15:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <yoruodet2jjm.fsf@AFTERRDOUBT-LX.ds.corp.yahoo.com>
[not found] ` <fflvjt$dcs$1@reader1.panix.com>
[not found] ` <yoru7ildglb3.fsf@AFTERRDOUBT-LX.ds.corp.yahoo.com>
[not found] ` <ffo8rl$169$1@reader1.panix.com>
[not found] ` <v9myu82p62.fsf@marauder.physik.uni-ulm.de>
[not found] ` <yorumyu8f7pt.fsf@AFTERRDOUBT-LX.ds.corp.yahoo.com>
2007-10-26 7:05 ` VM crashes on big INBOX file ==> problem found!!! Baoqiu.Cui
2007-10-26 15:22 ` Baoqiu.Cui [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yoru3avxj3y9.fsf@AFTERRDOUBT-LX.ds.corp.yahoo.com \
--to=baoqiu.cui@yahoo.com \
--cc=gnu-emacs-bug@moderators.isc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).