bugPSPP - Bugs: bug #61257, segv in pspp at rank.c:244

 
 

bug #61257: segv in pspp at rank.c:244

Submitter:  Irfan Ariq <irfanariq>
Submitted:  Thu 30 Sep 2021 08:22:32 PM UTC
   
 
Category:  None Severity:  5 - Average
Status:  None Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 02 Oct 2021 05:29:47 AM UTC, comment #1: 

I wasn't able to reproduce this problem, but using the stack trace provided and looking at the source I can see how it might have come about.

I pushed a change and am closing this item.

John Darrington <jmd>
Group administrator
Thu 30 Sep 2021 08:22:32 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
==29432==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000023e (pc 0x7f0927fda525 bp 0x7ffc302e4dd0 sp 0x7ffc302e4d80 T0)
==29432==The signal is caused by a WRITE memory access.
==29432==Hint: address points to the zero page.
    #0 0x7f0927fda524  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x26524)
    #1 0x7f0928092772 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xde772)
    #2 0x7f0927caae81 in destroy_rank src/language/stats/rank.c:244
    #3 0x7f0927cae651 in cmd_rank src/language/stats/rank.c:884
    #4 0x7f0927bdbd63 in do_parse_command src/language/command.c:233
    #5 0x7f0927bdb809 in cmd_parse_in_state src/language/command.c:147
    #6 0x7f0927bdb8d9 in cmd_parse src/language/command.c:162
    #7 0x556437d8ce30 in main 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 built in using `make -j10`, and run it with:

```
./pspp <attached file> -e -V -I- -I -a --no-output device=treminal format=
```
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 #52004:  full_stacktrace_poc_6.zip added by irfanariq (729B - application/x-zip-compressed)
file #52005:  input_pspp_poc_6.zip added by irfanariq (650B - 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 jmd (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-02 jmd Open/ClosedOpen Closed
    2021-09-30 irfanariq Attached File- Added full_stacktrace_poc_6.zip, #52004
        Attached File- Added input_pspp_poc_6.zip, #52005

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code