boostorg / boostorg/process

Intermittent multithreaded_async_pipe test failure (SIGABRT)

Open
#40 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
145
Forks
151
PR merge metrics
No merged PRs in 30d

Description

After building Boost 1.67.0 and running the test suite, I am running into an intermittent test failure for the multithreaded_async_pipe test case from test/async_pipe.cpp, where a SIGABRT is raised.

* Build environment: Clear Linux OS, build 22070
* GCC version: 7.3.0

For reference, I am building Boost with the mock tool, using the spec file from https://github.com/clearlinux-pkgs/boost/blob/cbefce45d9e125337d0545ca4957c761d7fd58ec/boost.spec, modified for 1.67.0.

When the test fails, the output from the async_pipe test binary is:

```
terminate called after throwing an instance of 'boost::exception_detail::clone_impl >'
what(): assign: Bad file descriptor
Running 3 test cases...
unknown location(0): fatal error: in "multithreaded_async_pipe": signal: SIGABRT (application abort requested)
../libs/process/test/async_pipe.cpp(67): last checkpoint: "multithreaded_async_pipe" test entry

*** 1 failure is detected in the test module "Master Test Suite"

EXIT STATUS: 201
```

Running the test binary through GDB, I captured the backtraces for the crashing thread and the other threads. If you would like me to post the backtraces from the other threads, let me know.

Backtrace from crashing thread:

```
#0 0x00007ffff748f247 in raise () from /usr/lib64/libc.so.6
#1 0x00007ffff7490ba1 in abort () from /usr/lib64/libc.so.6
#2 0x00007ffff78749fd in __gnu_cxx::__verbose_terminate_handler ()
#3 0x00007ffff78726d6 in __cxxabiv1::__terminate (handler=)
at ../../../../gcc-7.3.0/libstdc++-v3/libsupc++/eh_terminate.cc:47
#4 0x00007ffff7872721 in std::terminate ()
at ../../../../gcc-7.3.0/libstdc++-v3/libsupc++/eh_terminate.cc:57
#5 0x00007ffff78a7b1e in std::execute_native_thread_routine (__p=0x749420)
at ../../../../../gcc-7.3.0/libstdc++-v3/src/c++11/thread.cc:91
#6 0x00007ffff7b7a66a in ?? () from /usr/lib64/libpthread.so.0
#7 0x00007ffff756fb3f in clone () from /usr/lib64/libc.so.6
```

If you require further information about the build environment or other details, I can provide them.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.