public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/51906] thread lock test failures on darwin11 under Xcode 4.2 Date: Tue, 31 Jan 2012 02:26:00 -0000 [thread overview] Message-ID: <bug-51906-4-gxYLTRmM8f@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-51906-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51906 --- Comment #25 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-01-31 01:03:33 UTC --- (In reply to comment #24) Here is a trace for libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc compiled at -O0 with... /sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/./gcc/g++ -shared-libgcc -B/sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/./gcc -nostdinc++ -L/sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/x86_64-apple-darwin11.2.0/libstdc++-v3/src -L/sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/x86_64-apple-darwin11.2.0/libstdc++-v3/src/.libs -B/sw/lib/gcc4.7/x86_64-apple-darwin11.2.0/bin/ -B/sw/lib/gcc4.7/x86_64-apple-darwin11.2.0/lib/ -isystem /sw/lib/gcc4.7/x86_64-apple-darwin11.2.0/include -isystem /sw/lib/gcc4.7/x86_64-apple-darwin11.2.0/sys-include -B/sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/x86_64-apple-darwin11.2.0/./libstdc++-v3/src/.libs -D_GLIBCXX_ASSERT -fmessage-length=0 -ffunction-sections -fdata-sections -g -O0 -DLOCALEDIR="." -nostdinc++ -I/sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/x86_64-apple-darwin11.2.0/libstdc++-v3/include/x86_64-apple-darwin11.2.0 -I/sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/x86_64-apple-darwin11.2.0/libstdc++-v3/include -I/sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20120126/libstdc++-v3/libsupc++ -I/sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20120126/libstdc++-v3/include/backward -I/sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20120126/libstdc++-v3/testsuite/util /sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20120126/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc -std=gnu++0x ./libtestc++.a -L/sw/lib -liconv -lm -m64 -o ./1.exe The resulting binary fails with the same error as when compiled with -O2 but now traces as... (gdb) break main Breakpoint 1 at 0x100000b8e: file /sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20120126/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc, line 32. (gdb) r Starting program: /sw/src/fink.build/gcc47-4.7.0-1/darwin_objdir/x86_64-apple-darwin11.2.0/libstdc++-v3/testsuite/1.exe Reading symbols for shared libraries ++++........................ done Breakpoint 1, main () at /sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20120126/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc:32 32 bool test __attribute__((unused)) = true; (gdb) s 37 mutex_type m; (gdb) 38 bool b = m.try_lock(); (gdb) std::recursive_mutex::try_lock (this=0x7fff5fbff770) at mutex:221 221 return !__gthread_recursive_mutex_trylock(&_M_mutex); (gdb) __gthread_recursive_mutex_trylock (__mutex=0x7fff5fbff770) at x86_64-apple-darwin11.2.0/bits/gthr-default.h:813 813 return __gthread_mutex_trylock (__mutex); (gdb) __gthread_mutex_trylock (__mutex=0x7fff5fbff770) at x86_64-apple-darwin11.2.0/bits/gthr-default.h:754 754 if (__gthread_active_p ()) (gdb) __gthread_active_p () at x86_64-apple-darwin11.2.0/bits/gthr-default.h:306 306 return 1; (gdb) 307 } (gdb) __gthread_mutex_trylock (__mutex=0x7fff5fbff770) at x86_64-apple-darwin11.2.0/bits/gthr-default.h:755 755 return __gthrw_(pthread_mutex_trylock) (__mutex); (gdb) 758 } (gdb) __gthread_recursive_mutex_trylock (__mutex=0x7fff5fbff770) at x86_64-apple-darwin11.2.0/bits/gthr-default.h:814 814 } (gdb) std::recursive_mutex::try_lock (this=0x7fff5fbff770) at mutex:222 222 } (gdb) main () at /sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20120126/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc:39 39 VERIFY( b ); (gdb) Assertion failed: (b), function main, file /sw/src/fink.build/gcc47-4.7.0-1/gcc-4.7-20120126/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc, line 39. Program received signal SIGABRT, Aborted. 0x00007fff927c182a in __kill () (gdb) Also, I still can't get your test program to compile with gcc 4.7 or Apple gcc-4,2, FSF gcc 4.7 errors with... pthread_test.c:4:22: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token pthread_test.c: In function ‘main’: pthread_test.c:9:3: error: unknown type name ‘mutex’ pthread_test.c:10:34: error: request for member ‘m’ in something not a structure or union and Apple gcc-4.2 errors with... pthread_test.c:4: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token pthread_test.c: In function ‘main’: pthread_test.c:9: error: ‘mutex’ undeclared (first use in this function) pthread_test.c:9: error: (Each undeclared identifier is reported only once pthread_test.c:9: error: for each function it appears in.) pthread_test.c:9: error: expected ‘;’ before ‘m’ pthread_test.c:10: error: ‘m’ undeclared (first use in this function)
next prev parent reply other threads:[~2012-01-31 1:04 UTC|newest] Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-01-19 20:16 [Bug libstdc++/51906] New: " howarth at nitro dot med.uc.edu 2012-01-19 20:21 ` [Bug libstdc++/51906] " redi at gcc dot gnu.org 2012-01-19 20:28 ` iains at gcc dot gnu.org 2012-01-19 20:43 ` howarth at nitro dot med.uc.edu 2012-01-19 20:49 ` dominiq at lps dot ens.fr 2012-01-19 21:59 ` redi at gcc dot gnu.org 2012-01-20 14:41 ` howarth at nitro dot med.uc.edu 2012-01-21 22:32 ` howarth at nitro dot med.uc.edu 2012-01-27 18:49 ` howarth at nitro dot med.uc.edu 2012-01-28 16:58 ` howarth at nitro dot med.uc.edu 2012-01-28 17:19 ` howarth at nitro dot med.uc.edu 2012-01-28 17:40 ` howarth at nitro dot med.uc.edu 2012-01-28 17:40 ` howarth at nitro dot med.uc.edu 2012-01-28 19:22 ` redi at gcc dot gnu.org 2012-01-28 23:07 ` howarth at nitro dot med.uc.edu 2012-01-28 23:44 ` howarth at nitro dot med.uc.edu 2012-01-29 1:28 ` redi at gcc dot gnu.org 2012-01-29 1:45 ` redi at gcc dot gnu.org 2012-01-29 17:04 ` howarth at nitro dot med.uc.edu 2012-01-29 17:19 ` iains at gcc dot gnu.org 2012-01-29 17:25 ` howarth at nitro dot med.uc.edu 2012-01-29 23:02 ` redi at gcc dot gnu.org 2012-01-30 15:36 ` howarth at nitro dot med.uc.edu 2012-01-30 18:50 ` howarth at nitro dot med.uc.edu 2012-01-31 1:18 ` redi at gcc dot gnu.org 2012-01-31 2:26 ` howarth at nitro dot med.uc.edu [this message] 2012-01-31 3:34 ` howarth at nitro dot med.uc.edu 2012-01-31 3:36 ` redi at gcc dot gnu.org 2012-01-31 3:36 ` howarth at nitro dot med.uc.edu 2012-01-31 3:37 ` redi at gcc dot gnu.org 2012-01-31 3:38 ` howarth at nitro dot med.uc.edu 2012-01-31 12:29 ` redi at gcc dot gnu.org 2012-01-31 15:51 ` howarth at nitro dot med.uc.edu 2012-01-31 15:57 ` redi at gcc dot gnu.org 2012-02-01 11:01 ` redi at gcc dot gnu.org 2012-02-03 1:46 ` redi at gcc dot gnu.org 2012-02-03 2:16 ` howarth at nitro dot med.uc.edu 2012-02-03 2:40 ` howarth at nitro dot med.uc.edu 2012-02-03 8:23 ` iains at gcc dot gnu.org 2012-02-03 8:46 ` redi at gcc dot gnu.org 2012-02-03 9:05 ` iains at gcc dot gnu.org 2012-02-03 9:18 ` redi at gcc dot gnu.org 2012-02-03 17:01 ` howarth at nitro dot med.uc.edu 2012-02-03 17:15 ` iains at gcc dot gnu.org 2012-02-03 17:17 ` redi at gcc dot gnu.org 2012-02-03 17:28 ` iains at gcc dot gnu.org 2012-02-03 17:39 ` howarth at nitro dot med.uc.edu 2012-02-03 17:46 ` howarth at nitro dot med.uc.edu 2012-02-03 17:51 ` redi at gcc dot gnu.org 2012-02-03 17:53 ` redi at gcc dot gnu.org 2012-02-03 17:57 ` iains at gcc dot gnu.org 2012-02-03 20:45 ` mikestump at comcast dot net 2012-02-04 13:39 ` redi at gcc dot gnu.org 2012-02-07 9:21 ` redi at gcc dot gnu.org 2012-02-07 9:23 ` redi at gcc dot gnu.org 2012-02-07 18:35 ` howarth at nitro dot med.uc.edu 2022-12-04 14:56 ` cvs-commit at gcc dot gnu.org 2024-04-18 14:41 ` cvs-commit at gcc dot gnu.org 2024-04-24 18:38 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-51906-4-gxYLTRmM8f@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).