Skip to content

Instantly share code, notes, and snippets.

@mzyy94
Created December 18, 2013 04:06
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 mzyy94/8017126 to your computer and use it in GitHub Desktop.
Save mzyy94/8017126 to your computer and use it in GitHub Desktop.
bus_error_test.cの出力結果
Last login: Wed Dec 18 11:19:03 on ttys001
mzyy94:~ mzyy94$ cd /Volumes/RamDisk/
mzyy94:RamDisk mzyy94$ gcc bus_error_test.c
mzyy94:RamDisk mzyy94$ ./a.out
ARRAY
mode: [auto/set]
Segmentation fault: 11
mode: [auto/read]
Segmentation fault: 11
mode: [const/read]
Segmentation fault: 11
mode: [static/set]
Bus error: 10
mode: [static/read]
Bus error: 10
mode: [register/set]
Segmentation fault: 11
mode: [register/read]
Segmentation fault: 11
mode: [volatile/set]
Segmentation fault: 11
mode: [volatile/read]
Segmentation fault: 11
mode: [normal/set]
Segmentation fault: 11
mode: [normal/read]
Segmentation fault: 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment