inside the python prompt: Python 2.7.2+ (default, Oct 4 2011, 20:03:08) [GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. > > > import qrencode > > > qrencode.encode('a'*3000) > > > zsh: segmentation fault python