Skip to content

Instantly share code, notes, and snippets.

@jepler
Created April 5, 2013 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jepler/5315865 to your computer and use it in GitHub Desktop.
Save jepler/5315865 to your computer and use it in GitHub Desktop.
running the linuxcnc tests (or linuxcnc itself!) under clang with -fsanitize= produces some resuts, but I haven't found any "useful" ones yet.
$ halrun test.hal
test.hal:1: Warning: HAL_LIB: HAL will pretend that the exact base period requested is possible.
This mode is not suitable for running real hardware.
hal/components/sampler.c:429:22: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long'
==22536==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
hal/components/sampler_usr.c:255:22: runtime error: unsigned integer overflow: 18446744073709551615 + 1 cannot be represented in type 'unsigned long'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment