bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #21108] crashing after bad input program


From: Ben Pfaff
Subject: PSPP-BUG: [bug #21108] crashing after bad input program
Date: Wed, 19 Sep 2007 05:02:55 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061205 Iceweasel/2.0.0.1 (Debian-2.0.0.1+dfsg-1)

Update of bug #21108 (project pspp):

                  Status:                    None => Ready for Test/Review  

    _______________________________________________________

Follow-up Comment #1:

The problem is this: DATA LIST is looking for BEGIN DATA...END DATA.  Not
seeing it, it terminates the active file and reports an error.  The assertion
failure occurs when DESCRIPTIVES, in calc_descriptives, tries to call
casereader_peek, which fails, and then returns without destroying the
casereader.  This particular casereader is actually the active file.  Since
the active file hasn't been closed when proc_commit tries to verify that it
has been, the assertion fails.

The fix is to always destroy the casereader in calc_descriptives, even if the
call to casereader_peek fails.  The attached patch does this, plus the same
thing for several other procedures that shared the problem.  Actually, trying
to run a procedure with an empty active file would be a good test in general.

(file #13989)
    _______________________________________________________

Additional Item Attachment:

File name: input-program-crash.patch      Size:3 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21108>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]