[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Mysterious crash in patchlistaux() / getjump()
- From: David Given <dg@...>
- Date: Fri, 22 Jul 2011 18:28:34 +0100
David Given wrote:
[...]
That's a very interesting suggestion --- I'll try bumping the stack size
and seeing what happens. Thanks!
Problem solved!
It wasn't the stack --- it was more surreptitious than that...
I'm compiling in C++ mode. The definition of INT_MAX that was being seen
was the C++ one in <climits>:
const int INT_MAX = 0x7ffffff;
But then, luaconf was doing this:
#if INT_MAX-20 < 32760
#define LUAI_BITSINT 16
This of course was failing, because INT_MAX was not a macro. So
LUAI_BITSINT was being set to 16. But then we get this:
#define LUAI_MAXINT32 INT_MAX
This sets LUAI_MAXINT32 to 32, because INT_MAX is a valid value...
I think this is all the fault of my non-standard and highly eccentric
libc, BTW.
--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone." --- Bjarne Stroustrup