https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88137
--- Comment #7 from Janne Blomqvist <jb at gcc dot gnu.org> --- Author: jb Date: Sun Dec 2 15:14:51 2018 New Revision: 266725 URL: https://gcc.gnu.org/viewcvs?rev=266725&root=gcc&view=rev Log: Use atomic load/store to access static backtrace state pointer As the static backtrace state pointer can be accessed from multiple threads, use atomics to access it. Regtested on x86_64-pc-linux-gnu. libgfortran/ChangeLog: 2018-12-02 Janne Blomqvist <j...@gcc.gnu.org> Backport from trunk PR libfortran/88137 * runtime/backtrace.c (show_backtrace): Use atomic load/store to access the static lbstate pointer. Modified: branches/gcc-8-branch/libgfortran/ChangeLog branches/gcc-8-branch/libgfortran/runtime/backtrace.c