|
From: oliv_m <la...@ju...> - 2008-06-25 08:54:38
|
Julian Seward-2 wrote: > > >> How reliable is Helgrind's log message mentioned in the subject? > > Well, it's probably not _completely_ broken, since I did go to > some effort to test it, and IIRC the regression tests test it too. > >> Are there any known versions of libpthread that are broken? > > libpthread in general seems fairly reliable to me. > > I also have this kind of problem with the pthread library in our project... depending on the version taken by the loader (that can be changed by setting the LD_ASSUME_KERNEL env variable) we have a different behavior. One is exactly the same as mentioned here: the first sem_wait is not blocking the threads even when the semaphore is initialized to 0. I also have another issue with a semaphore that is shared by several childs. When the parent thread do several sem_post (according to the amount of work to do), only one child awakes while the others remain blocked even if the semaphore has a positive value ! I really don't understand why... -- View this message in context: http://www.nabble.com/Bug-in-libpthread%3A-sem_wait-succeeded-on-semaphore-without-prior-sem_post-tp17825737p18107326.html Sent from the Valgrind - Users mailing list archive at Nabble.com. |
|
From: Bart V. A. <bar...@gm...> - 2008-06-25 09:05:31
|
On Wed, Jun 25, 2008 at 10:54 AM, oliv_m <la...@ju...> wrote: > I also have this kind of problem with the pthread library in our project... > depending on the version taken by the loader (that can be changed by setting > the LD_ASSUME_KERNEL env variable) we have a different behavior. By setting the LD_ASSUME_KERNEL environment variable one can switch between the newer NPTL and the older LinuxThreads. Both Helgrind and exp-drd only support NPTL, not LinuxThreads. Bart. |
|
From: Julian S. <js...@ac...> - 2008-06-25 21:59:39
|
On Wednesday 25 June 2008 11:05, Bart Van Assche wrote: > On Wed, Jun 25, 2008 at 10:54 AM, oliv_m <la...@ju...> wrote: > > I also have this kind of problem with the pthread library in our > > project... depending on the version taken by the loader (that can be > > changed by setting the LD_ASSUME_KERNEL env variable) we have a different > > behavior. > > By setting the LD_ASSUME_KERNEL environment variable one can switch > between the newer NPTL and the older LinuxThreads. Both Helgrind and > exp-drd only support NPTL, not LinuxThreads. Indeed. But what I think oliv_m is saying is that the problem happens even when running the program normally, not on Valgrind. oliv_m, is that correct? J |
|
From: Julian S. <js...@ac...> - 2008-06-25 22:16:12
|
On Wednesday 25 June 2008 10:54, oliv_m wrote: > I also have this kind of problem with the pthread library in our project... > depending on the version taken by the loader (that can be changed by > setting the LD_ASSUME_KERNEL env variable) we have a different behavior. > One is exactly the same as mentioned here: the first sem_wait is not > blocking the threads even when the semaphore is initialized to 0. That's really not good. Can you write a small test program to show the problem? J |