Official Ubuntu GnuCash package segfaults on Ubuntu 14.04

Herbert Mühlburger mail at muehlburger.at
Wed Apr 30 17:07:24 EDT 2014


Hi Colin,

Am 2014-04-29 17:13, schrieb Colin Law:

>> Some additional information on what might create this issue:
>>
>>  - the version of libdbi-dev on Ubuntu 13.10 was 0.8.4-6
>>  - the version of libdbi-dev on Ubuntu 14.04 is 0.9.0-1
>>
>> There are some deprecated functions which also prevent GnuCash from
>> successfuly running the test suite on the current master branch.
>>

> I have had no problems compiling and running 2.6.3 on Ubuntu 14.04
> (from the source tarball).  What is it that is causing you difficulty?

Compiling the latest version of GnuCash works fine. But if I run it I
always the the same segmentation fault.

I cloned the official gnucash repository and followed the instruction
for compiling it for Ubuntu 14.04

./autogen.sh
./configure --prefix=/opt/gnucash --enable-compile-warnings
--with-html-engine=webkit --enable-dbi
make
sudo make install

I think opening an sqlite3 gnucash-file results in the segfault. In the
attached file you can see the full backtrace after the segfault. It
seems that the libdbi-dir is not set properly by gnucash allthough
everything (libdbi-dev, ...) is installed properly on my ubuntu box.

Thank's a lot and kind regards,
Herbert.
-------------- next part --------------
Program received signal SIGSEGV, Segmentation fault.
dbi_initialize_r (driverdir=driverdir at entry=0x0, pInst=pInst at entry=0x0) at ../../src/dbi_main.c:160
160     ../../src/dbi_main.c: Datei oder Verzeichnis nicht gefunden.
(gdb) backtrace full
#0  dbi_initialize_r (driverdir=driverdir at entry=0x0, pInst=pInst at entry=0x0) at ../../src/dbi_main.c:160
        inst = <optimised out>
        dir = <optimised out>
        driver_dirent = 0x7fffffffc2d0
        statbuf = {st_dev = 140736785787472, st_ino = 6, st_nlink = 140736785783256, st_mode = 3592392704, st_uid = 32767, st_gid = 4294951904, 
          __pad0 = 32767, st_rdev = 140737351936639, st_size = 140733193388033, st_blksize = 0, st_blocks = 124, st_atim = {tv_sec = 140737351955409, 
            tv_nsec = 140737488339792}, st_mtim = {tv_sec = 140737488339800, tv_nsec = 140737488339816}, st_ctim = {tv_sec = 0, tv_nsec = 140737488339912}, 
          __unused = {0, 0, 140737351954948}}
        fullpath = "\250\237\037\326\377\177\000\000ow\213\361\377\177\000\000\000\000\000\000\000\000\000\000\372,\336\367\377\177\000\000\000\000\000\000\000\000\000\000\004\262\336\367\377\177\000\000h\252\037\326\377\177\000\000P\212\222\366\001", '\000' <repeats 11 times>, "\372,\336\367\377\177\000\000\340\352\236\365\377\177\000\000\004\262\336\367\377\177\000\000\001\000\000\000\000\000\000\000C\212\222\366\001", '\000' <repeats 11 times>, "\372,\336\367\377\177\000\000x\333\377\377\377\177\000\000\004\262\336\367\377\177\000\000\000I\250\000\000\000\000\000\066\212\222\366\001", '\000' <repeats 11 times>, "\372,\336\367\377\177\000\000\220\304\377\377\377\177\000\000\004\262\336\367\377\177\000\000\270K\250\000\000\000\000\000"...
        effective_driverdir = <optimised out>
        num_loaded = <optimised out>
        driver = <optimised out>
        prevdriver = <optimised out>
#1  0x00007fffd5de8378 in gnc_module_init_backend_dbi () at gnc-backend-dbi.c:1872
        prov = <optimised out>
        driver_dir = 0x0
        num_drivers = <optimised out>
        have_sqlite3_driver = 0
        have_mysql_driver = 0
        have_pgsql_driver = 0
        __FUNCTION__ = "gnc_module_init_backend_dbi"
#2  0x00007ffff6ca6e04 in qof_load_backend_library (directory=directory at entry=0xa8a8b0 "/opt/gnucash/lib/gnucash", module_name=<optimised out>)
    at qofbackend.cpp:254
        fullpath = 0xa8a8e0 "P\274\250"
        backend = 0xa8bbd0
        module_init_func = 0x7fffd5de8720 <qof_backend_module_init>
        __PRETTY_FUNCTION__ = "gboolean qof_load_backend_library(const char*, const char*)"
#3  0x00007ffff7347253 in gnc_engine_init_part2 () at gnc-engine.c:105
        libdir = 0xa8a8b0 "/opt/gnucash/lib/gnucash"
        uninstalled = <optimised out>
        libs = {{subdir = 0x7ffff73aa910 "dbi", lib = 0x7ffff73aa901 "gncmod-backend-dbi", required = 1}, {subdir = 0x7ffff73aa923 "xml", 
            lib = 0x7ffff73aa914 "gncmod-backend-xml", required = 1}, {subdir = 0x0, lib = 0x0, required = 0}}
        lib = 0x7ffff75e5d00 <libs>
        pkglibdir = 0xa8a8b0 "/opt/gnucash/lib/gnucash"
        builddir = <optimised out>
