bugPSPP - Bugs: bug #38782, Infinite loop and temp space...

 
 

bug #38782: Infinite loop and temp space exhaustion processing empty input program.

Submitter:  John Darrington <jmd>
Submitted:  Sat 20 Apr 2013 09:42:37 AM UTC
   
 
Category:  Syntax Parser Severity:  5 - Average
Status:  Fixed Assigned to:  blp
Open/Closed:  Closed Release:  Before 0.8.0
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 28 May 2013 04:29:18 AM UTC, comment #5: 

Fixed with commit c91f650b47f3 (INPUT PROGRAM: Avoid infinite loop for trivially empty input program.).

Ben Pfaff <blp>
Group administrator
Tue 28 May 2013 03:58:42 AM UTC, comment #4: 

SPSS documentation says that an input program must contain at least one DATA LIST or END FILE.  The example syntax does not.  PSPP does not currently enforce this rule, but it would avoid an infinite loop if it did.  I'll work on that.

Ben Pfaff <blp>
Group administrator
Mon 06 May 2013 04:49:45 AM UTC, comment #3: 

I think you're right. This one is so trivially an infinite loop that we should detect it.

Ben Pfaff <blp>
Group administrator
Sat 27 Apr 2013 09:21:07 AM UTC, comment #2: 

It is true that this is not a sensible input program.  Is it not possible to at least emit a warning in such cases?

John Darrington <jmd>
Group administrator
Sat 20 Apr 2013 05:15:43 PM UTC, comment #1: 

It sems to me that the bug is in the input program.  The input program is an infinite loop.

Ben Pfaff <blp>
Group administrator
Sat 20 Apr 2013 09:42:37 AM UTC, original submission:  

Using the following syntax:

input program.
string firstname lastname (a24) / address (a80).
end input program.
execute.


All the temp space is very quickly used up.  And the program enters an infinite loop.

John Darrington <jmd>
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 blp (Posted a comment)
  • -email is unavailable- added by jmd (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
    2013-05-28 blp StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2013-05-28 blp StatusNone In Progress
        Assigned toNone blp
    2013-05-11 jmd ReleaseNone Before 0.8.0

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code