bugPSPP - Bugs: bug #31346, Segmentation fault in ascii driver

 
 

bug #31346: Segmentation fault in ascii driver

Submitted by:  John Darrington <jmd>
Submitted on:  Sat 16 Oct 2010 09:18:46 AM UTC  
 
Category: Output DriverSeverity: 7 - Major
Status: FixedAssigned to: None
Open/Closed: ClosedRelease: None
Effort: 0.00

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 26 Oct 2010 04:47:57 AM UTC, comment #3:

I found the problem and pushed a fix.

Ben Pfaff <blp>
Project Administrator
Fri 22 Oct 2010 04:37:12 AM UTC, comment #2:

The following patch:

shows that the bb parameter to ascii_draw_line() is bogus:

Ben Pfaff <blp>
Project Administrator
Fri 22 Oct 2010 04:28:37 AM UTC, comment #1:

valgrind shows that the ascii driver is writing beyond the end of the page (792 bytes divided by 12 bytes per struct ascii_line is 66):

Ben Pfaff <blp>
Project Administrator
Sat 16 Oct 2010 09:18:46 AM UTC, original submission:

The syntax below, which happens to be a verbatim extract from tests/language/stats/npar.at, crashes when run with default settings from the command line.

The problem doesn't show up in the autotests, because the crash occurs in the ascii output driver whereas the tests use the csv driver.

DATA LIST NOTABLE LIST /x * y * w * .
BEGIN DATA.
1 2 1
2 1 3
3.1 1 4
3.2 2 1
4 2 2
5 3 1
1 4 2
. 5 1
END DATA.

WEIGHT BY w.

MISSING VALUES x (4).

NPAR TESTS
CHISQUARE=x y(-2,5)
/MISSING=ANALYSIS
/STATISTICS=DESCRIPTIVES
.

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 26 Oct 2010 04:47:57 AM UTCblpStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1