[Bug 1427981] Re: pthread_join failure
Peng Tao
1427981 at bugs.launchpad.net
Tue Apr 14 22:09:01 UTC 2015
Here is what I have on CentOS:
[lear at libprotod]$gcc --version
gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[lear at libprotod]$rpm -qa|grep glibc
glibc-headers-2.17-55.el7_0.5.x86_64
glibc-devel-2.17-55.el7_0.5.x86_64
glibc-common-2.17-55.el7_0.5.x86_64
glibc-debuginfo-common-2.17-55.el7_0.5.x86_64
glibc-2.17-55.el7_0.5.x86_64
glibc-debuginfo-2.17-55.el7_0.5.x86_64
You might be interested in CentOS gcc default options as well:
[lear at libprotod]$gcc -Q -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.3/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC)
** Attachment added: "centos gcc default spec"
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1427981/+attachment/4375580/+files/spec.centos-gcc
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1427981
Title:
pthread_join failure
Status in glibc package in Ubuntu:
New
Bug description:
pthread_join() appears to behave differently depending on gcc
optimization is on or off. Build the attached source file with gcc -O2
or gcc -O0 has shown different joining results.
E.g., with `gcc pthread_join.c -lpthread -g -O2` it passes without
issue.
with `gcc pthread_join.c -lpthread -g -O0`, the program fails at
pthread_join() with ESRCH.
The same does not happen on other distros (tested on CentOS and
Fedora).
Some additional info:
[macbeth at tests]$cat /etc/issue
Ubuntu 14.04 LTS \n \l
[macbeth at tests]$gcc --version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[macbeth at tests]$dpkg -l libc6
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================================-========================-========================-==================================================================================
ii libc6:amd64 2.19-0ubuntu6 amd64 Embedded GNU C Library: Shared libraries
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1427981/+subscriptions
More information about the foundations-bugs
mailing list