[uClibc 0001476]: Weird linking behaviour

bugs at busybox.net bugs at busybox.net
Mon Aug 27 09:46:14 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1476 
====================================================================== 
Reported By:                sors
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   1476
Category:                   Posix Threads
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             08-27-2007 02:46 PDT
Last Modified:              08-27-2007 02:46 PDT
====================================================================== 
Summary:                    Weird linking behaviour
Description: 
I have an application that is linked dynamically to a shared lib, which
itself uses pthreads and is dynamically linked to the pthreads lib.

When a worker thread is created and started, the thread function is
called. But the main thread (which created the worker thread) never is
scheduled/run again! If the worker thread contains an infinitive loop, it
runs forever. If it exits (by using return) the whole process doesn't do
anything anymore.. It is blocked.

IF I link the pthreads lib to the application as well, the same code works
fine. The main thread and the worker thread are both scheduled as
expected.

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-27-07 02:46  sors           New Issue                                    
08-27-07 02:46  sors           Status                   new => assigned     
08-27-07 02:46  sors           Assigned To               => uClibc          
======================================================================




More information about the uClibc-cvs mailing list