Bug 133748

Summary: [patch] finance/gnucash segfault when opening account
Product: Ports & Packages Reporter: Henry Hu <henry.hu.sh>
Component: Individual Port(s)Assignee: Michael Johnson <ahze>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Henry Hu 2009-04-15 11:30:01 UTC
After upgraded finance/gnucash to 2.2.7_2, it received a segmentation fault when it starts up.
This problem has been fixed in svn:

http://svn.gnucash.org/trac/changeset/17747

By the way, I found that there're PRs about newer version, I think the problem should have been fixed there. But before upgrading to the new version, please include this patch.

backtrace when opening account:
0x28202fd0 in gnucash_sheet_styles_set_dimensions () from /usr/local/lib/gnucash/libgncmod-register-gnome.so
(gdb) bt
#0  0x28202fd0 in gnucash_sheet_styles_set_dimensions () from /usr/local/lib/gnucash/libgncmod-register-gnome.so
#1  0x28203240 in gnucash_sheet_compile_styles () from /usr/local/lib/gnucash/libgncmod-register-gnome.so
#2  0x28203b11 in gnc_table_init_gui () from /usr/local/lib/gnucash/libgncmod-register-gnome.so
#3  0x281a6f09 in gnc_split_reg_new () from /usr/local/lib/libgnc-gnome.so.0
#4  0x281a2ab7 in gnc_plugin_page_register_create_widget () from /usr/local/lib/libgnc-gnome.so.0
#5  0x282b2920 in gnc_plugin_page_create_widget () from /usr/local/lib/gnucash/libgncmod-gnome-utils.so
#6  0x282a7af9 in gnc_main_window_open_page () from /usr/local/lib/gnucash/libgncmod-gnome-utils.so
#7  0x28195fbe in gppat_open_account_common () from /usr/local/lib/libgnc-gnome.so.0
#8  0x28cd8c11 in ?? () from /usr/local/lib/libgtk-x11-2.0.so.0
#9  0x2a9a2870 in ?? ()
#10 0x2e7e1490 in ?? ()
#11 0x2eae35d0 in ?? ()
#12 0x2e77a6e8 in ?? ()
#13 0x00000002 in ?? ()
#14 0x00000002 in ?? ()
#15 0x2a9a2870 in ?? ()
#16 0x2958d738 in ?? () from /usr/local/lib/libgobject-2.0.so.0
#17 0x28cd8bb0 in ?? () from /usr/local/lib/libgtk-x11-2.0.so.0
#18 0x2e6ff2c0 in ?? ()
#19 0xbfbfd3d8 in ?? ()
#20 0x2955c1f9 in g_closure_invoke () from /usr/local/lib/libgobject-2.0.so.0
Backtrace stopped: frame did not save the PC

Fix: 

http://svn.gnucash.org/trac/changeset/17747
How-To-Repeat: 1. Install gnucash 2.2.7
2. Open an account
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-04-16 01:36:31 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ahze

Fix synopsis and assign.
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2009-05-11 20:18:10 UTC
State Changed
From-To: open->feedback

gnucash port has been updated to 2.2.9, but the trac patch you linked is not 
included in that release. Can you verify the problem still exists with 2.2.9?
Comment 3 Henry Hu 2009-05-12 06:51:17 UTC
I've tried the new version, and the problem no longer exists. Thanks
for the great work!

On Tue, May 12, 2009 at 3:20 AM,  <pav@freebsd.org> wrote:
> Synopsis: [patch] finance/gnucash segfault when opening account
>
> State-Changed-From-To: open->feedback
> State-Changed-By: pav
> State-Changed-When: Mon May 11 19:18:10 UTC 2009
> State-Changed-Why:
> gnucash port has been updated to 2.2.9, but the trac patch you linked is not
> included in that release. Can you verify the problem still exists with 2.2.9?
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=133748
>
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2009-05-12 08:15:01 UTC
State Changed
From-To: feedback->closed

I've tried the new version, and the problem no longer exists. Thanks 
for the great work!