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 343150 - gcalctool crashes when switching to scientific mode
gcalctool crashes when switching to scientific mode
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Sami Pietilä
Rich Burridge
: 348739 380989 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-05-28 03:10 UTC by Brent Smith (smitten)
Modified: 2006-11-30 18:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The Fix. (562 bytes, patch)
2006-06-01 18:26 UTC, Sami Pietilä
none Details | Review

Description Brent Smith (smitten) 2006-05-28 03:10:53 UTC
Crash is reproducible.

Backtrace was generated from '/opt/gnome2/bin/gcalctool'

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1227483456 (LWP 30115)]
0xffffe410 in __kernel_vsyscall ()
  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 812
  • #3 <signal handler called>
  • #4 strcmp
    from /lib/tls/i686/cmov/libc.so.6
  • #5 mb_mode_radio_proc
    at gtk.c line 2722
  • #6 g_cclosure_marshal_VOID__OBJECT
    at gmarshal.c line 636
  • #7 g_closure_invoke
    at gclosure.c line 490
  • #8 signal_emit_unlocked_R
    at gsignal.c line 2438
  • #9 g_signal_emit_valist
    at gsignal.c line 2197
  • #10 g_signal_emit
    at gsignal.c line 2241
  • #11 gtk_radio_action_activate
    at gtkradioaction.c line 357
  • #12 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #13 g_type_class_meta_marshal
    at gclosure.c line 567
  • #14 g_closure_invoke
    at gclosure.c line 490
  • #15 signal_emit_unlocked_R
    at gsignal.c line 2368
  • #16 g_signal_emit_valist
    at gsignal.c line 2197
  • #17 g_signal_emit
    at gsignal.c line 2241
  • #18 _gtk_action_emit_activate
    at gtkaction.c line 832
  • #19 IA__gtk_action_activate
    at gtkaction.c line 859
  • #20 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #21 g_closure_invoke
    at gclosure.c line 490
  • #22 signal_emit_unlocked_R
    at gsignal.c line 2438
  • #23 g_signal_emit_valist
    at gsignal.c line 2197
  • #24 g_signal_emit
    at gsignal.c line 2241
  • #25 IA__gtk_widget_activate
    at gtkwidget.c line 3932
  • #26 IA__gtk_menu_shell_activate_item
    at gtkmenushell.c line 1024
  • #27 gtk_menu_shell_button_release
    at gtkmenushell.c line 630
  • #28 gtk_menu_button_release
    at gtkmenu.c line 2619
  • #29 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 83
  • #30 g_type_class_meta_marshal
    at gclosure.c line 567
  • #31 g_closure_invoke
    at gclosure.c line 490
  • #32 signal_emit_unlocked_R
    at gsignal.c line 2476
  • #33 g_signal_emit_valist
    at gsignal.c line 2207
  • #34 g_signal_emit
    at gsignal.c line 2241
  • #35 gtk_widget_event_internal
    at gtkwidget.c line 3901
  • #36 IA__gtk_widget_event
    at gtkwidget.c line 3707
  • #37 IA__gtk_propagate_event
    at gtkmain.c line 2186
  • #38 IA__gtk_main_do_event
    at gtkmain.c line 1420
  • #39 gdk_event_dispatch
    at gdkevents-x11.c line 2314
  • #40 g_main_dispatch
    at gmain.c line 1916
  • #41 g_main_context_dispatch
    at gmain.c line 2466
  • #42 g_main_context_iterate
    at gmain.c line 2547
  • #43 g_main_loop_run
    at gmain.c line 2751
  • #44 IA__gtk_main
    at gtkmain.c line 999
  • #45 start_tool
    at gtk.c line 3465
  • #46 do_calctool
    at calctool.c line 1219
  • #47 main
    at gtk.c line 502

Comment 1 Rich Burridge 2006-05-28 14:31:29 UTC
Gcalctool crashed in arithmetic operator precedence
mode, so transferring to Sami for further investigation.

Brent, it would be helpful if you could tell us what
version of gcalctool this is (Help->About from the menu bar).

It would also be useful to know that you were trying to do,
i.e. the calculation you were trying to make of the gcalctool
operation you were trying to do. It looks like you were trying
to change modes, but it would be helpful to know what was in the
display.

Thanks.
Comment 2 Brent Smith (smitten) 2006-05-28 14:38:54 UTC
Rich, 

   The version is 5.8.14, compiled from CVS HEAD yesterday.  To reproduce simply open gcalctool and switch to scientific mode.

This may be a GTK+ bug, I think I'm seeing a lot of issues with 2.9.2.
Comment 3 Rich Burridge 2006-05-28 15:25:30 UTC
Thanks Brent. I'm not seeing the problem here (GNOME 2.14
and gcalctool CVS HEAD), but I'm not using Gtk+ v2.9.2.
Comment 4 Sami Pietilä 2006-05-28 22:21:59 UTC
I am able to reproduce the problem with gcalctool CVS HEAD and GTK 2.8.6. The cause is still unknown. Perhaps something went wrong when I added undo/redo menu entries.
Comment 5 Daniel Macks 2006-06-01 02:09:53 UTC
Reproducible with gcalctool-5.8.13 and gtk+-2.6.10 on OS X 10.3 when changing View to any Basic/Advanced/Financial that is not currently selected. I can give a core dump if you want it.
Comment 6 Sami Pietilä 2006-06-01 18:26:01 UTC
Created attachment 66614 [details] [review]
The Fix.

Whoops. =)

This is the fix to the crash problem.
Comment 7 Rich Burridge 2006-06-01 19:12:25 UTC
Thanks Sami. Change checked into CVS HEAD. I'm also bumped
the version number in configure.in to 5.8.15.
Comment 8 Daniel Macks 2006-06-01 20:37:22 UTC
Confirming that Sami's patch fixes 5.8.13 for me.
Comment 9 Rich Burridge 2006-07-26 14:52:54 UTC
*** Bug 348739 has been marked as a duplicate of this bug. ***
Comment 10 Rich Burridge 2006-11-30 18:54:37 UTC
*** Bug 380989 has been marked as a duplicate of this bug. ***