megakilo / FreeRTOS-Sim

FreeRTOS simulator for POSIX
GNU General Public License v2.0
94 stars 74 forks source link

OSX - terminates with assertion, or else appears to hang after a few seconds #4

Open DavidAntliff opened 6 years ago

DavidAntliff commented 6 years ago

Commit 8d31107a2529327dfb682a9db80f79d900f6bed8 with make "out of the box" on OSX 10.12.6 produces the following output and terminates after a few seconds:

$ ./FreeRTOS-Sim 
Running as PID: 4367
Timer Resolution for Run TimeStats is 100 ticks per second.
OK - 2500
[ASSERT] /Users/david/git/github/megakilo/FreeRTOS-Sim.git/Demo/TimerDemo.c:716

I ran it again and it produced the following output and then appeared to hang (no additional output for at least 60 seconds):

Running as PID: 4517
Timer Resolution for Run TimeStats is 100 ticks per second.
OK - 2500
OK - 5000

CTRL-C kills it.

This also happened the third time I ran it.

On the fourth attempt, I got this before it stalled:

Running as PID: 4670
Timer Resolution for Run TimeStats is 100 ticks per second.
OK - 2500
OK - 5000
OK - 7500
OK - 10000
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
CaiNiaoLucifer commented 6 years ago

Same with DavidAntliff