After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 97103 - Tab titles crash gnome-terminal
Tab titles crash gnome-terminal
Status: RESOLVED DUPLICATE of bug 95786
Product: gnome-terminal
Classification: Core
Component: general
2.0.x
Other Linux
: High critical
: ---
Assigned To: Havoc Pennington
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-10-29 09:02 UTC by Ilkka Tuohela
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2



Description Ilkka Tuohela 2002-10-29 09:02:55 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.
Comment 1 Heath Harrelson 2002-11-06 12:33:48 UTC
Could you possibly get a stack trace using bug-buddy or gdb and paste
it into the bug to help us debug?
Comment 2 Heath Harrelson 2002-11-06 14:36:28 UTC
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

Thread 1 (Thread 16384 (LWP 22889))

  • #0 __wait4
  • #1 __DTOR_END__
    from /lib/libc.so.6
  • #2 waitpid
    from /lib/libpthread.so.0
  • #3 libgnomeui_segv_handle
    at gnome-ui-init.c line 647
  • #4 __pthread_sighandler
    from /lib/libpthread.so.0
  • #5 <signal handler called>
  • #6 __kill
  • #7 pthread_kill
    from /lib/libpthread.so.0
  • #8 raise
    from /lib/libpthread.so.0
  • #9 abort
    from /lib/libc.so.6
  • #10 g_logv


Comment 3 Heath Harrelson 2002-11-06 14:52:12 UTC
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 ***