public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/58909] New: C++11's condition variables fail with static linkin
@ 2013-10-29  2:43 joel at clambassador dot com
  2013-10-29  9:53 ` [Bug libstdc++/58909] C++11's condition variables fail with static linking jakub at gcc dot gnu.org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: joel at clambassador dot com @ 2013-10-29  2:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58909

            Bug ID: 58909
           Summary: C++11's condition variables fail with static linkin
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: joel at clambassador dot com

The program: 

#include <condition_variable>
int main () { std::condition_variable a; }

statically compiled as either:
g++ --std=c++0x -static -pthread aa.cc -lpthread
clang++ --std=c++11 -static -pthread aa.cc -lpthread

segfaults at the destructor's implicit call to pthread_cond_destroy(). Other
uses of std::condition_variable also fail. nm shows that pthread_cond_*
functions are only 'w', while programs that use other aspects of c++ threading,
such as mutexes, will have 'W' pthread_mutex_* and corresponding "T"
__pthread_mutex_* available.


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2024-06-11  9:39 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-29  2:43 [Bug libstdc++/58909] New: C++11's condition variables fail with static linkin joel at clambassador dot com
2013-10-29  9:53 ` [Bug libstdc++/58909] C++11's condition variables fail with static linking jakub at gcc dot gnu.org
2015-05-08 15:13 ` redi at gcc dot gnu.org
2020-12-02 16:36 ` redi at gcc dot gnu.org
2021-01-28 16:48 ` ksaunders at nowsecure dot com
2021-01-28 16:58 ` jakub at gcc dot gnu.org
2021-01-28 17:32 ` redi at gcc dot gnu.org
2021-01-28 17:42 ` redi at gcc dot gnu.org
2021-01-28 17:49 ` jakub at gcc dot gnu.org
2021-01-28 18:01 ` redi at gcc dot gnu.org
2021-01-28 18:07 ` redi at gcc dot gnu.org
2021-01-28 18:17 ` jakub at gcc dot gnu.org
2021-01-28 18:39 ` redi at gcc dot gnu.org
2021-01-28 18:48 ` jakub at gcc dot gnu.org
2021-01-28 19:00 ` redi at gcc dot gnu.org
2021-01-28 19:12 ` jakub at gcc dot gnu.org
2021-01-28 19:24 ` jakub at gcc dot gnu.org
2021-01-28 20:41 ` redi at gcc dot gnu.org
2021-04-19 10:40 ` redi at gcc dot gnu.org
2021-07-22  8:10 ` glisse at gcc dot gnu.org
2021-07-22  8:55 ` redi at gcc dot gnu.org
2021-07-22 10:45 ` glisse at gcc dot gnu.org
2024-06-11  9:39 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).