bugPSPP - Bugs: bug #22073, Renaming a variable to a duplicate...

 
 

bug #22073: Renaming a variable to a duplicate name causes assertion failure

Submitter:  Ben Pfaff <blp>
Submitted:  Tue 22 Jan 2008 03:47:43 AM UTC
   
 
Category:  Graphical User Interface Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  Before 0.6.0
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 22 Jan 2008 06:54:28 AM UTC, comment #2: 

I checked in a fix for this.

John Darrington <jmd>
Group administrator
Tue 22 Jan 2008 05:15:36 AM UTC, comment #1: 

Thanks for noticing this.  I'll take a look at it.

John Darrington <jmd>
Group administrator
Tue 22 Jan 2008 03:47:43 AM UTC, original submission:  

Try this:

  • Start psppire.
  • Click on the var-sheet tab.
  • Add a new variable "foo".
  • Add a new varaible "bar".
  • Click in variable "foo"'s name cell and type "bar".  As soon as I type the "r", I get an assertion failure:


psppire: ../src/data/dictionary.c:653: dict_rename_var: Assertion `!strcasecmp (var_get_name (v), new_name) || dict_lookup_var (d, new_name) == ((void *)0)' failed.

Backtrace:

#0  0xffffe410 in ?? ()
#1  0xbfee8838 in ?? ()
#2  0x00000006 in ?? ()
#3  0x000008ef in ?? ()
#4  0xb7175eb5 in raise () from /lib/i686/cmov/libc.so.6
#5  0xb7177831 in abort () from /lib/i686/cmov/libc.so.6
#6  0xb716f08e in __assert_fail () from /lib/i686/cmov/libc.so.6
#7  0x0814b9ac in dict_rename_var (d=0x81eea48, v=0x8430138,
    new_name=0x851ccb0 "bar") at ../src/data/dictionary.c:652
#8  0x08083bd9 in psppire_dict_rename_var (dict=0x81d1760, v=0x8430138,
    name=0x851ccb0 "bar") at ../src/ui/gui/psppire-dict.c:793
#9  0x08087f01 in psppire_var_store_set_string (model=0x81d1060,
    text=0x851ccb0 "bar", row=0, col=0)
    at ../src/ui/gui/psppire-var-store.c:409
#10 0x080aed2a in gtk_sheet_set_cell (sheet=0x8249180, row=0, col=0,
    justification=GTK_JUSTIFY_FILL, text=0x851ccb0 "bar")
    at ../lib/gtksheet/gtksheet.c:3442
#11 0x080b1658 in gtk_sheet_entry_changed (widget=0x8511d80, data=0x8249180)
    at ../lib/gtksheet/gtksheet.c:3792
#12 0xb78e995f in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#13 0xb78dc619 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0xb78f0e0f in ?? () from /usr/lib/libgobject-2.0.so.0
#15 0x084eab20 in ?? ()
#16 0x00000000 in ?? ()

Ben Pfaff <blp>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jmd (Posted a comment)
  • -email is unavailable- added by blp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-01-22 jmd StatusConfirmed Fixed
        Assigned tojmd None
        Open/ClosedOpen Closed
    2008-01-22 jmd StatusNone Confirmed
    2008-01-22 blp ReleaseNone Before 0.6.0

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code