bugPSPP - Bugs: bug #48128, FREQUENCIES crashes with...

 
 

bug #48128: FREQUENCIES crashes with combination of /statistics /percentiles and /histogram options

Submitter:  Friedrich Beckmann <beckmanf>
Submitted:  Sat 04 Jun 2016 04:16:38 PM UTC
   
 
Category:  Syntax Parser Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 18 Jun 2016 07:44:08 AM UTC, comment #5: 

I think this is fixed now.

John Darrington <jmd>
Group administrator
Wed 08 Jun 2016 06:29:17 PM UTC, comment #4: 

I added a test to the regression for this situation with commit

http://git.savannah.gnu.org/cgit/pspp.git/commit/?id=de660f95574



Friedrich Beckmann <beckmanf>
Group Member
Mon 06 Jun 2016 04:30:19 PM UTC, comment #3: 

Hi John,

yes, maybe. I only tested in the gui, but it is not gui related. I will add a crash test.

Friedrich

Friedrich Beckmann <beckmanf>
Group Member
Mon 06 Jun 2016 04:22:40 PM UTC, comment #2: 

Thanks for fixing this.

Do you think it would be a good idea to add a test to frequencies.at for this scenario?

John Darrington <jmd>
Group administrator
Sat 04 Jun 2016 10:52:53 PM UTC, comment #1: 

I pushed a fix for this:

http://git.savannah.gnu.org/cgit/pspp.git/commit/?id=86642e66638412248901e54a4392882c32d83a71

The 0.75 percentiles with attribute show=false for the histogram appeared as show=true after this removal of double entries code section. The number of n_show_percentiles did not fit to this.

Friedrich Beckmann <beckmanf>
Group Member
Sat 04 Jun 2016 04:16:38 PM UTC, original submission:  

Cubyrk Zyrvay reported the following bug on the mailing list:

http://lists.gnu.org/archive/html/bug-gnu-pspp/2016-06/msg00000.html

To produce the crash, run the following syntax:


SET FORMAT=F8.0.

INPUT PROGRAM.
        LOOP I=1 TO 1000.
                COMPUTE SCORE=EXP(NORMAL(1)).
                END CASE.
        END LOOP.
        END FILE.
END INPUT PROGRAM.

FREQUENCIES VARIABLES=SCORE
/STATISTICS=ALL
/PERCENTILES=1 10 20 30 40 50 60 70 80 90 99
/HISTOGRAM.


This will result in


(psppire:60042): Gtk-WARNING **: Allocating size to GtkSeparatorToolItem 0x7fb7c3090d60 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Assertion failed: (r < tab_nr (table)), function tab_double, file ../pspp/src/output/tab.c, line 437.
Abort trap: 6
FriedrichsMacBook:pspp fritz$


Cubyrk reported this bug for linux. This bug is also visible on MacOS in the current git version. If one of the options

/STATISTICS
/PERCENTILES ...
/HISTOGRAM

is removed, no crash happens.

Friedrich Beckmann <beckmanf>
Group Member

 

(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 beckmanf (Submitted the item)
  • -email is unavailable- added by beckmanf
  •  

    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
    2016-06-18 jmd Open/ClosedOpen Closed
    2016-06-06 jmd Open/ClosedClosed Open
    2016-06-04 beckmanf StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2016-06-04 beckmanf Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code