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

 
 

bug #61285: SIGABRT in pspp at src/language/data-io/data-parser.c:283

Submitter:  Irfan Ariq <irfanariq>
Submitted:  Mon 04 Oct 2021 03:43:09 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 04:58:42 AM UTC, comment #1: 

Thanks for reporting this bug.  I have now fixed it with commit eeedca3fcd95 ("DATA LIST: Fix assertion when RECORDS given twice with decreasing value.").

Ben Pfaff <blp>
Group administrator
Mon 04 Oct 2021 03:43:09 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:
```st
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=0x7ffff6d1a240 "records_per_case >= parser->records_per_case", file=file@entry=0x7ffff6d1a0c0 "src/language/data-io/data-parser.c", line=line@entry=283, function=function@entry=0x7ffff6d1ab60 <__PRETTY_FUNCTION_.7128> "data_parser_set_records") at assert.c:92
#3  0x00007ffff585d502 in _GI___assert_fail (assertion=0x7ffff6d1a240 "records_per_case >= parser->records_per_case", file=0x7ffff6d1a0c0 "src/language/data-io/data-parser.c", line=283, function=0x7ffff6d1ab60 <__PRETTY_FUNCTION_.7128> "data_parser_set_records") at assert.c:101
#4  0x00007ffff6b3ee20 in data_parser_set_records (parser=0x60d000005ce0, records_per_case=6) at src/language/data-io/data-parser.c:283
#5  0x00007ffff6b3bfde in cmd_data_list (lexer=0x602000000530, ds=0x6110000002c0) at src/language/data-io/data-list.c:132
#6  0x00007ffff6a3fd64 in do_parse_command (lexer=0x602000000530, ds=0x6110000002c0, state=CMD_STATE_INITIAL) at src/language/command.c:233
#7  0x00007ffff6a3f80a in cmd_parse_in_state (lexer=0x602000000530, ds=0x6110000002c0, state=CMD_STATE_INITIAL) at src/language/command.c:147
#8  0x00007ffff6a3f8da in cmd_parse (lexer=0x602000000530, ds=0x6110000002c0) at src/language/command.c:162
#9  0x0000555555559e31 in main (argc=6, argv=0x7fffffffdde8) at src/ui/terminal/main.c:136
```
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 /dev/null -O format=odt <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 #52029:  full_stacktrace_poc_12.zip added by irfanariq (1KiB - application/x-zip-compressed)
file #52030:  input_pspp_poc_12.zip added by irfanariq (321B - 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_12.zip, #52029
        Attached File- Added input_pspp_poc_12.zip, #52030

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code