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 101650 - creating Scheduled transaction after "find" cause crash
creating Scheduled transaction after "find" cause crash
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Scheduled Transactions
unspecified
Other other
: Urgent major
: ---
Assigned To: Josh Sled
Josh Sled
: 102108 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-12-20 00:02 UTC by Nigel Titley
Modified: 2018-06-29 20:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nigel Titley 2002-12-20 00:03:12 UTC
Package: GnuCash
Severity: normal
Version: 1.7.5
Synopsis: creating Scheduled transaction after "find" cause crash
Bugzilla-Product: GnuCash
Bugzilla-Component: Scheduled Transactions

Description:
Used the "find" button to find a transaction, then selected it. Pressed "Schedule" on the tool bar and changed frequency to "annually". Gnucash crashed.


Debugging Information:

(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...[New Thread 1024 (LWP 16241)]
0x420b48b9 in wait4 () from /lib/i686/libc.so.6
  • #0 wait4
    from /lib/i686/libc.so.6
  • #1 __DTOR_END__
    from /lib/i686/libc.so.6
  • #2 gnome_segv_handle
    from /usr/lib/libgnomeui.so.32
  • #3 pthread_sighandler
    from /lib/i686/libpthread.so.0
  • #4 <signal handler called>
  • #5 strlen
    from /lib/i686/libc.so.6
  • #6 g_printf_string_upper_bound
    from /usr/lib/libglib-1.2.so.0
  • #7 g_strdup_vprintf
    from /usr/lib/libglib-1.2.so.0
  • #8 g_string_sprintfa_int
    from /usr/lib/libglib-1.2.so.0
  • #9 g_string_sprintf
    from /usr/lib/libglib-1.2.so.0
  • #10 xaccFreqSpecGetFreqStr
    at FreqSpec.c line 950
  • #11 sxftd_update_example_cal
    at dialog-sx-from-trans.c line 704
  • #12 sxftd_freq_option_changed
    at dialog-sx-from-trans.c line 559
  • #13 gtk_marshal_NONE__NONE
    from /usr/lib/libgtk-1.2.so.0
  • #14 gtk_handlers_run
    from /usr/lib/libgtk-1.2.so.0
  • #15 gtk_signal_real_emit
    from /usr/lib/libgtk-1.2.so.0
  • #16 gtk_signal_emit
    from /usr/lib/libgtk-1.2.so.0
  • #17 gtk_menu_shell_activate_item
    from /usr/lib/libgtk-1.2.so.0
  • #18 gtk_menu_shell_button_release
    from /usr/lib/libgtk-1.2.so.0
  • #19 gtk_marshal_BOOL__POINTER
    from /usr/lib/libgtk-1.2.so.0
  • #20 gtk_signal_real_emit
    from /usr/lib/libgtk-1.2.so.0
  • #21 gtk_signal_emit
    from /usr/lib/libgtk-1.2.so.0
  • #22 gtk_widget_event
    from /usr/lib/libgtk-1.2.so.0
  • #23 gtk_propagate_event
    from /usr/lib/libgtk-1.2.so.0
  • #24 gtk_main_do_event
    from /usr/lib/libgtk-1.2.so.0
  • #25 gdk_event_dispatch
    from /usr/lib/libgdk-1.2.so.0
  • #26 g_main_dispatch
    from /usr/lib/libglib-1.2.so.0
  • #27 g_main_iterate
    from /usr/lib/libglib-1.2.so.0
  • #28 g_main_run
    from /usr/lib/libglib-1.2.so.0
  • #29 gtk_main
    from /usr/lib/libgtk-1.2.so.0
  • #30 gnc_ui_start_event_loop
    at top-level.c line 529
  • #31 gw__tmp773_gnc_ui_start_event_loop_wrapper
    at gw-gnc.c line 276
  • #32 scm_ceval
    from /usr/lib/libguile.so.6
  • #33 scm_ceval
    from /usr/lib/libguile.so.6
  • #34 scm_ceval
    from /usr/lib/libguile.so.6
  • #35 scm_ceval
    from /usr/lib/libguile.so.6
  • #36 scm_eval_3
    from /usr/lib/libguile.so.6
  • #37 scm_eval_x
    from /usr/lib/libguile.so.6
  • #38 scm_shell
    from /usr/lib/libguile.so.6
  • #39 invoke_main_func
    from /usr/lib/libguile.so.6
  • #40 scm_internal_lazy_catch
    from /usr/lib/libguile.so.6
  • #41 scm_boot_guile_1
    from /usr/lib/libguile.so.6
  • #42 scm_boot_guile
    from /usr/lib/libguile.so.6
  • #43 gdb_eval
  • #44 __libc_start_main
    from /lib/i686/libc.so.6
  • #0 wait4
    from /lib/i686/libc.so.6
  • #1 __DTOR_END__
    from /lib/i686/libc.so.6
  • #2 gnome_segv_handle
    from /usr/lib/libgnomeui.so.32
  • #3 pthread_sighandler
    from /lib/i686/libpthread.so.0
  • #4 <signal handler called>
  • #5 strlen
    from /lib/i686/libc.so.6
  • #6 g_printf_string_upper_bound
    from /usr/lib/libglib-1.2.so.0
  • #7 g_strdup_vprintf
    from /usr/lib/libglib-1.2.so.0




------- Bug moved to this database by unknown@bugzilla.gnome.org 2002-12-19 19:03 -------

Reassigning to the default owner of the component, jsled-gnomebugs@asynchronous.org.

Comment 1 Josh Sled 2002-12-22 00:54:42 UTC
This sounds nasty ... unfortunately I can't reproduce. Please describe
in more detail the steps used.  Text strings entered, search-criteria
used, &c.  If allowable, please mail me the file you expereience this
on.  As well, see if you can reproduce with CVS, or alternatively the
next release [1.7.6].
Comment 2 Josh Sled 2002-12-28 20:30:43 UTC
*** Bug 102108 has been marked as a duplicate of this bug. ***
Comment 3 Josh Sled 2002-12-28 22:33:17 UTC
Now reproducible with the correct LANG and po-file.  Investigating.
Comment 4 Josh Sled 2002-12-28 23:01:29 UTC
Found.  The en_GB.po changes the order of the format params as the
comment suggests, but unfortunately g_string_sprintf can't handle that
paradigm.  It ignores the re-ordering indices ["%3$u ... %2$s"] and
tries to map the originally-ordered params [string and int] into the
format-specifiers [int and string].  When it attempts to find the
string pointed to by the int [3rd param], it crashes.

I think the resolution is to not use g_string_sprintf, which I'll work
towards.
Comment 5 Christian Stimming 2002-12-29 12:40:13 UTC
On the gnome-i18n list, somebody recently noted that "the recently 
released glib-2.1.3 portably supports positional parameters". 

http://lists.gnome.org/archives/gnome-i18n/2002-December/msg00022.html

This doesn't help for now, but maybe for a later gnome2 port :-\
Comment 6 Josh Sled 2002-12-29 20:35:18 UTC
Fixed in 2002.12.29 commit; we now use snprintf interally to construct
the string, then g_string_sprintf it in to the output-param.
Comment 7 John Ralls 2018-06-29 20:23:25 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=101650. Please update any external references or bookmarks.