Hi, The attached test intermittently fails on my panda running the 11.09 (3.0.0-1404-linaro-lt-omap) kernel; but it works on guinep and Michael's ursa and pavo running much older kernels; I'd appreciate it if people could try it on whatever machine with whatever kernel they have and report the result to me so I can try and nail down what it fails on. (It fails in both natty and oneiric chroots for me)
To compile:
gcc pthreadtest.c -o pthreadtest -lpthread
To run:
for SEQ in `seq 1 1000` do ./pthreadtest done
if it finishes then its fine, for me it'll fail sooner or later with:
Start thread test 0x110dc 0x110dc
and just stop. (It sits there in a futex inside pthread_cond_wait on cond_wait's internal structure)
Dave