* [Buildroot] pthread broken in avr32 build
@ 2008-03-21 9:35 Marco Cane
2008-03-21 11:40 ` John Voltz
2008-03-25 23:09 ` Ulf Samuelsson
0 siblings, 2 replies; 3+ messages in thread
From: Marco Cane @ 2008-03-21 9:35 UTC (permalink / raw)
To: buildroot
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] pthread broken in avr32 build
2008-03-21 9:35 [Buildroot] pthread broken in avr32 build Marco Cane
@ 2008-03-21 11:40 ` John Voltz
2008-03-25 23:09 ` Ulf Samuelsson
1 sibling, 0 replies; 3+ messages in thread
From: John Voltz @ 2008-03-21 11:40 UTC (permalink / raw)
To: buildroot
There are some nasty problems in the AVR32 parts of gcc, I would bet these
are the true cause of your problems. I'm hoping the folks at Atmel will give
it some serious attention soon.
John Voltz
On Fri, Mar 21, 2008 at 5:35 AM, Marco Cane <mca@apss.it> wrote:
> 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.
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20080321/4b238bee/attachment.htm
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] pthread broken in avr32 build
2008-03-21 9:35 [Buildroot] pthread broken in avr32 build Marco Cane
2008-03-21 11:40 ` John Voltz
@ 2008-03-25 23:09 ` Ulf Samuelsson
1 sibling, 0 replies; 3+ messages in thread
From: Ulf Samuelsson @ 2008-03-25 23:09 UTC (permalink / raw)
To: buildroot
[snip]
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
[snip]
A friend of mine claims you have to use glibc to have threads properly working.
Best Regards
Ulf Samuelsson
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-25 23:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 9:35 [Buildroot] pthread broken in avr32 build Marco Cane
2008-03-21 11:40 ` John Voltz
2008-03-25 23:09 ` Ulf Samuelsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox