Gnucash Segfaults

Ted Creedon tcreedon at easystreet.net
Fri Feb 28 07:15:53 EST 2014


Yes, removed the cp - it was there all the time
Yes make install

strace gnucash:
<cut>
open("/etc/localtime", O_RDONLY)        = 6
fstat(6, {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0
mmap(NULL, 2819, PROT_READ, MAP_PRIVATE, 6, 0) = 0x7f7dcbf70000
close(6)                                = 0
munmap(0x7f7dcbf70000, 2819)            = 0
write(3, "* 04:01:07 OTHER <GLib-GIO> Sett"..., 83) = 83
--- SIGTRAP {si_signo=SIGTRAP, si_code=SI_KERNEL} ---
+++ killed by SIGTRAP +++


gdb Stack trace:
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff3b3d309 in g_logv () from /usr/lib64/libglib-2.0.so.0
(gdb) bt full
#0  0x00007ffff3b3d309 in g_logv () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#1  0x00007ffff3b3d452 in g_log () from /usr/lib64/libglib-2.0.so.0
No symbol table info available.
#2  0x00007ffff454f5b7 in ?? () from /usr/lib64/libgio-2.0.so.0
No symbol table info available.
#3  0x00007ffff3e046a9 in ?? () from /usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#4  0x00007ffff3e06424 in g_object_new_valist () from
/usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#5  0x00007ffff3e06804 in g_object_new () from
/usr/lib64/libgobject-2.0.so.0
No symbol table info available.
#6  0x00007ffff71bf9d8 in gnc_gsettings_get_schema_ptr
(schema_str=schema_str at entry=0x7ffff71d06f7 "general") at
gnc-gsettings.c:104
        gset = 0x0
        full_name = 0x76c4e0 "org.gnucash.general"
        __FUNCTION__ = "gnc_gsettings_get_schema_ptr"
#7  0x00007ffff71c03ef in gnc_gsettings_get_float (schema=0x7ffff71d06f7
"general", key=0x7ffff71d10da "retain-days")
    at gnc-gsettings.c:354
        schema_ptr = <optimized out>
        __PRETTY_FUNCTION__ = "gnc_gsettings_get_float"
        __FUNCTION__ = "gnc_gsettings_get_float"
#8  0x00007ffff71c2187 in file_retain_changed_cb (user_data=0x0, key=0x0,
gsettings=0x0) at gnc-prefs-utils.c:48
        days = <optimized out>
#9  0x00007ffff71c23b5 in file_retain_changed_cb (user_data=0x0, key=0x0,
gsettings=0x0) at gnc-prefs-utils.c:123
No locals.
#10 gnc_prefs_init () at gnc-prefs-utils.c:89
        __FUNCTION__ = "gnc_prefs_init"
#11 0x00007ffff744f8a3 in gnc_gui_init () at gnc-gnome-utils.c:672
        main_window = 0x0
        map = <optimized out>
        idx = <optimized out>
        icon_filenames = {0x7ffff74aaeef "gnucash-icon-16x16.png",
0x7ffff74aaf06 "gnucash-icon-32x32.png",
          0x7ffff74aaf1d "gnucash-icon-48x48.png", 0x0}
        icons = 0x763720 = {0x763a80}
        fullname = 0x76d660 ""
        __FUNCTION__ = "gnc_gui_init"
#12 0x0000000000402bd6 in main (argc=1, argv=0x7fffffffd8b8) at
gnucash-bin.c:773
        sys_locale = 0x654500 ":0"
        __FUNCTION__ = "main"



On Fri, Feb 28, 2014 at 4:10 AM, Geert Janssens
<janssens-geert at telenet.be>wrote:

>  Hmm, you should not be copying files around like that. That makes
> everything much harder to track.
>
>
>
> First question: how do you install gnucash ? I presume using make install ?
>
>
>
> What prefix are you using for this ? I strongly suggest using something
> other than /usr or /usr/local. These two paths are special cases for the
> linker/installer and should only be used by package managers. In case your
> intent it to package gnucash for suse, you can ignore this bit :)
>
>
>
> Lastly: libgnc-gnome.so is an internal library for gnucash. It should get
> installed automatically when running make install.
>
>
>
> If that's not the case on your system, you should first figure out why
> that didn't happen.
>
>
>
> Geert
>
>
>
> On Friday 28 February 2014 04:00:30 Ted Creedon wrote:
>
> > deleted 2.4, 2.6.1 compiled fine but when executing:
>
> >
>
> > gnucash: error while loading shared libraries: libgnc-gnome.so.0:
>
> > cannot open shared object file: No such file or directory
>
> >
>
> > libgnc-gnome. was deleted when 2.4 was removed
>
> >
>
> > and its not in the suse distro. So I moved it & did ldconfig
>
> >
>
> > cp /data/gnucash-2.6.1/src/gnome/.libs/libgnc-gnome.so
>
> > /usr/lib64/libgnc-gnome.soi
>
> >
>
> > & now get [1]+ Trace/breakpoint trap gnucash
>
> >
>
> >
>
> >
>
> > tedc
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > On Fri, Feb 28, 2014 at 3:28 AM, Geert Janssens
>
> >
>
> > <janssens-geert at telenet.be>wrote:
>
> > > On Friday 28 February 2014 02:12:23 Ted Creedon wrote:
>
> > > > It might be best to work on 2.6..1.
>
> > > >
>
> > > >
>
> > > >
>
> > > > Here'e the 2.6.1 compile error - which involves libgnc:
>
> > > >
>
> > > >
>
> > > >
>
> > > > libtool: link: gcc -Wdeclaration-after-statement -g -O2 -Wall
>
> > > > -Wunused
>
> > > >
>
> > > > -Wmissing-prototypes -Wmissing-declarations -Wno-unused -o
>
> > > >
>
> > > > .libs/gnucash gnucash-bin.o -pthread -Wl,--export-dynamic -pthread
>
> > > >
>
> > > > ../../src/register/ledger-core/.libs/libgncmod-ledger-core.so
>
> > > >
>
> > > > ../../src/report/report-gnome/.libs/libgncmod-report-gnome.so
>
> > > >
>
> > > > ../../src/gnome/.libs/libgnc-gnome.so
>
> > > >
>
> > > > ../../src/gnome-utils/.libs/libgncmod-gnome-utils.so
>
> > > >
>
> > > > ../../src/app-utils/.libs/libgncmod-app-utils.so
>
> > > >
>
> > > > ../../src/engine/.libs/libgncmod-engine.so
>
> > > >
>
> > > > ../../src/gnc-module/.libs/libgnc-module.so
>
> > > >
>
> > > > ../../src/core-utils/.libs/libgnc-core-utils.so
>
> > > >
>
> > > > ../../src/libqof/qof/.libs/libgnc-qof.so /usr/lib64/libguile.so
>
> > > > -lgmp
>
> > > >
>
> > > > -lcrypt /usr/lib64/libltdl.so -lgthread-2.0 -lgmodule-2.0
>
> > > >
>
> > > > -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo
>
> > > >
>
> > > > -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0
>
> > > > -lgobject-2.0
>
> > > >
>
> > > > -lglib-2.0 -lfontconfig -lfreetype -lm -pthread -Wl,-rpath
>
> > > >
>
> > > > -Wl,/usr/local/lib64/gnucash -Wl,-rpath -Wl,/usr/lib64
>
> > > >
>
> > > > /usr/lib64/libgnc-backend-xml-utils.so.0: undefined reference to
>
> > > >
>
> > > > `safe_strcmp'
>
> > > >
>
> > > > collect2: error: ld returned 1 exit status
>
> > > >
>
> > > > make[4]: *** [gnucash] Error 1
>
> > > >
>
> > > > make[3]: *** [all-recursive] Error 1
>
> > > >
>
> > > > make[2]: *** [all-recursive] Error 1
>
> > > >
>
> > > > make[1]: *** [all-recursive] Error 1
>
> > > >
>
> > > > make: *** [all] Error 2
>
> > >
>
> > > That looks like your linker is trying to link against libraries from
>
> > > an older gnucash version installed on the system. safe_strcmp is
>
> > > not used in gnucash 2.6.1 anymore.
>
> > >
>
> > >
>
> > >
>
> > > There is a bug report for this [1]. The workaround is to remove
>
> > > gnucash from your system before compiling.
>
> > >
>
> > >
>
> > >
>
> > > Geert
>
> > >
>
> > >
>
> > >
>
> > > [1] https://bugzilla.gnome.org/show_bug.cgi?id=644897
>
> >
>
> > _______________________________________________
>
> > gnucash-devel mailing list
>
> > gnucash-devel at gnucash.org
>
> > https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
>
>


More information about the gnucash-devel mailing list