I found a way to reproduce this hang reliably. It happens with latest Emacs (today's) with icicles, tabbar and eshell. The problem is related to scrolling. I attach the needed ~/.emacs and a file with some debugging information (under CFLAGS="-g").