From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Steiner Date: Tue, 01 Oct 2002 20:08:01 +0000 Subject: [Linux-ia64] glibc bug / pthread bug??? Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Has anyone seen this problem or know enough about glibc/threads to have a good idea about what is busted. The test case listed below consistently hang using 2.4.18 & glibc-2.2.4-19.3. If only one instance (fork=1)of the test is run, it runs ok. If multiple copies of the test are run, it hangs in: * rt_sigsuspend * __sigsuspend * __pthread_wait_for_restart_signal * pthread_cond_wait * thread_func * pthread_start_thread Has anyone seen this??? /* * compile with * gcc -g -Wall -o test test.c -lrt * * execute * test [ []] * * * Test creates timer threads that hang in * rt_sigsuspend * __sigsuspend * __pthread_wait_for_restart_signal * pthread_cond_wait * thread_func * pthread_start_thread * */ #include #include #include #include #include #include #include #include #include int forks=5; int count=5; void * slave(void) { timer_t timerid; pid_t pid; int i, status; for (i=0; i= 2 ? atoi(argv[1]) : 5; forks = argc >= 3 ? atoi(argv[2]) : 5; for (i=0; i