[Buildroot] pthread broken in avr32 build

Marco Cane mca at apss.it
Fri Mar 21 09:35:35 UTC 2008


hi,
this is my first post on this list.

I'm developing an embedded system based on the atngw100 board, powered 
by an Atmel AVR32 CPU but I found a big issue.
It seems that libpthread has some problems because every program using 
threads ends with a segmentation fault. I first discovered this bug 
while testing JamVM & GNU Classpath. All worked fine, but simple 
applications using Java threads behaved in unexpected manner, while they 
worked fine on my Ubuntu box
So I tried a simple C program like this
http://www.opengroup.org/onlinepubs/009695399/functions/pthread_join.html, 
compiled by the toolchain and also by the installed gcc with the 
-lpthread option with the same result.

I also tried to compile uclibc with the new linux thread support but 
it's broken, due to a missing file (tls.h) for AVR32 architecture.

So my questions are:
1. has anyone experienced this bug and found any solution/workaround?
2. how can I retrieve, if exists, a snapshot of buildroot correctly 
supporting threads for AVR32? because I think something went wrong with 
some patches and I wonder if there is somewhere a working snapshot, 
older than recent ones

thanks in advance

Marco




Ai sensi del D.Lgs. 196/2003, si precisa che le informazioni contenute in questo messaggio e nei suoi eventuali allegati sono riservate e per uso esclusivo del destinatario. Nessuno, all'infuori dello stesso, può copiare o distribuire il messaggio, o parte di esso, a terzi. Chiunque riceva questo messaggio per errore, è pregato di distruggerlo e di darne informazione all'indirizzo di origine.

The information contained in this message may be privileged and confidential and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.






More information about the buildroot mailing list