6.1 libpthread: pthread_create and _pq_insert_tail: Already in priority queue

2006-03-22 Thread Volker Stolz
A rather largish application (the most recent version of GHC, see lang/ghc) fails in its runtime system with: _pq_insert_tail: Already in priority queue Basically some threads and mutexes are involved, then the application forks, some more threads are created and then I get this error on a

Re: 6.1 libpthread: pthread_create and _pq_insert_tail: Already in priority queue

2006-03-22 Thread Julian Elischer
Volker Stolz wrote: A rather largish application (the most recent version of GHC, see lang/ghc) fails in its runtime system with: _pq_insert_tail: Already in priority queue Basically some threads and mutexes are involved, then the application forks, some more threads are created and then I

Re: newbus questions

2006-03-22 Thread Artem Ignatiev
On 16.03.2006, at 15:06, Artem 'ZaZooBred' Ignatiev wrote: On Thu, 16/03/2006 12:35 +0100, Milan Obuch wrote: 1. How to create the bus itself, and properly describe its interfaces? skeletons of bus-driver and frontend-drivers would be a GREAT help. Being far from everything

Re: 6.1 libpthread: pthread_create and _pq_insert_tail: Already in priority queue

2006-03-22 Thread Divacky Roman
On Wed, Mar 22, 2006 at 11:24:36AM +0100, Volker Stolz wrote: A rather largish application (the most recent version of GHC, see lang/ghc) fails in its runtime system with: _pq_insert_tail: Already in priority queue two pointers: 1) I use ghc daily without this problem 2) I got this error

Re: 6.1 libpthread: pthread_create and _pq_insert_tail: Already in priority queue

2006-03-22 Thread Daniel Eischen
On Wed, 22 Mar 2006, Divacky Roman wrote: On Wed, Mar 22, 2006 at 11:24:36AM +0100, Volker Stolz wrote: A rather largish application (the most recent version of GHC, see lang/ghc) fails in its runtime system with: _pq_insert_tail: Already in priority queue two pointers: 1) I use ghc

dlopen() and dlclose() are not MT-safe?

2006-03-22 Thread Kazuaki Oda
Hello, I compiled the following code on 6.1-PRERELEASE and ran: dltest.c -- #include err.h #include dlfcn.h #include pthread.h #include stdio.h #include stdlib.h #include unistd.h #define NTHREADS10 void *func(void

Re: Installation from USB pen

2006-03-22 Thread Brooks Davis
On Wed, Mar 22, 2006 at 02:58:46AM +0100, Dario Freni wrote: Hi everybody, attached a tiny script to convert a FreeBSD install iso image to a binary ufs image ready to be flashed e.g. on an USB pendrive. The size of the ufs image is calculated from the iso one. The usage for the script is

Re: dlopen() and dlclose() are not MT-safe?

2006-03-22 Thread Kostik Belousov
On Wed, Mar 22, 2006 at 11:32:09PM +0900, Kazuaki Oda wrote: Hello, I compiled the following code on 6.1-PRERELEASE and ran: dltest.c -- #include err.h #include dlfcn.h #include pthread.h #include stdio.h #include

Re: dlopen() and dlclose() are not MT-safe?

2006-03-22 Thread Kostik Belousov
On Wed, Mar 22, 2006 at 07:43:12PM +0200, Kostik Belousov wrote: On Wed, Mar 22, 2006 at 11:32:09PM +0900, Kazuaki Oda wrote: Hello, I compiled the following code on 6.1-PRERELEASE and ran: dltest.c -- #include

Re: newbus questions

2006-03-22 Thread John-Mark Gurney
Artem Ignatiev wrote this message on Wed, Mar 22, 2006 at 16:47 +0300: On 16.03.2006, at 15:06, Artem 'ZaZooBred' Ignatiev wrote: On Thu, 16/03/2006 12:35 +0100, Milan Obuch wrote: 1. How to create the bus itself, and properly describe its interfaces? skeletons of bus-driver and

Re: dlopen() and dlclose() are not MT-safe?

2006-03-22 Thread Kazuaki Oda
Kostik Belousov wrote: Oops. Completely reversed condition in the if. :(. Also, I don't think it shall returns the error in this situation. New take: Index: libexec/rtld-elf/rtld.c === RCS file:

Re: newbus questions

2006-03-22 Thread Artem Ignatiev
On 22.03.2006, at 22:23, John-Mark Gurney wrote: Okay, now I have got the bus device, the child device. My current trouble is that I want bus driver to provide some methods to child drivers. So I created saa_bus_if.m file, declared some methods there, made implementation in bus driver and added

Re: usb2 iscochronous transfer

2006-03-22 Thread Peter B
Maybe you want to try out the new USB API when designing the driver. Don't forget that high-speed isoc have 8 frames per millisecond! http://en.wikipedia.org/wiki/USB In addition to this some operating systems take a conservative approach to scheduling transactions and limit the number of

Re: usb2 iscochronous transfer

2006-03-22 Thread Hans Petter Selasky
On Thursday 23 March 2006 01:55, Peter B wrote: Maybe you want to try out the new USB API when designing the driver. Don't forget that high-speed isoc have 8 frames per millisecond! http://en.wikipedia.org/wiki/USB In addition to this some operating systems take a conservative approach