
On Thu, 05 Jan 2012 09:04:46 +0100, Frederick Roth wrote:
On Wed, 04 Jan 2012 22:01:01 +0100, Vicente J. Botet Escriba wrote:
Le 04/01/12 09:46, Frederick Roth a écrit :
I am currently fooling around with boost::thread. After writing a short example program (featuring boost::thread and boost::interprocess::interprocess_semaphore), I ran helgrind against it and got some "Possible data race" errors.
could you add the reported "possible data race"?
Sure:
==2743== Possible data race during read of size 4 at 0x46c6d32c by thread #3 ==2743== at 0x46C5FE93: ??? (in /usr/lib/libboost_thread-mt.so.1.47.0) ==2743== by 0x467F8CD2: start_thread (in /lib/libpthread-2.14.90.so) ==2743== by 0x4670283D: clone (in /lib/libc-2.14.90.so) ==2743== This conflicts with a previous write of size 4 by thread #2 ==2743== at 0x46C5FFA1: ??? (in /usr/lib/libboost_thread-mt.so.1.47.0) ==2743== by 0x46C601A4:
boost::detail::set_current_thread_data(boost::detail::thread_data_base*) (in /usr/lib/libboost_thread-mt.so.1.47.0) ==2743== by 0x467F8CD2: start_thread (in /lib/libpthread-2.14.90.so) ==2743== by 0x4670283D: clone (in /lib/libc-2.14.90.so)
As no one called me a fool after posting my code I will assume that there is no obvious error in my code. I would still be interested if the problem is on my side or another. Does it make sense to repost this on the boost.threads development list or open a bug. I don't want to steal anybodies time but I am really interested in information about my problem. Fred