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

 
 

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

Submitted by:  John Darrington <jmd>
Submitted on:  Sat 20 Apr 2013 09:42:37 AM UTC  
 
Category: Syntax ParserSeverity: 5 - Average
Status: FixedAssigned to: Ben Pfaff <blp>
Open/Closed: ClosedRelease: Before 0.8.0
Effort: 0.00

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project 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>
Project AdministratorIn charge of this item.
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>
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 blp (Posted a comment)
  • -unavailable- added by jmd (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 28 May 2013 04:29:18 AM UTCblpStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Tue 28 May 2013 03:58:42 AM UTCblpStatusNone=>In Progress
      Assigned toNone=>blp
    Sat 11 May 2013 06:37:30 AM UTCjmdReleaseNone=>Before 0.8.0

    Back to the top


    Powered by Savane 3.1-cleanup