Unlock instant, AI-driven research and patent intelligence for your innovation.

A Method Applicable to Multi-task Software Process Stack Usage Depth Detection

A deep detection, multi-tasking technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of undetectable stack overflow code, complex testing and analysis, etc.

Active Publication Date: 2018-08-07
BEIJING INST OF SPACECRAFT SYST ENG
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The main disadvantage of dynamic testing technology is that it can only detect code that actually overflows dynamically
In fact, only a very small amount of code can trigger stack overflow, so dynamic testing technology cannot detect all possible stack overflow codes, and the stack depth tested by it is often less than or equal to the actual maximum depth of the stack
In addition, the above-mentioned test methods generally require the use of special tools, and the test and analysis are relatively complicated, which may not be applicable to spacecraft application software.

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
  • A Method Applicable to Multi-task Software Process Stack Usage Depth Detection
  • A Method Applicable to Multi-task Software Process Stack Usage Depth Detection
  • A Method Applicable to Multi-task Software Process Stack Usage Depth Detection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The invention provides a process stack usage depth detection method suitable for multi-task software. The large-scale multi-tasking spaceborne software runs on the operating system software, which receives and processes the remote control instructions injected through the measurement and control channel, and downloads the telemetry data programmed on the star to the ground receiving equipment through the measurement and control channel. In the present invention, the uplink remote control channel of the spacecraft is used to inject the stack depth detection software into the onboard software through on-orbit maintenance. After the detection is completed, the detection result is read out through the memory through the downlink telemetry channel. to the receiving equipment on the ground, the operation steps are as follows figure 1 shown.

[0030] Taking the on-board application software running on the RTEMS or VxWroks operating system as an example, at the beginning of th...

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 suitable for process stack use depth detection of multi-task software. The method comprises the steps of firstly, generating a stack depth detection instruction on the ground; secondly, creating a plurality of processes and allocating stack regions and process control blocks to the processes; thirdly, initializing the stack regions of all the processes into specific identifiers; fourthly, executing the processes and enabling application software to execute a maximum running path test; fifthly, upwards injecting the stack depth detection instruction to an SRAM run by the task software; and finally, performing detection to obtain first addresses which are not specific identifiers in the processes, making a calculation to obtain a use depth ratio of the ith process stack region, and downwards transmitting the use depth ratio to the ground through a test control channel. Compared with the prior art, the method has the advantages that by generating the stack depth detection instruction on the ground, the shortcoming that general stack depth detection can be carried out by installing professional detection software or by virtue of special hardware is overcome; and the method is simple and easy to use.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a method suitable for deep detection of multi-task software process stack usage. Background technique [0002] The spacecraft central processing unit software (or integrated processing unit software) is usually a large embedded software, which consists of operating system software and application software. Among them, the application software runs on the operating system software, and the operating system software is the application software Provide functions such as hardware management, interrupt management, and process management. The on-board operating system software widely adopts RTEMS system or VxWorks system. On-orbit spacecraft or satellites are limited by the hardware level. The memory resources of spaceborne equipment computers are generally only a few megabytes. The allocation method uses static allocation to avoid the risk of memory leaks. At the same time, in order to...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/364
Inventor 董振辉张红军郭坚王斌韦涌泉詹盼盼潘莉贾卫松
Owner BEIJING INST OF SPACECRAFT SYST ENG