SEGV in current-CVS Register

Derek Atkins warlord@MIT.EDU
16 May 2002 11:58:40 -0400


I've got a reproducible SEGV in the register in current-CVS.
You can reproduce the problem by:

 1) Open a register (I used an Expense Account, but I don't think it
    really matters)

 2) Click Register -> Style -> Basic            (Make it a Basic Register)

 3) Click Register -> Style -> Double Line      (Make it double-lined)

 4) Click on "Split"                            (Show the split-view)

 5) Enter the "Notes" cell on the blank split (it may work with other
    transactions, but I haven't tested that)

 6) Click Register -> Style -> Double Line      (To try to make it single
                                                lined)

At step 6 you will get a SEGV with the following error output (and gdb
stack trace):

Error: gnc_split_register_get_tra...(): bad row 

** CRITICAL **: file gnucash-sheet.c: line 141 (gnucash_sheet_cursor_set_from_table): assertion `gnucash_sheet_cell_valid (sheet, v_loc)' failed.
Warning: gnc_table_move_cursor_inte...(): bad table location

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 20242)]
gnucash_sheet_style_get_cell_pixel_rel_coords (style=0x81a8668, cell_row=1, 
    cell_col=2, x=0xbfffdeac, y=0xbfffdeb0, w=0xbfffdeb4, h=0xbfffdeb8)
    at gnucash-style.c:700
700             *x = cd->origin_x;
(gdb) p cd
$1 = (CellDimensions *) 0x0
(gdb) where
#0  gnucash_sheet_style_get_cell_pixel_rel_coords (style=0x81a8668, 
    cell_row=1, cell_col=2, x=0xbfffdeac, y=0xbfffdeb0, w=0xbfffdeb4, 
    h=0xbfffdeb8) at gnucash-style.c:700
#1  0x40a0fdc1 in item_edit_get_pixel_coords (item_edit=0x81a7370, 
    x=0xbfffdeac, y=0xbfffdeb0, w=0xbfffdeb4, h=0xbfffdeb8)
    at gnucash-item-edit.c:126
#2  0x40a10656 in item_edit_update (item=0x81a7370, affine=0x0, clip_path=0x0, 
    flags=0) at gnucash-item-edit.c:451
#3  0x40a114c3 in item_edit_configure (item_edit=0x81a7370)
    at gnucash-item-edit.c:932
#4  0x40a15bc8 in gnucash_sheet_size_allocate (widget=0x82a0048, 
    allocation=0xbfffe2f0) at gnucash-sheet.c:1049
#5  0x40614da0 in gtk_marshal_NONE__POINTER (object=0x82a0048, 
    func=0x40a15aa8 <gnucash_sheet_size_allocate>, func_data=0x0, 
    args=0xbfffe020) at gtkmarshal.c:193
#6  0x4065a590 in gtk_signal_real_emit (object=0x82a0048, signal_id=18, 
    params=0xbfffe020) at gtksignal.c:1440

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available