aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-11-24 12:48:31 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-11-24 14:59:40 +0000
commit4bbd5d0c5fb2b7527938ad44a6d8a2f2ef8bbe12 (patch)
tree8de133e5cef6277ac4f0eb72fa18c24867b07d09 /gcc
parente253d36214015ed10ffd335e3628ccaac22dd5c7 (diff)
downloadgcc-4bbd5d0c5fb2b7527938ad44a6d8a2f2ef8bbe12.zip
gcc-4bbd5d0c5fb2b7527938ad44a6d8a2f2ef8bbe12.tar.gz
gcc-4bbd5d0c5fb2b7527938ad44a6d8a2f2ef8bbe12.tar.bz2
libstdc++: Throw instead of segfaulting in std::thread constructor [PR 67791]
This turns a mysterious segfault into an exception with a more useful message. If the exception isn't caught, the user sees this instead of just a segfault: terminate called after throwing an instance of 'std::system_error' what(): Enable multithreading to use std::thread: Operation not permitted Aborted (core dumped) libstdc++-v3/ChangeLog: PR libstdc++/67791 * src/c++11/thread.cc (thread::_M_start_thread(_State_ptr, void (*)())): Check that gthreads is available before calling __gthread_create.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions