Skip to content

Instantly share code, notes, and snippets.

@ezotrank
Created January 14, 2014 06:09
Show Gist options
  • Select an option

  • Save ezotrank/8413837 to your computer and use it in GitHub Desktop.

Select an option

Save ezotrank/8413837 to your computer and use it in GitHub Desktop.
import ctypes
def crash():
'''\
crash the Python interpreter...
'''
i = ctypes.c_char('a')
j = ctypes.pointer(i)
c = 0
while True:
j[c] = 'a'
c += 1
j
crash()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment