From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D42343858C5E; Fri, 10 Mar 2023 04:34:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D42343858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678422892; bh=9R902x68q2OEeGgMWGBdauvExvhvylSXq+PilQtKMRw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KMSxDh2OL66ZimOUgpgF/HdgI5sYBfUiZqcXfAXiB81OjrEg2+wNd+yklhcCWwuaT gA0DMuWkGn0sQRoeTgN93Yo70BDWqIBm3LqMQ2HN+9BhBdAP0kai132SDWczQLHWIM Fdep0IP1tgnjRIhy1Hlug5cfxu0TmOMdjQjQg+PY= From: "murugesandins at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109074] SIGABRT signal without using -lpthread at Linux RHEL 7.3 Date: Fri, 10 Mar 2023 04:34:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.8.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: murugesandins at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109074 --- Comment #4 from Murugesan Nagarajan --- Thank you for your comment. I feel that there WAS a bug in old libc library. I am not sure if current libc version having this bug or not. ----------------------------------------- 01. external library /lib64/libc.so.6 =3D> /lib64/libc-2.17.so $ /usr/bin/g++ -g -Wall libcversion.cpp -o ./a.out $ ./a.out GNU libc version: 2.17 This should have been fixed in later versions of libc. I need to know related libc version without this bug 109074. ----------------------------------------- 02. Bug related information from core file: $ /usr/bin/g++ -DLINUX -g -Wall thread.cpp -o ./a.out -std=3Dc++11 $ gdb a.out Reading symbols from /home/murugesan_openssl/a.out...done. (gdb) run Starting program: /home/murugesan_openssl/a.out terminate called after throwing an instance of 'std::system_error' what(): Enable multithreading to use std::thread: Operation not permitted Program received signal SIGABRT, Aborted. 0x00007ffff72311d7 in raise () from /lib64/libc.so.6 Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7.x86_= 64 libgcc-4.8.5-11.el7.x86_64 libstdc++-4.8.5-11.el7.x86_64 (gdb) where #0 0x00007ffff72311d7 in raise () from /lib64/libc.so.6 #1 0x00007ffff72328c8 in abort () from /lib64/libc.so.6 #2 0x00007ffff7b35ab5 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6 #3 0x00007ffff7b33a26 in ?? () from /lib64/libstdc++.so.6 #4 0x00007ffff7b33a53 in std::terminate() () from /lib64/libstdc++.so.6 #5 0x00007ffff7b33c73 in __cxa_throw () from /lib64/libstdc++.so.6 #6 0x00007ffff7b8a4b9 in std::thread::_M_start_thread(std::shared_ptr) () from /lib64/libstdc++.so.6 #7 0x00000000004020d2 in std::thread::thread (this=3D0x7ffffff= fdc90, __f=3D@0x4017cd: {void (void)} 0x4017cd ) at /usr/include/c++/4.8.2/thread:135 #8 0x0000000000401a89 in main () at thread.cpp:50 (gdb) -----------------------------------------=