Possible thread-safety issue in cmakemanager ?

Andreas Pakulat apaku at gmx.de
Mon Apr 19 06:44:22 UTC 2010


On 18.04.10 23:58:54, Sandro Andrade wrote:
> I was running some problems in controlflowgraph plugin regarding cmakeutils
> and kconfig thread-safety stuff. Basically when I had
> 
> multiple threads generating graphs occasionally I got the crash display
> below. After including a QMutex in duchaincontrolflow.cpp:500 crashes were
> solved, multiple graph generation threads can now live together. However,
> the same crash (and backtrace) is occasionally produced when generating a
> lot of graphs while background parsing is running.
> 
> 
> Apparently some thread from background parser or cmakemanager stuff running
> along with controlflowgraph thread is causing
> 
> the creash. IIRC, that would be a case for the foreground lock but, while it
> isn't already fully usable, how should I address this issue by now ? I
> wouldn't like to disable graph generation while parser is running since that
> might make graphs unavailable for a long time.

You're not by any chance running libc 2.10.0 or 2.10.1? It had a bug in
its malloc_printerr implementation causing race conditions which would
result in such backtraces.

If thats not the problem it would be interesting to see where the other
threads are, i.e. if the problem is that two threads access kconfig or
kstandarddirs or inside the cmake support...

Andreas

-- 
You will be recognized and honored as a community leader.




More information about the KDevelop-devel mailing list