Crash in CallCDeclFunction*/asm __volatile__ on MacOS 32-bit and not in 64-bit

Started by
12 comments, last by simong 10 years, 1 month ago

I think only a low-level debugging session would allow us to identify the cause. It would be necessary to examine at exactly which location the values become incorrect and the stack becomes misaligned.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

Hi Andreas,

I'm afraid asm/misaligned stack/... goes a bit beyond my understanding.

I uploaded a series of screenshots showing a few more steps and some values, but as I'm not sure what I'm looking for I don't know if it's any helpful.

On the other hand what I can do is ask for some feedback on libcinder forum and try to make some people test the xcode project. Just to make sure I'm not crazy and because it might be easier to find people with the same platform/frameworks/libraries over there.

Let me know if there's something I could do.

Thanks again!

From the screenshots I can see that everything is correct up until the inline assembler code executes. The values passed into the CallCDeclFunction are as they should be, which would indicate that the problem really is somewhere within the inline assembler code.

If you can step through the inline assembler code instruction by instruction and show me the values of the affected registers, much like how you did with the C++ code before it I may be able to spot the problem.

Perhaps if you'd allow me to login to your machine remotely (for example, using something like logmein) I could do the debugging myself.

I very much doubt the problem is related to libcinder (unless they too have some assembler code that might mess with the CPU registers).

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Sorry for the late reply Andreas!

I finally ended up switching back to 64-bit.

I was talking about posting this to cinder forum to have people test it, just to make sure I didn't do something wrong. But as it seems to be really low level related it might be more on the compiler/xcode side...

If you still want to access my machine, I'll be happy to find a way to do that. I can give you my email address so we can figure out how to do it.

Thanks for the help anyway!

This topic is closed to new replies.

Advertisement