[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bus error on MacOS
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 3 May 2013 22:20:14 -0300
> Can we blame the compiler? :-)
I also get bus error in Mac OS 10.7.5 with
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
However, everything seems fine if I add a puts in aux_close:
static int aux_close (lua_State *L) {
LStream *p = tolstream(L);
lua_CFunction cf = p->closef;
p->closef = NULL; /* mark stream as closed */
puts("aux_close before return");
return (*cf)(L); /* close it */
}
I'm baffled...