Created
June 17, 2014 15:24
-
-
Save gicmo/503e2334c7dc260bc7b3 to your computer and use it in GitHub Desktop.
Sample program to trigger a crash in Accelerate framework on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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