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 703305 - [regression] GnuCash crashes on date entry
[regression] GnuCash crashes on date entry
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: User Interface General
git-master
Other Linux
: Normal critical
: ---
Assigned To: gnucash-ui-maint
gnucash-ui-maint
Depends on:
Blocks:
 
 
Reported: 2013-06-29 10:25 UTC by Aurimas Fišeras
Modified: 2018-06-29 23:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Aurimas Fišeras 2013-06-29 10:25:31 UTC
How to reproduce:
1. Open a register with some transactions.
2. Choose to duplicate a transaction.
3. Enter "2012" in the "Duplicate Transaction" dialog's date field.
4. Press TAB to switch focus. GnuCash crashes with:
GLib:ERROR:/build/buildd/glib2.0-2.37.3/./glib/gdatetime.c:1519:g_date_time_get_ymd: assertion failed: (leap == GREGORIAN_LEAP(the_year))

In 2.4.13 "2012" is converted to "1899-11-30" and there is no crash.

GnuCash compiled from git 86434e10e537c9c63aa on Ubuntu Saucy Salamander 64-bit.

With git bisect I managed to narrow it down to this range:
# good: [369171ceff55a6deaa3f4935a4fc9b64c374890e] Remove date exceptions.
# bad: [c11dfec1d018d804f7b3e39401a0a8a4ae4b16de] Eliminate use of gnc:find-file
before I ran into linking errors and had to stop.
Comment 1 Christian Stimming 2013-06-30 20:18:56 UTC
trunk r23073. Thanks for pointing this out.
Comment 2 John Ralls 2018-06-29 23:17:07 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=703305. Please update any external references or bookmarks.