A wrong argument is passed to malloc.
hanterm fixed
Created attachment 38965 [details, diff] This patch fixes the kterm emerge issue
Created attachment 41589 [details, diff] Complete fix malloc+realloc+openpty
Comment on attachment 41589 [details, diff] Complete fix malloc+realloc+openpty The preivous fix is incomplete, there is also a bad realloc prototype. Also, openpty must be used on linux to work with 2.6 kernels.
Also experienced on x86. Thanks for the patch. Title should perhaps be changed.
Changed title (not arch specific, not a gcc issue).
Fixed in CVS, thanks for the bug reports and patches.