GNOME Bugzilla – Bug 101650
creating Scheduled transaction after "find" cause crash
Last modified: 2018-06-29 20:23:25 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
+ Trace 31895
------- 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.
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].
*** Bug 102108 has been marked as a duplicate of this bug. ***
Now reproducible with the correct LANG and po-file. Investigating.
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.
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 :-\
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.
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.