I can cause xterm to hang reliably with the following command: perl -mDigest::MD5 -e 'print pack("H*",Digest::MD5::md5("test"))' A control-middlebutton-"Do Full Reset" is needed to get out of this state. Konsole doesn't have this problem (but Konsole takes too much screen real-estate). Anyway, just thought it was worth a mention... Regards, Brian.
On Fri, Nov 26, 2004 at 02:07:51PM +0000, Brian Candler wrote:> I can cause xterm to hang reliably with the following command: > > perl -mDigest::MD5 -e 'print pack("H*",Digest::MD5::md5("test"))' > > A control-middlebutton-"Do Full Reset" is needed to get out of this state.It's not a bug in xterm on itself. If you cat a binary file you might end up in the same situation. [~] edwin@k7>perl -mDigest::MD5 -e 'print pack("H*",Digest::MD5::md5("test"))' | hexdump -C 00000000 9f 4d f1 3c ae 73 67 46 |.M.<.sgF| This shows that it outputs some high-ascii data, which causes the xterm to stop output. If you do "echo hi > /tmp/aaa" while in this state (be alert for typos), you see that it still accepts commands, but doesn't show them anymore. In other words, don't worry too much about it but make sure you redirect binary output to files or pipes and not the console. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/
----- Forwarded message from Andy Farkas <andy@bradfieldprichard.com.au> ----->-------------------------------------------------------------------------- >>$ perl -mDigest::MD5 -e 'print pack("H*",Digest::MD5::md5("test"))' >ert >>$ wc ert >> 0 1 8 ert >>$ hexdump -C ert >>00000000 9f 4d f1 3c ae 73 67 46 |.M.<.sgF| >>00000008 >>$ cat ert >> >>At this point it hangs; sending ^Q doesn't help. But if you press cursor-up >>a few times it comes back to life....> >Oddly, a real vt220 would do the same thing, but neither has any use for >the content of the string.A real VT220 does NOT hang. It prints "Mn<?sgF" (the n has a ~ on top, and the ? is backwards). I get a prompt back straight away, and everything stays normal. -andyf (you may post this to the list) ----- End forwarded message -----