[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Crash on OSX 10.7 for Lua 5.2.2 on f:close()
- From: Tim Hill <drtimhill@...>
- Date: Wed, 2 Oct 2013 16:44:13 -0700
On Oct 2, 2013, at 3:53 PM, Paul K <paulclinger@yahoo.com> wrote:
> Hi All,
>
> I get a strange crash on OSX 10.7.4 running Lua 5.2.2 with this simple script:
>
> print("Start", _VERSION)
> local f = assert(io.open("test.dat", "wb"))
> f:write("Hello")
> print("Written hello")
> f:close()
> print("Closed")
>
> The crash seems to happen on f:close(). I only get the crash when I
> compile Lua with -arch i386. Lua 5.1.5 runs fine and Lua 5.2.2 runs
> fine when compiled with (default) x86_64. If I remove f:close(), I get
> no error. I tried to play with make options compiling it statically
> and dynamically, but it always crashes if I compile with -arch i386.
>
> make command: make MYCFLAGS="-arch i386" MYLDFLAGS="-arch i386" macosx
What version of GCC are you using? Since Apple switched to Clang the default version that gets installed with Xcode has lagged considerably. We build Lua on 32 and 64 bit OS X and have not seen this crash.
--Tim