---Type <return> to continue, or q <return> to quit---
#4  gnc_engine_init (argc=0, argv=argv at entry=0x0) at gnc-engine.c:142
No locals.
#5  0x00007ffff734f05f in libgncmod_engine_gnc_module_init (refcount=<optimised out>) at gncmod-engine.c:46
No locals.
#6  0x00007ffff70e2e96 in gnc_module_load_common (module_name=module_name at entry=0x7ffff761e7a9 "gnucash/engine", iface=iface at entry=0, 
    optional=optional at entry=0) at gnc-module.c:519
        initfunc = 0x7ffff734f050 <libgncmod_engine_gnc_module_init>
        info = 0x871770
        gmodule = 0x70ad10
        modinfo = 0x70ab80
        __FUNCTION__ = "gnc_module_load_common"
#7  0x00007ffff70e30e7 in gnc_module_load (module_name=module_name at entry=0x7ffff761e7a9 "gnucash/engine", iface=iface at entry=0) at gnc-module.c:554
No locals.
#8  0x00007ffff7612818 in libgncmod_app_utils_gnc_module_init (refcount=0) at gncmod-app-utils.c:64
No locals.
#9  0x00007ffff70e2e96 in gnc_module_load_common (module_name=module_name at entry=0x402fd4 "gnucash/app-utils", iface=0, optional=optional at entry=0)
    at gnc-module.c:519
        initfunc = 0x7ffff7612800 <libgncmod_app_utils_gnc_module_init>
        info = 0x9a34a0
        gmodule = 0x729340
        modinfo = 0x729490
        __FUNCTION__ = "gnc_module_load_common"
#10 0x00007ffff70e30e7 in gnc_module_load (module_name=module_name at entry=0x402fd4 "gnucash/app-utils", iface=<optimised out>) at gnc-module.c:554
No locals.
#11 0x0000000000402adf in load_gnucash_modules () at gnucash-bin.c:479
        i = <optimised out>
        modules = {{name = 0x402fd4 "gnucash/app-utils", version = 0, optional = 0}, {name = 0x402fe6 "gnucash/engine", version = 0, optional = 0}, {
            name = 0x402ff5 "gnucash/register/ledger-core", version = 0, optional = 0}, {name = 0x4034b0 "gnucash/register/register-core", version = 0, 
            optional = 0}, {name = 0x4034d0 "gnucash/register/register-gnome", version = 0, optional = 0}, {
            name = 0x4034f0 "gnucash/import-export/qif-import", version = 0, optional = 0}, {name = 0x403012 "gnucash/import-export/ofx", version = 0, 
            optional = 1}, {name = 0x403518 "gnucash/import-export/csv-import", version = 0, optional = 1}, {
            name = 0x403540 "gnucash/import-export/csv-export", version = 0, optional = 1}, {name = 0x403568 "gnucash/import-export/log-replay", version = 0, 
            optional = 1}, {name = 0x403590 "gnucash/import-export/aqbanking", version = 0, optional = 1}, {name = 0x40302c "gnucash/report/report-system", 
            version = 0, optional = 0}, {name = 0x403049 "gnucash/report/stylesheets", version = 0, optional = 0}, {
            name = 0x4035b0 "gnucash/report/standard-reports", version = 0, optional = 0}, {name = 0x4035d0 "gnucash/report/utility-reports", version = 0, 
            optional = 0}, {name = 0x4035f0 "gnucash/report/locale-specific/us", version = 0, optional = 0}, {name = 0x403064 "gnucash/report/report-gnome", 
            version = 0, optional = 0}, {name = 0x403080 "gnucash/business-gnome", version = 0, optional = 1}, {name = 0x403097 "gnucash/gtkmm", version = 0, 
            optional = 1}, {name = 0x4030a5 "gnucash/python", version = 0, optional = 1}, {name = 0x4030b4 "gnucash/plugins/bi_import", version = 0, 
            optional = 1}, {name = 0x403618 "gnucash/plugins/customer_import", version = 0, optional = 1}}
---Type <return> to continue, or q <return> to quit---
        __FUNCTION__ = "load_gnucash_modules"
#12 0x0000000000402bbe in inner_main (closure=<optimised out>, argc=<optimised out>, argv=<optimised out>) at gnucash-bin.c:578
        main_mod = <optimised out>
#13 0x00007ffff698942d in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#14 0x00007ffff69632ca in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#15 0x00007ffff69f4c00 in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#16 0x00007ffff696c863 in scm_call_4 () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#17 0x00007ffff69639ff in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#18 0x00007ffff6963a95 in scm_c_with_continuation_barrier () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#19 0x00007ffff69dc78c in ?? () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#20 0x00007ffff24a3fe2 in GC_call_with_stack_base () from /usr/lib/x86_64-linux-gnu/libgc.so.1
No symbol table info available.
#21 0x00007ffff69dcb48 in scm_with_guile () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#22 0x00007ffff69895c5 in scm_boot_guile () from /usr/lib/libguile-2.0.so.22
No symbol table info available.
#23 0x0000000000402844 in main (argc=1, argv=0x7fffffffdb78) at gnucash-bin.c:774
        sys_locale = 0x65afc0 ""
        __FUNCTION__ = "main"
(gdb)


More information about the gnucash-devel mailing list