gnucash coredump after 42.2 -> 42.3 upgrade

I upgraded from 42.2 to 42.3 a couple of weeks ago - now gnucash won’t run; it coredumps on startup :frowning: There are no pending updates, and the only non-standard repo I have is Packman. I can still access the gnucash data file from another system (Windows) with no problems.

> zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.

#  | Alias                            | Name                              | Enabled | GPG Check | Refresh
 1 | Gnome_Apps                       | Gnome Apps                        | Yes     | (r ) Yes  | Yes    
 2 | OpenCPN                          | Application:Geo:OpenCPN           | No      | ----      | ----   
 3 | Packman                          | Packman Repository                | Yes     | (r ) Yes  | Yes    
 4 | google-earth                     | google-earth                      | No      | ----      | ----   
 5 | | libdvdcss repository              | No      | ----      | ----   
 6 | repo-debug                       | openSUSE_Leap_42.3-Debug          | Yes     | (r ) Yes  | Yes    
 7 | repo-debug-update                | openSUSE_Leap_42.3-Update-Debug   | Yes     | (r ) Yes  | Yes    
 8 | repo-oss                         | openSUSE_Leap_42.3-Oss            | Yes     | (r ) Yes  | Yes    
 9 | repo-source                      | openSUSE_Leap_42.3-Source         | Yes     | (r ) Yes  | Yes    
10 | repo-update                      | openSUSE_Leap_42.3-Update         | Yes     | (r ) Yes  | Yes    
11 | repo-update-non-oss              | openSUSE_Leap_42.3-Update-non-oss | Yes     | (r ) Yes  | Yes    

> zypper se -v --provides -x /usr/bin/gnucash
Loading repository data...
Reading installed packages...

S  | Name    | Type    | Version     | Arch   | Repository            
i+ | gnucash | package | 2.6.18-98.1 | x86_64 | Gnome Apps            
    filelist: /usr/bin/gnucash
v  | gnucash | package | 2.6.16-4.1  | x86_64 | openSUSE_Leap_42.3-Oss
    filelist: /usr/bin/gnucash
i+ | gnucash | package | 2.6.18-98.1 | x86_64 | (System Packages)     
    filelist: /usr/bin/gnucash

If I “upgrade” to the GNOME version, it crashes the same way.
If I open a new blank data file, it works with either version.

CRITICAL NOTE: The 2.6.16-98.1 version worked correctly on LEAP 42.2 - that’s the version I was running prior to the upgrade

How can we debug this?


======== Trace =============
Found Finance::Quote version 1.37
*** Error in `gnucash’: double free or corruption (out): 0x00007ffc2cc912d0 ***
======= Backtrace: =========

In addition, a locally built copy from the 2.6.18 source crashes the same way

After some discussion on the gnucash mailing list, I received the following from one of the gnucash develoeprs:

GnuCash 2.6 uses an obsolete version of the WebKit library that hasn’t been updated in several years. It shouldn’t be used for anything besides GnuCash because it has a huge number of known exploits that have been fixed in the current WebKit2. The actual crash was triggered in a Java plugin named IcedTeaPlugin. I don’t know anything about that, but I suspect that it requires the WebKit2 API and crashes when WebKit1 tries to load it. You’ll have to find out from the OpenSuSE community how to adjust your system so that that doesn’t happen.

So I assume that this is an accurate view of the problem, but how do I update my 42.3 system to make this work?

Second: Why doesn’t it fail for EVERYONE when running reports? And why did it work fine in 42.2? :slight_smile:



FYI, this was fixed by removing the openjdk-plugin package from the system. I had both 1.7.0 and 1.8.0 installed; with them BOTH removed, the distro version of gnucash runs normally. With EITHER one installed, gnucash crashes any time you try to run a report.


Given that, GnuCash doesn’t seem to need Java and therefore doesn’t need openJDK, it seems strange that, an installed Java plugin was causing the crash.

Yes, the required Gtk WebKit library ( is quite old but, possibly not the root cause.

The “requires” list of the AqBanking package also doesn’t need Java. In fact, the only GnuCash which needs Java (openJDK) is the version for Android systems. There is a Java application to convert GnuCash XML to the QIF or IIF file format needed by QuickBooks but, that’s about it.

There is a “BackupGnuCash” application written in Java. Do you have it installed and, is there a plugin for GnuCash?

See the above quote from the gnucash dev team - I suspect from the trace that the webkit library uses Java and the plugins there (but I’m not a developer at ALL - just a guess :-). The crash actually occurs when running the Reports tool . . . which is using webkit. I don’t have BackupGnuCash, and I don’t have any gc plugins.

I concur.
Webkit is a web browser engine that still supports Netscape (NPAPI) plugins (unlike Chrome/Chromium, or even Firefox in the latest versions), like openjdk-plugin is…

It shouldn’t crash of course… But that probably won’t be fixed as has been dropped from the distribution meanwhile, being old and outdated.

Then, we’re left with the issue of the IcedTea plugin needing the WebKit2 library but, GnuCash version 2.6 needs an obsolete WebKit library version.
On this Leap 42.3 system, the following WebKit2 libraries are installed:

  • libwebkit2gtk-4_0-37
  • webkit2gtk-4_0-injected-bundles

(Both required by “gnome-online-accounts” – I’ve no idea why the GNOME package was installed – I’m a KDE user.)