Skip to content

Instantly share code, notes, and snippets.

@rahulg
Created October 4, 2012 06:22
Show Gist options
  • Save rahulg/3831765 to your computer and use it in GitHub Desktop.
Save rahulg/3831765 to your computer and use it in GitHub Desktop.
Free segfaults for everyone!
#define _x_segfault() \
__asm__ __volatile__ ("movq $0, %%r11\n" \
"movq (%%r11), %%r10\n" \
: \
: \
: "%r11", "%r10" \
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment