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 126626 - Gtk-CRITICAL failure when parsing "9*(1<xor>"
Gtk-CRITICAL failure when parsing "9*(1<xor>"
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Rich Burridge
Rich Burridge
Depends on:
Blocks:
 
 
Reported: 2003-11-10 15:11 UTC by Rich Burridge
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for the problem. (777 bytes, text/plain)
2003-11-26 17:25 UTC, Rich Burridge
Details

Description Rich Burridge 2003-11-10 15:11:43 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
Comment 1 Rich Burridge 2003-11-26 17:01:52 UTC
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
Comment 2 Rich Burridge 2003-11-26 17:25:04 UTC
Created attachment 21833 [details]
Fix for the problem.
Comment 3 Rich Burridge 2003-11-26 17:35:23 UTC
Changes checked into CVS HEAD. Fixed in v4.3.24.