Post not yet marked as solved
Post marked as unsolved with 2 replies, 507 views
Hallo,
I am co-author of an open source timetabling software. This software is running many years now on Windows, Linux and MacOS without crashing.
So I compiled it with a lot of different compilers and it is always running fine. (with Windows mingw compiler, linux gcc compiler, ...)
Now I compiled it on my new Mac and noticed and it is running fine as long as i am compiling it with -o1 or -o2 or -o3 or -ofast or -os or -oz.
But as soon as I compile it with -o0, then it crashes with MacOS.
It doesn't crash if I compile with -o0 under Linux gcc compiler.
I tried to do a minimum example, but as soon as I remove some - in that situation unneeded - code, it is running fine again. So it looks like a memory limit in the compiler or something like that. I don't get it.
Any ideas how I can locate and/or fix the bug?
You can find the source here:
https://lalescu.ro/liviu/fet/forum/index.php?topic=5729.0
I compiled with the latest clang version shipped with latest MacOS Sonoma.
I am also attaching the crash report log.
Thank you for your help.
appleLog.txt.log