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

 
 

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

Submitted by:  Ben Pfaff <blp>
Submitted on:  Tue 22 Jan 2008 03:47:43 AM UTC  
 
Category: Graphical User InterfaceSeverity: 5 - Average
Status: FixedAssigned to: None
Open/Closed: ClosedRelease: Before 0.6.0
Effort: 0.00

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

I checked in a fix for this.

John Darrington <jmd>
Project 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>
Project 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>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 22 Jan 2008 06:54:28 AM UTCjmdStatusConfirmed=>Fixed
      Assigned tojmd=>None
      Open/ClosedOpen=>Closed
    Tue 22 Jan 2008 05:15:36 AM UTCjmdStatusNone=>Confirmed
    Tue 22 Jan 2008 03:48:16 AM UTCblpReleaseNone=>Before 0.6.0

    Back to the top


    Powered by Savane 3.1-cleanup1