This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
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 -> closed type: crash -> compile error messages: + msg159621 resolution: not a bug stage: resolved |
| 2012年04月27日 07:38:21 | neologix | set | messages: + msg159445 |
| 2012年04月27日 00:50:34 | Raphael.Cruzeiro | set | files:
+ pthread_strace.txt messages: + msg159436 |
| 2012年04月24日 18:44:07 | neologix | set | messages: + msg159187 |
| 2012年04月23日 20:55:34 | Raphael.Cruzeiro | set | files:
+ strace.output.txt messages: + msg159075 |
| 2012年04月23日 20:29:19 | Raphael.Cruzeiro | set | files:
+ output_sh messages: + msg159073 |
| 2012年04月22日 08:20:59 | neologix | set | nosy:
+ neologix messages: + msg158953 |
| 2012年04月18日 10:51:24 | pitrou | set | nosy:
+ barry |
| 2012年04月18日 07:40:09 | Raphael.Cruzeiro | create | |