[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoid C stack overflow

From: Paul Eggert
Subject: Re: Avoid C stack overflow
Date: Fri, 14 Mar 2014 06:56:57 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Stefan Monnier wrote:
Currently, "MAX_ALLOCA = 16 * 1024", so yes, Emacs is expected to
occasionally allocate objects larger than your typical 4KB or 8KB
guard page.

That's easily fixable by adjusting MAX_ALLOCA down to a bit less than 4 KiB (which is what Gnulib code does) or by arranging for more guard pages than usual (more hassle, but eminently doable on most platforms).

Emacs already has a stack-overflow prevention mechanism, right? And we're talking about what to do when the user deliberately disables it? So the simplest answer is "don't do that".

reply via email to

[Prev in Thread] Current Thread [Next in Thread]