bugPSPP - Bugs: bug #61284, SIGABRT in pspp at...

 
 

bug #61284: SIGABRT in pspp at src/data/casewriter.c:54

Submitter:  Irfan Ariq <irfanariq>
Submitted:  Mon 04 Oct 2021 03:41:24 PM UTC
   
 
Category:  System/Portable File I/O Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 06 Oct 2021 04:46:29 AM UTC, comment #1: 

Thanks for the report. I reproduced this on PSPP 1.4.1, but not with the head of the development branch, so I think that it has been fixed.

Ben Pfaff <blp>
Group administrator
Mon 04 Oct 2021 03:41:24 PM UTC, original submission:  

Hello,

We are currently working on fuzz testing feature, and we found a *SIGABRT* on `pspp`.

The stack traces are as follow:
```
Program received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff586d921 in __GI_abort () at abort.c:79
#2  0x00007ffff585d48a in _assert_fail_base (fmt=0x7ffff59e4750 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7ffff686ed60 "case_get_value_cnt (c) >= n_widths", file=file@entry=0x7ffff686ed20 "src/data/casewriter.c", line=line@entry=54, function=function@entry=0x7ffff686edc0 <__PRETTY_FUNCTION_.5522> "casewriter_write") at assert.c:92
#3  0x00007ffff585d502 in _GI___assert_fail (assertion=0x7ffff686ed60 "case_get_value_cnt (c) >= n_widths", file=0x7ffff686ed20 "src/data/casewriter.c", line=54, function=0x7ffff686edc0 <__PRETTY_FUNCTION_.5522> "casewriter_write") at assert.c:101
#4  0x00007ffff66f79ca in casewriter_write (writer=0x604000004c90, c=0x603000003370) at src/data/casewriter.c:54
#5  0x00007ffff670be83 in proc_casereader_read (reader=0x604000004e50, ds_=0x6110000002c0) at src/data/dataset.c:547
#6  0x00007ffff66f4452 in casereader_read (reader=0x604000004e50) at src/data/casereader.c:71
#7  0x00007ffff670c038 in proc_casereader_destroy (reader=0x604000004e50, ds_=0x6110000002c0) at src/data/dataset.c:578
#8  0x00007ffff66f45b0 in casereader_destroy (reader=0x604000004e50) at src/data/casereader.c:94
#9  0x00007ffff66f1f0a in casereader_shim_destroy (reader=0x604000004d10, s_=0x6020000134b0) at src/data/casereader-shim.c:123
#10 0x00007ffff66f59a6 in random_reader_destroy (reader=0x604000004d10, br_=0x603000003340) at src/data/casereader.c:536
```
Here is the full stack trace : [link]()

*Step to reproduce*

We configured `pspp` using `CFLAGS="-g -O0 -fsanitize=address" CXXFLAGS="-g -O0 -fsanitize=address" ./configure --prefix=$(pwd)/ --without-cairo --without-perl-module` and build it using `make -j10`, and run it with:

```
./pspp <attached file> -O device=listing -o -a -e format=odt -O -o
```
Attachment: [input file]()

*Environment*
- OS: Ubuntu 18.04.5 LTS
- GCC version: gcc 7.5.0
- pspp version: [pspp 1.4.1](http://mirror.yongbok.net/gnu/pspp/pspp-1.4.1.tar.gz)

Thank you.

Irfan Ariq <irfanariq>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #52027:  full_stacktrace_poc_11.zip added by irfanariq (1KiB - application/x-zip-compressed)
file #52028:  input_pspp_poc_11.zip added by irfanariq (461B - application/x-zip-compressed)

 

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 irfanariq (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
    2021-10-06 blp CategoryNone System/Portable File I/O
        StatusNone Fixed
        Open/ClosedOpen Closed
    2021-10-04 irfanariq Attached File- Added full_stacktrace_poc_11.zip, #52027
        Attached File- Added input_pspp_poc_11.zip, #52028

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code