[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #61252] failed to allocate error in pspp at xmalloc.c:53

From: Irfan Ariq
Subject: PSPP-BUG: [bug #61252] failed to allocate error in pspp at xmalloc.c:53
Date: Thu, 30 Sep 2021 16:12:02 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36


                 Summary: failed to allocate error in pspp at xmalloc.c:53
                 Project: PSPP
            Submitted by: irfanariq
            Submitted on: Thu 30 Sep 2021 08:12:00 PM UTC
                Category: None
                Severity: 5 - Average
                  Status: None
             Assigned to: None
             Open/Closed: Open
                 Release: None
         Discussion Lock: Any
                  Effort: 0.00




We are currently working on fuzz testing feature, and we found a **failed to
allocate** error on `pspp`.

The stack traces are as follow:
==29439==WARNING: AddressSanitizer failed to allocate 0x7213080c1a6ab040
==29439==AddressSanitizer CHECK failed:
"((0)) != (0)" (0x0, 0x0)
    #0 0x7f97d07eabf2  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe9bf2)
    #1 0x7f97d0809575 in __sanitizer::CheckFailed(char const*, int, char
const*, unsigned long long, unsigned long long)
    #2 0x7f97d07f0332  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xef332)
    #3 0x7f97d0728e46  (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x27e46)
    #4 0x7f97d07dfb0a in __interceptor_malloc
    #5 0x7f97d01009d3 in xmalloc .../pspp-1.4.1/gl/xmalloc.c:53
    #6 0x7f97d008eeef in pool_malloc src/libpspp/pool.c:471
    #7 0x7f97d008f20c in pool_realloc src/libpspp/pool.c:562
    #8 0x7f97d008f375 in pool_2nrealloc src/libpspp/pool.c:675
    #9 0x7f97d0438be1 in fixed_parse_fortran
    #10 0x7f97d0437bf7 in parse_var_placements
    #11 0x7f97d0425ddf in parse_fixed src/language/data-io/data-list.c:350
    #12 0x7f97d04257d8 in cmd_data_list src/language/data-io/data-list.c:275
    #13 0x7f97d0328d63 in do_parse_command src/language/command.c:233
    #14 0x7f97d0328809 in cmd_parse_in_state src/language/command.c:147
    #15 0x7f97d03288d9 in cmd_parse src/language/command.c:162
    #16 0x564f4385de30 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 -o /dev/null -O format=odt <attached file>
The input file is attached.

- OS: Ubuntu 18.04.5 LTS
- GCC version: gcc 7.5.0
- pspp version: [pspp

Thank you.


File Attachments:

Date: Thu 30 Sep 2021 08:12:00 PM UTC  Name: full_stacktrace_poc_1.zip  Size:
941B   By: irfanariq

Date: Thu 30 Sep 2021 08:12:00 PM UTC  Name: input_pspp_poc_1.zip  Size: 468B 
 By: irfanariq



Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]