GNOME Bugzilla – Bug 97103
Tab titles crash gnome-terminal
Last modified: 2004-12-22 21:47:04 UTC
Sending multiple escaped %s string to gnome-terminal crashes it if tabs are used: seems that the bug is in terminal's tab title handling. Sending string %s%s%s%s%s to gnome-terminal's titlebar (with echo, using escape sequences) shows in normal titlebar without tabs the text incorrectly as -[27m-[27m-[27m-[27m-[27m. If current terminal window doesn't have any tabs it doesn't crash. Same string crashes the terminal (and because of terminal factory, all terminals...) instantly, if current terminal has any tabs. Five %s strings is shortest one I could use to crash it, but for example %s%s%s%sfoo does same thing: you need just a long enough string. This problem was found when using gnome 2.1.0 developer packages, but I'm quite sure it applies to 2.0.x versions as well.
Could you possibly get a stack trace using bug-buddy or gdb and paste it into the bug to help us debug?
User mistakenly put trace in another bug. Here it is: Backtrace was generated from '/usr/local/bin/gnome-terminal' [New Thread 16384 (LWP 22889)] 0x40a692e9 in __wait4 () at __wait4:-1 in __wait4
+ Trace 29937
Thread 1 (Thread 16384 (LWP 22889))
This appears to be a duplicate of bug 97199 / bug 95786, but this trace is better, since it shows the text that's causing the crash. Thanks again, Hile! *** This bug has been marked as a duplicate of 95786 ***