Boost logo

Boost Users :

Subject: Re: [Boost-users] [wave] assertion failed - multithread issue?
From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2009-05-23 10:44:15


> when parsing some cpp files via boost.wave using multiple threads, I
> randomly get a failed assertion.
>
> "Assertion failed: static_cast<RefCountType>(*d.begin()) != 0, file
> C:\projekte\libs\boost\include\boost-
> 1_38/boost/wave/util/flex_string.hpp, line 1216"
>
> I am pretty sure that this is a multi-thread issue, as when using only
> one thread to parse the files, everything works fine.
> Unfortunately I cannot give you more specific information as I cannot
> get gdb to run on my system.
> I am using gcc 4.3.3

Just got back to this after a long time. After some poking I found a race condition, indeed.
It's fixed in SVN trunk. Could you verify, please?

Regards Hartmut


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