No subject


Sat Dec 1 07:52:20 UTC 2007


information.
Command line used to build your application. Source code if available.
Further I suggest you to build with debug synmbol (both your application
and uclibc) and start using gdb to debug.
The info you provide are not enough to figure out what is going wrong 

---------------------------------------------------------------------- 
 kannappan - 02-22-08 00:06  
---------------------------------------------------------------------- 
The problem happens when -lpthread is used along with -lc.

for example:

# arm-linux-gcc -lc -lpthread sample.c 

The strace for this attached.

The same program works when i compile with
# arm-linux-gcc -lpthread sample.c 

---------------------------------------------------------------------- 
 carmelo73 - 02-22-08 00:13  
---------------------------------------------------------------------- 
As a general suggestion, you don't need to link explicitly against libc
(-lc)...
it is done by default by the compiler (append -v at your build command and
you will see what it is doing silently)
Further are you sure arm-linux-gcc is properly configured for uClibc ?
Could you post the output of the command readelf -l <executable> ? 

---------------------------------------------------------------------- 
 vapier - 02-22-08 17:25  
---------------------------------------------------------------------- 
straces are not terribly useful when talking about a threading crash

please post a source code test case which we can compile/debug 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-20-08 03:29  kannappan      New Issue                                    
02-20-08 03:29  kannappan      Status                   new => assigned     
02-20-08 03:29  kannappan      Assigned To               => uClibc          
02-20-08 04:40  carmelo73      Note Added: 0005174                          
02-20-08 04:40  carmelo73      Status                   assigned => feedback
02-22-08 00:03  kannappan      File Added: a                                
02-22-08 00:06  kannappan      Note Added: 0005224                          
02-22-08 00:13  carmelo73      Note Added: 0005234                          
02-22-08 17:25  vapier         Note Added: 0005254                          
======================================================================



More information about the uClibc-cvs mailing list