#197 test barrier fails

v1.0 (example)
closed-works-for-me
nobody
5
2011-08-03
2010-10-03
No

winpthreads , rev 3699, win 7, i7 2.66 GHz, 6 GB (issue is timing dependent)
- checkout and build this rev including test
- pthread.h: enable USE_COND_Semaphore + USE_MUTEX_CriticalSection
- run "test barrier"
* the test hangs at the end
Notes:
- timing dependent, see comment in test.c, add a printf , or a Sleep of 10ms to make it work again
- also USE_MUTEX_Mutex makes the problem vanish (besides the timing not related)
- probably a bug in USE_COND_Semaphore
- check your hardware if you can't reproduce it (maybe a longer Sleep helps)

Discussion

  • Kai Tietz

    Kai Tietz - 2011-08-03
    • status: open --> closed-works-for-me
     
  • Kai Tietz

    Kai Tietz - 2011-08-03

    Hi,

    winpthread got some review and code-base was improved. I've tested things as you described on my Win7 (i7 2600K) box and don't see this error anymore.

    So I close it. If you still have this issues with more recent version please don't hesitate to open an new bug for this.

    Regards,
    Kai

     

Log in to post a comment.