Re: xemacs on X11 Beta 3 (update)
Re: xemacs on X11 Beta 3 (update)
- Subject: Re: xemacs on X11 Beta 3 (update)
- From: robert delius royar <email@hidden>
- Date: Mon, 7 Apr 2003 13:24:00 -0400 (EDT)
- Organization: An Apple OS X end user
- Priority: NEW
On Mon, 7 Apr 2003, RCohen wrote:
> I did have a stack size/regex problem, which I solved by recompiling with
> malloc (but long enough ago that I've forgotten the details).
There is a macro in the src/regex.[h|c] sources. I think the beta now has a
configure option for the fix.
> Don't know if this info will help anyone...
>
> -Ron Cohen-
This is very important for XEmacs on the Mac and for other platforms too.
It is a known bug and is buried somewhere in the PROBLEMS file that regex
causes stack-based crashes. It is also known that those crashes often show
up in contexts that make them hard to trace. There are two workarounds: use
malloc in regex instead of alloca, or increase the stack size on the OS.
Since 512K is pretty small and since many folks are using precompiled
binaries, the stacksize increase is a useful fix. Through experimentation a
few Mac XEmacs beta users found 8M to be the smallest stable size. The
malloc workaround fixes the problem but makes font-lock much slower in the
debug/beta version.
So, once again, try limit stack 8m or ulimit -s 8192 and then see if XEmacs
fails.
By the way, early-compiled versions of XEmacs failed because of a change in
ncurses, but I don't think that is the problem in this case because XEmacs
would have failed with OroborOSX, and the OP said that it did not.
--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky
Kill UGLY Corporate Radio
The Atari could offer all the bells/whistles with 5000 MIP X window
system/parallel processing transputer that watches the kids on the
weekends and drives you to work, and the average business joe would still
demand his/her "PC".
-Robert D. Royar, in comp.sys.atari.st.tech
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.