Bug 106960
Summary: | multi threaded process hangs on exit(). | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 2.1 | Reporter: | Shailesh Phansalkar <shailesh_phansalkar> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED WORKSFORME | QA Contact: | Brian Brock <bbrock> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 2.1 | CC: | drepper, fweimer, shailesh_phansalkar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-10-30 09:37:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 106715 |
Description
Shailesh Phansalkar
2003-10-13 23:22:34 UTC
Now I have a reproducible case I am attaching a simple test program which reproduces this #include <stdio.h> #include <pthread.h> #ifndef AIX #define LOOPER 100000000 #define MOD 10000000 #else #define LOOPER 400000000 #define MOD 40000000 #endif int thr_fun(void) { int i; #if 1 sleep(10); #endif printf("from thread just before calling exit\n"); exit(0); } int main(void) { pthread_t thread; long i; pthread_attr_t attr; pthread_attr_init(&attr); /* initialize attr with default attributes */ if(pthread_create(&thread, &attr,thr_fun, NULL)) printf("thread create failed\n"); getchar(); } to compile it gcc -o linuxhang linuxhang.c -L/usr/lib -lpthread; run this program and it should die in 10 seconds, but one thread hangs on exit (); - Shailesh I tried downloading this patch but it is missing glibc-common for i686 ?? - Shailesh Of course, that's how it has been since introduction of glibc-common (which was introduced for this reason). If you are on i686 machine, you need to install *.i686.rpm packages where they are available and *.i386.rpm versions of the remaining ones. Ping! Can you confirm your problem went away? I'll close the bug soon if I don't hear anything. |