Issue 14610: configure script hangs on pthread verification and PTHREAD_SCOPE_SYSTEM verification on Ubuntu (original) (raw)

Created on 2012-04-18 07:40 by Raphael.Cruzeiro, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
output_sh Raphael.Cruzeiro,2012-04-23 20:29 output of sh -x ./configure
strace.output.txt Raphael.Cruzeiro,2012-04-23 20:55 output of strace -f ./configure
pthread_strace.txt Raphael.Cruzeiro,2012-04-27 00:50 Output of the pthread test program's strace
Messages (8)
msg158597 - (view) Author: Raphael Cruzeiro (Raphael.Cruzeiro) Date: 2012-04-18 07:40
While installing Python 2.7.3 on my Ubuntu server the configure script hanged on the verification for pthread, I then proceded to alter the script to aways return true for pthread and it hanged again checking for PTHREAD_SCOPE_SYSTEM, which I also bypassed by altering the script and only then was I able to successfully install Python 2.7.3
msg158953 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2012-04-22 08:20
Could you please run: $ sh -x ./configure to see what's going on. It might also be interesting to have the output of $ strace -f ./configure Thanks.
msg159073 - (view) Author: Raphael Cruzeiro (Raphael.Cruzeiro) Date: 2012-04-23 20:29
Here is the output of sh -x ./configure
msg159075 - (view) Author: Raphael Cruzeiro (Raphael.Cruzeiro) Date: 2012-04-23 20:55
Posting the strac output
msg159187 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2012-04-24 18:44
Your strace output looks strange :-) Unless it's truncated, we see that the wait4() doesn't return when the test pthread executable exits... Could you try building this code : """ #include <pthread.h> void* routine(void* p){return NULL;} int main(){ pthread_t p; if(pthread_create(&p,NULL,routine,NULL)!=0) return 1; (void)pthread_detach(p); return 0; } """ (with gcc -o test test.c -lpthread) And running it from the command line, to see your shell hangs (you might also want to try 'strace -f sh -c "test"').
msg159436 - (view) Author: Raphael Cruzeiro (Raphael.Cruzeiro) Date: 2012-04-27 00:50
Yes, this code is hanging in my system. I'm posting the strace output. If there's any other information that may be helpful I'll happily provide it.
msg159445 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2012-04-27 07:38
> Yes, this code is hanging in my system. I'm posting the strace output. > > If there's any other information that may be helpful I'll happily provide it. Well, in that case it's a bug in your pthread implementation: returning from main() with detached threads should terminate the process. You should report this to your distribution bug tracker.
msg159621 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2012-04-29 16:08
I'm closing as invalid. If you decide to fill a bug report to your distribution (or directly to the libc in this case), it'd be interesting to post a link to the bug report here. Thanks.
History
Date User Action Args
2022-04-11 14:57:29 admin set github: 58815
2012-04-29 16:08:25 neologix set status: open -> closedtype: crash -> compile errormessages: + resolution: not a bugstage: resolved
2012-04-27 07:38:21 neologix set messages: +
2012-04-27 00:50:34 Raphael.Cruzeiro set files: + pthread_strace.txtmessages: +
2012-04-24 18:44:07 neologix set messages: +
2012-04-23 20:55:34 Raphael.Cruzeiro set files: + strace.output.txtmessages: +
2012-04-23 20:29:19 Raphael.Cruzeiro set files: + output_shmessages: +
2012-04-22 08:20:59 neologix set nosy: + neologixmessages: +
2012-04-18 10:51:24 pitrou set nosy: + barry
2012-04-18 07:40:09 Raphael.Cruzeiro create