GNOME Bugzilla – Bug 139741
gnome-terminal crashes while inserting text
Last modified: 2004-12-22 21:47:04 UTC
gnome-terminal crashes while trying to insert big amount of text from clipboard. This bug was already filed by me to redhat's bugzilla: see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=119099 The bug is easy to reproduce ---------------------------- 1. Open http://slashdot.org/ (or http://freshmeat.net/) in Mozilla. Press Ctrl-A to select all text and copy it to clipboard. 2. Open xterm, type in export LANG=ru_RU.KOI8-R 2. Run gnome-terminal from xterm, type vim xxxx (where xxxx is non-existing file name), press i to enter insert mode in vim. 3. Click Shift+Middle_Mouse_Button in gnome-terminal to insert the text from clipboard. Nothing happens, gnome-terminal just issues a warning about invalid UTF-8 string. Click Shift+MidButton again. See app segfault. Versions of applicable software ------------------------------- [kir@kir kir]$ rpm -q glib2 gtk2 atk pango glibc gnome-terminal glibc glib2-2.4.0-1 gtk2-2.4.0-1 atk-1.6.0-1 pango-1.4.0-1 glibc-2.3.3-17 gnome-terminal-2.6.0-1 glibc-2.3.3-17 Below is the full backtrace; feel free to ask more info. Debugging session ----------------- $ gdb gnome-terminal GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-asplinux-linux-gnu"... (no debugging symbols found)... (gdb) r Starting program: /usr/bin/gnome-terminal [New Thread 1089147584 (LWP 5626)] ==== this happens after the first attempt to insert text from slashdot ==== ** (gnome-terminal:5626): WARNING **: [Invalid UTF-8] \xd2\xcf\xc9\xc9\xda\xcf\xdb\xcc\xc1 \xcf\xdb\xc9\xc2\xcb\xc1 (Invalid or incomplete multibyte or wide character) \xd0\xd2\xc9 \xd0\xd2\xc5\xcf\xc2\xd2\xc1\xda\xcf\xd7\xc1\xce\xc9\xc9 \xc4\xc1\xce\xce\xd9\xc8 \xcf\xd4 \xd0\xcf\xd4\xcf\xcd\xcb\xc1, \xcf\xd4\xc2\xd2\xc1\xd3\xd9\xd7\xc1\xc5\xd4\xd3\xd1. ==== and this is after the second attempt ==== (process:5626): GLib-CRITICAL (recursed) **: file gstring.c: line 672 (g_string_erase): assertion `pos >= 0' failed aborting... Program received signal SIGABRT, Aborted.
+ Trace 45922
Thread 1089147584 (LWP 5626)
This is due to 139030, and what you are seeing is essentially the same problem as in bug 139441. Thanks for reporting the bug. *** This bug has been marked as a duplicate of 139030 ***