From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD9D03858C60; Fri, 10 Mar 2023 04:53:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD9D03858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678424011; bh=XZp79+bjYVUh2O+JfTwK688g+znBbK5L6W2pstJjL9I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F/03Xz5QbNCJ3esZhLLNCMbBZTsbWXDJ7t7+7CEfzTd8Z6P+e3PNGrRqBy6RxplGe Pm4B0lvEQ2YnMgs5wTa+EmwDRGpF9T8nk6C0ZU+UodCyD5LBDH8n1zL3RMb+DVHkVT rHfxxRxDfGAqHUfKtVoJHjVijAvrdWgqqPCzNSXU= 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:53:31 +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 #5 from Murugesan Nagarajan --- (In reply to Murugesan Nagarajan from comment #4) > 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 permit= ted > 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=3D0x7fffffffdc90, > __f=3D@0x4017cd: {void (void)} 0x4017cd ) at > /usr/include/c++/4.8.2/thread:135 > #8 0x0000000000401a89 in main () at thread.cpp:50 > (gdb) > ----------------------------------------- Actually I am from India. wait for my reply(if required) on next day.=