https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67791

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:e2babb0540cfa66752214f3f111461e1da4b26ce

commit r10-11325-ge2babb0540cfa66752214f3f111461e1da4b26ce
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Nov 24 12:48:31 2020 +0000

    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.

    (cherry picked from commit 4bbd5d0c5fb2b7527938ad44a6d8a2f2ef8bbe12)
  • [Bug libstdc++/67791] [10 Regre... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to