bugPSPP - Bugs: bug #61281, segv in pspp at...

 
 

bug #61281: segv in pspp at src/language/lexer/segment.c:1350

Submitter:  Irfan Ariq <irfanariq>
Submitted:  Mon 04 Oct 2021 03:33:35 PM UTC
   
 
Category:  Syntax Parser 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 12:33:50 AM UTC, comment #1: 

I was able to reproduce the problem in PSPP 1.4.1, but not with the head of the PSPP main branch. Therefore, I think that this is fixed already. Thank you for your report!

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

Hello,

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

The stack traces are as follow:
```st
==29998==ERROR: AddressSanitizer: SEGV on unknown address 0x617000010000 (pc 0x7febab786480 bp 0x7fffe47487e0 sp 0x7fffe4747f58 T0)
==29998==The signal is caused by a READ memory access.
    #0 0x7febab78647f  (/lib/x86_64-linux-gnu/libc.so.6+0x18a47f)
    #1 0x7febacc285a1  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x415a1)
    #2 0x7febac823c9c in segmenter_parse_full_line__ src/language/lexer/segment.c:1350
    #3 0x7febac82447f in segmenter_parse_begin_data_3__ src/language/lexer/segment.c:1466
    #4 0x7febac825071 in segmenter_push src/language/lexer/segment.c:1677
    #5 0x7febac816f98 in lex_source_get__ src/language/lexer/lexer.c:1376
    #6 0x7febac81246c in lex_get src/language/lexer/lexer.c:229
    #7 0x7febac9124eb in read_inline_record src/language/data-io/data-reader.c:227
    #8 0x7febac913bab in read_record src/language/data-io/data-reader.c:538
    #9 0x7febac913c5c in dfm_eof src/language/data-io/data-reader.c:557
    #10 0x7febac91064d in parse_delimited_no_span src/language/data-io/data-parser.c:622
```
The full stack trace is attached.

*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 -o -O <attached file>
```
The input file is attached.

*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 #52021:  full_stacktrace_poc_8.zip added by irfanariq (1KiB - application/x-zip-compressed)
file #52022:  input_pspp_poc_8.zip added by irfanariq (320B - 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 Syntax Parser
        StatusNone Fixed
        Open/ClosedOpen Closed
    2021-10-04 irfanariq Attached File- Added full_stacktrace_poc_8.zip, #52021
        Attached File- Added input_pspp_poc_8.zip, #52022

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code