Ok, on *another* machine, I *do* still have the same problem. Seems to be the same thing that Kevin has. I saw that it references xterm.c so I (foolishly) thought it might have something to do with the TERM environment variable and also got a backtrace with
env -i DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gdb /usr/bin/emacs-snapshot-gtk 2>&1 | tee ....
which does not seem to make much of a difference as I should have figured out immediately. Attaching both anyway.
Ok, on *another* machine, I *do* still have the same problem. Seems to be the same thing that Kevin has. I saw that it references xterm.c so I (foolishly) thought it might have something to do with the TERM environment variable and also got a backtrace with
env -i DISPLAY=$DISPLAY XAUTHORITY= $XAUTHORITY gdb /usr/bin/ emacs-snapshot- gtk 2>&1 | tee ....
which does not seem to make much of a difference as I should have figured out immediately. Attaching both anyway.