New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testinstall hangs when compiled with --static #22
Comments
I've just committed 800c90a to test the static library as well. I'll see whether I can reproduce the issue now. |
Confirmed on Ubuntu 14.10. The output of
|
I have no idea what changed to break this. :) |
You can |
Interestingly, https://sourceware.org/git/?p=glibc.git;a=commit;h=b7aa8caacee9ec707835ee48d14ab46bfdbae4e9 removed |
The assembly implementation appears not to have changed in any pertinent way for years, so I don't think glibc is the culprit. The problem also occurs with GCC 4.8.3 on Ubuntu 14.10, so I can't blame GCC 4.9.1 either. |
I added some logging to
I don't know why that last writer lock is waiting to be woken, but as I expected, RE2 doesn't seem to be doing anything wrong here. |
Note that |
Mea culpa. I'd neglected to remove the logging from |
Well, I've added more logging to When dynamically linked, When statically linked, |
Thanks for looking at it - it is bizarre. I'm just using the workaround of not passing --static... but this bug is probably worth reporting to Ubuntu, at some point in the investigation. |
It finally occurred to me that @isomer pointed me to https://gcc.gnu.org/ml/gcc-help/2010-05/msg00029.html, which suggests the use of |
Have you observed the problem on Ubuntu 15.04? If not, I can try to reproduce it – probably within the next week or two. |
I can confirm that the problem still exists with Ubuntu 15.04 32- and 64-bit. However the bug behavior is different - the program core dumps instead of hanging. Removing --static or adding the |
Ouch. I wonder whether the TID in the TLS is garbage as opposed to |
I've filed https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1450355. I'll follow up there as needed, but there's nothing more that I can do here, so I'm going to close this issue. |
FYI, e37a0e8 solves the problem a different way. |
On Ubuntu 14.10 64 or 32-bit, which has gcc version 4.9.1,
compiling testinstall.cc with --static results in a program that
hangs. I don't see this problem on other platforms.
git clone https://github.com/google/re2.git
cd re2
make clean
make
g++ --static testinstall.cc -L obj -lre2 -I . -pthread
./a.out
the a.out program hangs, but if you take away --static, it does not hang.
The text was updated successfully, but these errors were encountered: