Abstract
With the rapid development of Space technology, on-board software plays a more and more important role in the spacecraft. Stack is an important storage resource for on-board software. If the allocation space of stack is not enough, it may cause stack overflow and software crash. Based on SPARC V8 architecture, this paper introduces a static method for detection of stack overflow. This method does not need to run the on-board software dynamically or design complex test cases. By directly analyzing assembly file generated by the compiler, the stack usage space and the call relationship of functions can be obtained. Taking the entry function of each task as the starting point of stack depth analysis, the function call path is traversed by the stack data structure, and the maximum stack depth of each task is finally calculated. An instance of a task stack detection shows that by analyzing the static assembly file, the maximum depth of stack can be obtained directly, the risk of stack overflow can be avoided, and the reliability and security of on-board software can be improved.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
He X, Sun Y (2007) Engineering realization of software in central terminal unit of satellite data management system. Spacecr Eng 16(5):47–53
Yuan Y (2011) The research of static analysis for stack overflow of embedded software. Beijing Jiaotong University, Beijing
Beijing Microelectronics Technology Institute (2017) BM3803FMGRH 32Â bit space processor user manual. Beijing Microelectronics Technology Institute, Beijing
SPARC International, Inc (1991) The SPARC architecture manual version 8. SPARC International, Inc., USA
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Zhang, T., Zhang, R., Li, R., Fan, Y., Cheng, H. (2020). A Static Method for Stack Overflow Detection Based on SPARC V8 Architecture. In: Liang, Q., Wang, W., Liu, X., Na, Z., Jia, M., Zhang, B. (eds) Communications, Signal Processing, and Systems. CSPS 2019. Lecture Notes in Electrical Engineering, vol 571. Springer, Singapore. https://doi.org/10.1007/978-981-13-9409-6_74
Download citation
DOI: https://doi.org/10.1007/978-981-13-9409-6_74
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-13-9408-9
Online ISBN: 978-981-13-9409-6
eBook Packages: EngineeringEngineering (R0)