Method for detecting single-variable atom violation defects

A single-variable, atomic technology, applied in the field of interrupting concurrent program defects, can solve the problems of single-variable atomicity violation defect detection accuracy and low efficiency

Pending Publication Date: 2021-04-09
北京轩宇信息技术有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by this application is: aiming at the low accuracy and efficiency of detection of univariate atomicity violation defect in the prior art, this application provides a detection method for univariate atomicity violation defect, provided by the embodiment of this application In the scheme, the feasibility analysis of the main program's two-time access sequence is analyzed separately, and the feasibility analysis of the three-time access sequence plus interrupt program access is carried out according to the feasibility analysis results of the main program's two-time access sequence, that is, through multi-stage analysis The method improves the accuracy of atomic violation defect detection; and adopts the bottom-up modular analysis method, which not only avoids repeated analysis, reduces a large amount of calculation overhead, improves the efficiency of atomic violation defect detection, but also avoids the traditional method path Explosion, the disadvantage of not being able to handle medium to large programs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for detecting single-variable atom violation defects
  • Method for detecting single-variable atom violation defects

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In the solutions provided by the embodiments of the present application, the described embodiments are only some of the embodiments of the present application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0032] A method for detecting univariate atomic violation defects provided by the embodiment of the present application will be further described in detail below in conjunction with the accompanying drawings. The specific implementation of the method may include the following steps (the method flow is as follows: figure 1 shown):

[0033] Step 101, converting the source code of the preset interrupt-driven software into an intermediate representation LLVM IR, and constructing a program dependency graph according to the intermediate representation, wherein the preset interrupt-driven s...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for detecting single-variable atomic violation defects, and the method comprises the following steps: converting a source code of preset interrupt-driven software into an intermediate representation form LLVM IR, and constructing a program dependency graph according to the intermediate representation form; constructing an explosion hypergraph according to the program dependence graph and a preset IFDS framework, analyzing the main program data flow according to the explosion hypergraph to determine two accessible access sequences of each global variable serial, and analyzing the feasibility of the two access sequences to obtain a first analysis result; determining at least one shared global variable according to the first analysis result, determining a three-time access sequence corresponding to each shared global variable, analyzing the feasibility of the three-time access sequence to obtain a second analysis result, determining atomic violation defects according to the second analysis result, and generating a defect report. According to the invention, the technical problems of low accuracy and low efficiency of single-variable atomicity violation defect detection in the prior art are solved.

Description

technical field [0001] The present application relates to the technical field of interrupting concurrent program defects, in particular to a detection method for univariate atomic violation defects. Background technique [0002] Interrupt data access conflict is a concurrency defect in interrupt-driven software, specifically refers to accessing the same shared data between the main program and interrupt (or interrupt and interrupt) at a specific timing, resulting in unexpected modification of variable values ​​in the software, Abnormalities such as the atomicity of the calculation process being destroyed, these anomalies directly affect the reliability of aerospace embedded software. Interrupt data access conflicts include data races, atomic violations, and order violations. Among them, atomic violation defects refer to any two consecutive accesses to the same variable in the main program as an atomic area. The case in which variables have overlapping read and write accesse...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/366
Inventor 李超陈睿王博详于婷婷高栋栋
Owner 北京轩宇信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products