zsh 4.0.6 make a segmentation fault when you try to use its terminfo functions. Reproduce the bug: echo $terminfo[khome] As I known, the same bug was in the Debian, and they solve it, so the zsh patch from Debian may contain the solution.
Hey Janos Added the patch and bumped the revision. The new ebuild is zsh-4.0.6-r2. Is it still broken on your box? -phoen][x-
The zsh-4.0.6-r2 works for me fine.