https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109074
--- Comment #4 from Murugesan Nagarajan <murugesandins at gmail dot com> --- 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 => /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=c++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<std::thread::_Impl_base>) () from /lib64/libstdc++.so.6 #7 0x00000000004020d2 in std::thread::thread<void (&)()> (this=0x7fffffffdc90, __f=@0x4017cd: {void (void)} 0x4017cd <ThreadMethod()>) at /usr/include/c++/4.8.2/thread:135 #8 0x0000000000401a89 in main () at thread.cpp:50 (gdb) -----------------------------------------