matatk / agrip

AGRIP AudioQuake and Level Description Language (LDL)
http://agrip.org.uk
Other
16 stars 6 forks source link

Crash when running ZQCC on Mavericks #19

Closed matatk closed 10 years ago

matatk commented 10 years ago

When supplying the name of any progs.src file via the command line, e.g. "zqcc -progs spprogs.src", it crashes via a segfault on this line, on Mavericks (It did not crash on Mountain Lion): https://github.com/matatk/agrip/blob/master/audioquake/zq-repo/zqcc/cmdlib.cpp#L204

When specifying no parameters, it appears to function and compile the gamecode as normal (using "progs.src" as the list of files to compile, as default).

matatk commented 10 years ago

So far this is the only article I've found that may be of any use: http://www.jasonamyers.com/mavericks-clang/ -- looks like a good place to start; thanks to the author!

Edit: undefining the functions didn't seem to help (not really a surprise as I'm using GCC now...)

matatk commented 10 years ago

Further investigation revealed the bug is actually here:

https://github.com/matatk/agrip/blob/master/audioquake/zq-repo/zqcc/cmdlib.cpp#L412