https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78677
Bug ID: 78677 Summary: __gthread_key_create assumed not to fail in eh_globals.cc Product: gcc Version: 6.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: chrisj at rtems dot org Target Milestone: --- Some operating system, for example RTEMS, may fail to create a POSIX key if not configured with enough resources. The lack of any error reporting in __eh_globals_init::__eh_globals_init() means exceptions are silently switched from thread safe to not being thread safe and this is not a concern for RTEMS. A way to report errors would be welcomed by RTEMS. We could hook this is a fatal error so the user is aware there is a critical issue that needs to be addressed. Thanks Chris