bugPSPP - Bugs: bug #11955, AGGREGATE crashes on MAX function

 
 

bug #11955: AGGREGATE crashes on MAX function

Submitter:  John Darrington <jmd>
Submitted:  Sun 13 Feb 2005 11:52:56 AM UTC
   
 
Category:  Other Severity:  7 - Major
Status:  Fixed Assigned to:  blp
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 14 Feb 2005 12:24:02 AM UTC, comment #2: 

This should now be fixed in CVS.  The actual problem, as far as I could tell, was simply a copy from ->format to ->write and ->print that shouldn't have been there at all.

I added a test in tests/bugs for this.

Ben Pfaff <blp>
Group administrator
Sun 13 Feb 2005 12:17:39 PM UTC, comment #1: 

The attached patch seems to fix the problem, but needs to be checked by a competent authority.   

This fix copies the write and print formats from the src variable(s) to the destination variables.   But it doesn't really address the situation where there is more than one source variable and they have different formats.

John Darrington <jmd>
Group administrator
Sun 13 Feb 2005 11:52:56 AM UTC, original submission:  

The following input causes pspp to throw an assertion:

DATA LIST  LIST
        /x (F8.2)
        y (a25) .

BEGIN DATA.
87.50 foo
87.34 bar
1 bar
END DATA.



AGGREGATE
 /BREAK=y
 /x=MAX(x).


LIST /x y.

John Darrington <jmd>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #2545:  patch added by jmd (2KiB - application/octet-stream - Proposed patch.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-02-14 blp StatusNone Fixed
    Open/ClosedOpen Closed
2005-02-13 jmd SummaryAGREGATE crashes on MAX function AGGREGATE crashes on MAX function
    Attached File- Added patch, #2188

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code