Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::thread and helgrind
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2012-01-12 06:13:38


Frederick Roth wrote
>
> 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.
>
>

Hi, I missed you last post.

Anyway, the trace "Possible data race during read of size 4 at 0x46c6d32c by
thread #3" doesn't help me too much. Is there any way helring can give the
c++ variable names?

Best,
Vicente
 

--
View this message in context: http://boost.2283326.n4.nabble.com/boost-thread-and-helgrind-tp4261378p4288643.html
Sent from the Boost - Users mailing list archive at Nabble.com.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net