BlitzMax NG (macOS) - program crashes in x64 but not x86.

Started by wombats, June 05, 2018, 21:15:24

Previous topic - Next topic

wombats

As per the title...my program crashes shortly after starting in x64 but not x86.

Using macOS High Sierra 10.13.5 with Xcode 9.4.

Any idea why this could be? It works fine on Windows.

Derron


wombats

I did. It doesn't tell me anything. It just said it "quit unexpectedly."

The BlitzMax samples do work, however...which confuses things even more. As I said, it works fine on Windows in both x86 and x64. Is there anything obvious I should check for on macOS?

Derron

You could run it via "GDB" (enable "gdb debug information generation" in the MaxIDE menus).

gdb --args executablename arg1 arg2 arg3

But it isn't installed by default - so Mac users might have better ideas to debug this application.


As samples work, and your code not - you most probably do something "interesting" - or are using a module which crashed but isn't used in the "samples".

Maybe you can narrow down "where" it crashes meanwhile? Eg. by outputting some "print" to see at which function it crashes and then fine graining there (print between the individual commands in that function/code are).


bye
Ron

therevills

Really need a code sample which reproduces the bug...

wombats

It seems to be something to do with Lua, which I am using. I'm not able to reproduce the bug in a small snippet of code, though.

Could the issue be that Lua 5.1.4 doesn't work well on x64? It does work on Windows.

But even in x86 it doesn't work for very long on macOS. Maybe macOS is more particular about how things are done than Windows?