Project

General

Profile

Actions

Bug #8666

closed

Acquire locks when dealing when build commands cache

Added by Evgeny Novikov almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Urgent
Category:
Program fragments generation
Target version:
Start date:
01/15/2018
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

At the moment two methods core.lkvog.LKVOG#process_linux_kernel_build_cmd_desc and core.lkvog.LKVOG#_find_cc_full_desc_files_ operates with build commands cache linux_kernel_build_cmd_out_file_desc without any explicit locking while each of them performs several nonatomic actions. Maybe this can be a reason of extremely rare data races (e.g. #8664, although I'm not sure that was a data race...).

I suppose to explicitly acquire locks around all operations with shared dictionary. To do that it is most likely required to introduce multiprocessing.managers.SyncManager.Lock.


Related issues 1 (0 open1 closed)

Related to Klever - Feature #8664: Refactor relating build commandsRejected01/15/2018

Actions
Actions

Also available in: Atom PDF