Publication Details

Static Deadlock Detection in Low-Level C Code

HARMIM Dominik, MARCIN Vladimír, SVOBODOVÁ Lucie and VOJNAR Tomáš. Static Deadlock Detection in Low-Level C Code. In: International Conference on Computer Aided Systems Theory (EUROCAST'22). Lecture Notes in Computer Science, vol. 13789. Cham: Springer Nature Switzerland AG, 2023, pp. 267-276. ISBN 978-3-031-25311-9. Available from: https://link.springer.com/chapter/10.1007/978-3-031-25312-6_31
Czech title
Statická detekce uváznutí v nízko-úrovňovém kódu v jazyce C
Type
conference paper
Language
english
Authors
Harmim Dominik, Ing. (DITS FIT BUT)
Marcin Vladimír, Ing. (FIT BUT)
Svobodová Lucie, Bc. (FIT BUT)
Vojnar Tomáš, prof. Ing., Ph.D. (DITS FIT BUT)
URL
Keywords

static analysis, abstract interpretation, function summaries, modular analysis, concurrent code, deadlock, Infer

Abstract

We present a novel scalable deadlock analyser L2D2 capable of handling C code with low-level unstructured lock manipulation. L2D2 runs along the call tree of a program, starting from its leaves, and analyses each function just once, without any knowledge of the call context. L2D2 builds function summaries recording information about locks that are assumed or known to be locked or unlocked at the entry, inside, and at the exit of functions, together with lock dependencies, and reports warnings about possible deadlocks when cycles in the lock dependencies are detected. We implemented L2D2 as a plugin of the Facebook/Meta Infer framework and report results of experiments on a large body of C as well as C++ code illustrating the effectiveness and efficiency of L2D2.

Published
2023
Pages
267-276
Proceedings
International Conference on Computer Aided Systems Theory (EUROCAST'22)
Series
Lecture Notes in Computer Science
Volume
13789
Conference
Eurocast 2022 -- 18th International Conference on Computer Aided Systems Theory, Las Palmas de Gran Canaria, Canary Islands, ES
ISBN
978-3-031-25311-9
Publisher
Springer Nature Switzerland AG
Place
Cham, CH
DOI
EID Scopus
BibTeX
@INPROCEEDINGS{FITPUB12997,
   author = "Dominik Harmim and Vladim\'{i}r Marcin and Lucie Svobodov\'{a} and Tom\'{a}\v{s} Vojnar",
   title = "Static Deadlock Detection in Low-Level C Code",
   pages = "267--276",
   booktitle = "International Conference on Computer Aided Systems Theory (EUROCAST'22)",
   series = "Lecture Notes in Computer Science",
   volume = 13789,
   year = 2023,
   location = "Cham, CH",
   publisher = "Springer Nature Switzerland AG",
   ISBN = "978-3-031-25311-9",
   doi = "10.1007/978-3-031-25312-6\_31",
   language = "english",
   url = "https://www.fit.vut.cz/research/publication/12997"
}
Back to top