From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Baoqiu.Cui@yahoo.com Newsgroups: gmane.emacs.bugs Subject: Re: VM crashes on big INBOX file Date: Fri, 26 Oct 2007 15:22:44 GMT Organization: SBC http://yahoo.sbc.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1193412270 29734 80.91.229.12 (26 Oct 2007 15:24:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2007 15:24:30 +0000 (UTC) To: gnu-emacs-bug@moderators.isc.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 26 17:24:31 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 1IlR31-0008OL-9x for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Oct 2007 17:24:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlR2s-0004pI-8b for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Oct 2007 11:24:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IlR2p-0004kv-Qj for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2007 11:24:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IlR2n-0004g2-RW for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2007 11:24:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IlR2n-0004fe-MS for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2007 11:24:17 -0400 Original-Received: from pinatubo-2.switch.ch ([130.59.1.10] helo=pinatubo.switch.ch) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IlR2n-0004bR-4X for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2007 11:24:17 -0400 Original-Received: from [207.115.16.214] (helo=newssvr14.news.prodigy.net) by pinatubo.switch.ch with esmtp (Exim 4.63) (envelope-from ) id 1IlR1K-0000Lu-44 for gnu-emacs-bug@moderators.isc.org; Fri, 26 Oct 2007 17:22:46 +0200 Original-Received: from localhost (localhost [[UNIX: localhost]]) by newssvr14.news.prodigy.net (8.12.11.20060308/8.12.5) id l9QFMi1B011391; Fri, 26 Oct 2007 11:22:44 -0400 Original-Path: 508a9475!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.vm.bug,gnu.emacs.bug User-Agent: Gnus/5.1100000000000003 (Gnus v5.11) Emacs/22.1 (cygwin) Cancel-Lock: sha1:T3/mRVAwN9P6Zq9YJfWey9/7gUc= Original-Lines: 40 Original-NNTP-Posting-Host: 216.145.49.15 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr14.news.prodigy.net 1193412164 ST000 216.145.49.15 (Fri, 26 Oct 2007 11:22:44 EDT) Original-NNTP-Posting-Date: Fri, 26 Oct 2007 11:22:44 EDT X-UserInfo1: FKPGG_KE@JTSP_@YMZJ\_Q\@TJ_ZTB\MV@BZMVMHQAVTUZ]CLNTCPFK[WDXDHV[K^FCGJCJLPF_D_NCC@FUG^Q\DINVAXSLIFXYJSSCCALP@PB@\OS@BITWAH\CQZKJMMD^SJA^NXA\GVLSRBD^M_NW_F[YLVTWIGAXAQBOATKBBQRXECDFDMQ\DZFUE@\JM X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:16843 Archived-At: Baoqiu.Cui@yahoo.com writes: > Reiner Steib 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