Date: Wed, 24 Apr 2024 16:39:36 +0000 From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 278551] pthread_join() kills the process with a return code of 134 Message-ID: <bug-278551-29464-PPyOIRK0Wg@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-278551-29464@https.bugs.freebsd.org/bugzilla/> References: <bug-278551-29464@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278551 --- Comment #5 from Ed Maste <emaste@freebsd.org> --- I can reproduce this with GCC 10, 11, 12, and 13. I cannot reproduce this w= ith Clang 16 or 17. $ clang++16 -std=3Dc++20 -static-libgcc -static-libstdc++ -static -pthread = -O3 "main.cpp" -o "main_clang++" && ./main_clang++ clang-16: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument] clang-16: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument] kernel FreeBSD RELEASE 14.0 doesn't reach here. $ clang++17 -std=3Dc++20 -static-libgcc -static-libstdc++ -static -pthread = -O3 "main.cpp" -o "main_clang++" && ./main_clang++ clang++: warning: argument unused during compilation: '-static-libgcc' [-Wunused-command-line-argument] clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument] kernel FreeBSD RELEASE 14.0 doesn't reach here. It's reproducible with any exception with GCC: static-except.cc: int fn(void) { throw (int)0; } int main(int argc, char *argv[])=20 { try {=20 fn(); } catch (int i) { return 0; } return 1; } $ g++13 -static static-except.cc -o static-except && ./static-except Abort trap (core dumped) I'll change this to a lang/gcc bug --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-278551-29464-PPyOIRK0Wg>