Skip to content

heap-use-after-free crash in test application #8

Open

Description

@MatthiasMann

I have compiled 1e2be4d for ARM 32 user space on an AARCH 64 kernel (Linux C300 5.8.0-20200922-1 #1 SMP PREEMPT 2020-09-01T00:00:00+00:00 aarch64 GNU/Linux) using axboe/liburing@bd62cfb with OSELAS.Toolchain-2020.08.0/arm-v7a-linux-gnueabihf/gcc-10.2.1-clang-10.0.1-glibc-2.32-binutils-2.35-kernel-5.8-sanitized/bin/arm-v7a-linux-gnueabihf-g++ in -std=c++20 mode.

And I get the following crash report from asan: https://gist.github.com/MatthiasMann/419fa12bbff6f21f94cc4367e82ddc9b

Activity

  1. CarterLi commented on Nov 3, 2020

    @CarterLi
    Owner

    Strange, but I have no arm devices ( expect an android phone running Linux 4.19 ) to test.
    Did you try any other examples?

  2. MatthiasMann commented on Nov 3, 2020

    @MatthiasMann
    Author

    Yes, in the file_server I also get crashes which I can 'solve' by removing when_all. But then I get other crashes :(
    I also get the following warning on compile:

    $ make
    /opt/OSELAS.Toolchain-2020.08.0/arm-v7a-linux-gnueabihf/gcc-10.2.1-clang-10.0.1-glibc-2.32-binutils-2.35-kernel-5.8-sanitized/bin/arm-v7a-linux-gnueabihf-g++ ./file_server.cpp ./mime_dicts.cpp -o file_server -O0 -rdynamic -D_LIBCPP_DEBUG_LEVEL=1 -fno-omit-frame-pointer -fsanitize=address -fcoroutines -g -Wall -std=c++20 -I../liburing/src/include -I.. -L/home/matthias/Documents/HDIOBox/OSELAS.BSP-NXP/platform-at1130/sysroot-target/usr/lib -I/home/matthias/Documents/HDIOBox/OSELAS.BSP-NXP/platform-at1130/sysroot-target/usr/include  -L../liburing/src -lfmt -luring -pthread
    ./file_server.cpp: In function 'task<> http_send_file(io_service&, std::string, int, int)':
    ./file_server.cpp:76:1: warning: statement has no effect [�]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-value-Wunused-value�]8;;]
       76 | }
          | ^
    ./file_server.cpp:76:1: warning: statement has no effect [�]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-value-Wunused-value�]8;;]
    

    these compiler warning go away when I remove the usages of when_all.

  3. CarterLi commented on Nov 3, 2020

    @CarterLi
    Owner

    Yes, in the file_server I also get crashes which I can 'solve' by removing when_all. But then I get other crashes :(
    I also get the following warning on compile:

    $ make
    /opt/OSELAS.Toolchain-2020.08.0/arm-v7a-linux-gnueabihf/gcc-10.2.1-clang-10.0.1-glibc-2.32-binutils-2.35-kernel-5.8-sanitized/bin/arm-v7a-linux-gnueabihf-g++ ./file_server.cpp ./mime_dicts.cpp -o file_server -O0 -rdynamic -D_LIBCPP_DEBUG_LEVEL=1 -fno-omit-frame-pointer -fsanitize=address -fcoroutines -g -Wall -std=c++20 -I../liburing/src/include -I.. -L/home/matthias/Documents/HDIOBox/OSELAS.BSP-NXP/platform-at1130/sysroot-target/usr/lib -I/home/matthias/Documents/HDIOBox/OSELAS.BSP-NXP/platform-at1130/sysroot-target/usr/include  -L../liburing/src -lfmt -luring -pthread
    ./file_server.cpp: In function 'task<> http_send_file(io_service&, std::string, int, int)':
    ./file_server.cpp:76:1: warning: statement has no effect [�]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-value-Wunused-value�]8;;]
       76 | }
          | ^
    ./file_server.cpp:76:1: warning: statement has no effect [�]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-value-Wunused-value�]8;;]
    

    these compiler warning go away when I remove the usages of when_all.

    when_{all,any} definitely need more work. I'll remove them for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions