Skip to content

Instantly share code, notes, and snippets.

@gicmo
Created June 17, 2014 15:24
Show Gist options
  • Save gicmo/503e2334c7dc260bc7b3 to your computer and use it in GitHub Desktop.
Save gicmo/503e2334c7dc260bc7b3 to your computer and use it in GitHub Desktop.
Sample program to trigger a crash in Accelerate framework on OSX
//clang -Wall -std=c11 -framework Accelerate -o nrm2_crash nrm2_crash.c
#include <Accelerate/Accelerate.h>
int
main(int argc, char **argv)
{
double x[2] = {1, 1};
double y = cblas_dnrm2(2, x, -1);
printf("%lf\n", y);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment