Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210431 - gnucash 2.0.5 crashes immediately on startup
Summary: gnucash 2.0.5 crashes immediately on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Torsten Veller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-17 03:16 UTC by Allan Gottlieb
Modified: 2008-03-03 09:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Gottlieb 2008-02-17 03:16:19 UTC
I did send a bug-buddy report.

From gnome-terminal
gottlieb@ajglap ~ $ gnucash
73fa912f-e9aa-dc64-0125fcd7-7013796f is dumped
gottlieb@ajglap ~ $ 

I looked at the crash details before sending in the bug bunny report
and the comments in session-errors were not related to gnucash as far
as I could see.

I somewhat suspect libpcre since I recently emerged it and have seen
error reports in b.g.o.  I do have the unicode use flag and I reemerged
libpcre, goffice, and gnucash.  No change.

I then installed goffice and gnucash on another machine (eva) and copied over
my .gnucash directory and the main database file
(for me ~/share/financial/gnucash/checking.gnucash)

I started gnucash on eva and did an open of the database file.
It worked so it can't be my database or ~/.gnucash


Reproducible: Always

Steps to Reproduce:
1.Be on my laptop either as me or root
2.Open gnome-terminal
3.type gnucash


Actual Results:  
Immediate crash and bug buddy

Expected Results:  
gnucash opens

I have tried it with essentially nothing else running

emerge --info results follow
Comment 1 Joseph 2008-02-17 05:23:44 UTC
I get a "gnucash Segmentation fault" as well but it is not cause by libpcre as I downgraded it and still the same problem. The strange part it that Gnucash is working OK on my backup system but not on my main server.

#Joseph
Comment 2 Joseph 2008-02-17 06:52:38 UTC
As I've mentioned to you on Gentoo mailing list; I recompile / downgraded "libpcre" - didn't help; next I downgraded "guile-1.8.2" to "guile-1.6.8" (followed by revdep-rebild) so two packages
were rebuild:
dev-libs/g-wrap
app-office/gnucash

Now, Gnucash is starting normally no more "segmentation errors"
But I'm not sure if this is the solution since on my Gentoo backup Gnucash
is working OK with guile-1.8.2

#Joseph

Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2008-02-17 07:29:28 UTC
Have you tried running revdep-rebuild (from the gentoolkit package) first?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-02-17 08:30:43 UTC
(In reply to comment #0)
> emerge --info results follow

Nowhere to be seen, plus also attach a backtrace if revdep-rebuild doesn't fix you.

 http://www.gentoo.org/proj/en/qa/backtraces.xml

Comment 5 Dimitris Kavadas 2008-02-17 09:25:39 UTC
I have the same problem after upgrading thew following packages:

dev-libs/libpcre-7.6 -> dev-libs/libpcre-7.6-r1
app-text/docbook-xsl-stylesheets-1.70.1 -> app-text/docbook-xsl-stylesheets-1.73.2
sys-devel/libtool-1.5.26 -> sys-devel/libtool-1.5.26

These caused rebuilding dev-scheme/guile-1.8.2

After that gnucash crashes at startup and i think its a gnucash/guile issue as gdb back trace looks like this:

(gdb) bt
#0  0xb6a8503b in gw_wct_create () from /usr/lib/libgwrap-guile-runtime.so.0
#1  0xb54e9406 in gw_initialize_wrapset_standard () from /usr/lib/libgw-guile-standard.so.0
#2  0xb54e9683 in gw_init_wrapset_standard () from /usr/lib/libgw-guile-standard.so.0
#3  0xb6a587cc in scm_dynamic_call () from /usr/lib/libguile.so.17
#4  0xb69da66a in ?? () from /usr/lib/libguile.so.17
#5  0xb570fe00 in ?? ()
#6  0xb570fd20 in ?? ()
#7  0xbfa6fb08 in ?? ()
#8  0xb6a1661f in scm_flush_ws () from /usr/lib/libguile.so.17
#9  0xb69dbffa in scm_primitive_eval_x () from /usr/lib/libguile.so.17
#10 0xb69f8789 in scm_primitive_load () from /usr/lib/libguile.so.17
#11 0xb69da60d in ?? () from /usr/lib/libguile.so.17
#12 0xb57101c0 in ?? ()
#13 0xb5503520 in ?? ()
#14 0xb5873260 in ?? ()
#15 0xb68ec175 in pthread_getspecific () from /lib/libpthread.so.0
#16 0xb69d90e3 in scm_call_0 () from /usr/lib/libguile.so.17
#17 0xb69c94d3 in scm_dynamic_wind () from /usr/lib/libguile.so.17
#18 0xb69d999c in ?? () from /usr/lib/libguile.so.17
#19 0xb5503560 in ?? ()
#20 0xb55035a8 in ?? ()
#21 0xb5503550 in ?? ()
#22 0xbfa6fd28 in ?? ()
#23 0xb66bd6f9 in free () from /lib/libc.so.6
#24 0xb69d9849 in ?? () from /usr/lib/libguile.so.17
#25 0xb58829e8 in ?? ()
#26 0xb55035c8 in ?? ()
#27 0xb55037a8 in ?? ()
#28 0x00000000 in ?? ()
Comment 6 Torsten Veller (RETIRED) gentoo-dev 2008-02-17 10:54:42 UTC
The following combination should work:
=dev-scheme/guile-1.8.2
=dev-libs/g-wrap-1.9.6-r3
=dev-scheme/slib-3.1.1-r1

Install in this order again. Then reemerge gnucash and report back.
Comment 7 Dimitris Kavadas 2008-02-17 11:47:38 UTC
Yes, you are right libgwrap-guile-runtime.so.0!!!!

Building the abovementioned packages and gnucash afterwards fixed the seg-fault.

Thank you very much.
Comment 8 Torsten Veller (RETIRED) gentoo-dev 2008-02-17 14:10:08 UTC
Did you (Allan and Joseph) install guile in the last 42 hours?

There was a change in package.use which might have caused the segfault (<http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/base/package.use?r1=1.11&r2=1.12>).
If guile changes the threads useflag, gnucash needs to be reinstalled.
Comment 9 Allan Gottlieb 2008-02-17 15:20:39 UTC
(In reply to comment #8)
> Did you (Allan and Joseph) install guile in the last 42 hours?

Yes, I did.  My portage log says
-rw-r--r-- 1 root 229K Feb 16 09:12 dev-scheme:guile-1.8.2:20080216-141100.log

> There was a change in package.use which might have caused the segfault
> (<http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/base/package.use?r1=1.11&r2=1.12>).
> If guile changes the threads useflag, gnucash needs to be reinstalled.


Comment 10 Allan Gottlieb 2008-02-17 15:53:30 UTC
(In reply to comment #6)
> The following combination should work:
> =dev-scheme/guile-1.8.2
> =dev-libs/g-wrap-1.9.6-r3
> =dev-scheme/slib-3.1.1-r1
> 
> Install in this order again. Then reemerge gnucash and report back.
> 
Bingo!  Thank you all for your help.

Comment 11 Yeom Jaehyun 2008-02-19 00:17:34 UTC
(In reply to comment #6)
> The following combination should work:
> =dev-scheme/guile-1.8.2
> =dev-libs/g-wrap-1.9.6-r3
> =dev-scheme/slib-3.1.1-r1
> 
> Install in this order again. Then reemerge gnucash and report back.
> 

It works, thank you.

I saw gnucash ./configure said the following.

configure: WARNING:

    Unable to find the g-wrap standard module, a.k.a. guile-g-wrap.
    You won't be able to run GnuCash without it!
Comment 12 Yeom Jaehyun 2008-02-19 00:23:23 UTC
FYI: gnucash-bin shows some useful messages when it crashes. :)
Comment 13 Torsten Veller (RETIRED) gentoo-dev 2008-03-03 09:27:34 UTC
As pointed out in comment 8 I think this was caused by the profile change.