GNOME Bugzilla – Bug 126626
Gtk-CRITICAL failure when parsing "9*(1<xor>"
Last modified: 2004-12-22 21:47:04 UTC
Summary pretty much covers it. When I enter: 9*(1 then click on the Xor button, I get: (gcalctool:4590): Gtk-CRITICAL **: file gtktextbuffer.c: line 543: assertion `g_utf8_validate (text, len, NULL)' failed
Stack trace is: Gtk-CRITICAL **: file gtktextbuffer.c: line 543: assertion `g_utf8_validate (text, len, NULL)' failed aborting... signal ABRT (Abort) in _lwp_kill at 0xfde1e444 0xfde1e444: _lwp_kill+0x0008: bgeu,a _lwp_kill+0x1c Current function is set_display 1854 NULL); t@1 l@1 <2> where current thread: t@1 [1] _lwp_kill(0x0, 0x6, 0x5, 0xfde3c000, 0x81010100, 0xff00), at 0xfde1e444 [2] raise(0x6, 0x6, 0xffbfc8c0, 0xfef71b38, 0xffbfc940, 0x0), at 0xfddccd88 [3] abort(0xfef71b34, 0xa, 0xffbfc98f, 0x0, 0x0, 0x0), at 0xfddb5c30 [4] g_logv(0xfef71b34, 0x8, 0xfef71b38, 0xffbfce48, 0x0, 0xffbfcd09), at 0xfe9f2ff4 [5] g_log(0xfef71b34, 0x8, 0xfef71b38, 0xff04a178, 0x21f, 0xff04a188), at 0xfe9f30f8 [6] gtk_text_buffer_emit_insert(0xee9f8, 0xffbfcfdc, 0x7c74c, 0xffffffff, 0xffbfcfdc, 0x3ca80), at 0xfee59244 [7] gtk_text_buffer_insert(0xee9f8, 0xffbfcfdc, 0x7c74c, 0xffffffff, 0x6f6e0000, 0x6f6e0000), at 0xfee594f8 [8] gtk_text_buffer_insert_with_tags_by_name(0xee9f8, 0xffbfcfdc, 0x7c74c, 0xffffffff, 0x578b4, 0x0), at 0xfee5b610 =>[9] set_display(str = 0x7c74c "9*(1\x"), line 1854 in "gtk.c" [10] paren_disp(c = 'ü'), line 436 in "display.c" [11] do_paren(), line 705 in "functions.c" [12] do_pending(), line 756 in "functions.c" [13] button_proc(widget = 0x14c190, user_data = 0x1e), line 462 in "gtk.c" Code in gcalctool causing the message is: gtk_text_buffer_insert_with_tags_by_name(buffer, &end, str != NULL && strlen(str) != 0 ? str : " ", -1, "x-large", NULL); in the set_display() routine in gtk.c
Created attachment 21833 [details] Fix for the problem.
Changes checked into CVS HEAD. Fixed in v4.3.24.