Skip to main content

A Static Method for Stack Overflow Detection Based on SPARC V8 Architecture

  • Conference paper
  • First Online:
Communications, Signal Processing, and Systems (CSPS 2019)

Part of the book series: Lecture Notes in Electrical Engineering ((LNEE,volume 571))

  • 31 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 629.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 799.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 799.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. He X, Sun Y (2007) Engineering realization of software in central terminal unit of satellite data management system. Spacecr Eng 16(5):47–53

    Google Scholar 

  2. Yuan Y (2011) The research of static analysis for stack overflow of embedded software. Beijing Jiaotong University, Beijing

    Google Scholar 

  3. Beijing Microelectronics Technology Institute (2017) BM3803FMGRH 32 bit space processor user manual. Beijing Microelectronics Technology Institute, Beijing

    Google Scholar 

  4. SPARC International, Inc (1991) The SPARC architecture manual version 8. SPARC International, Inc., USA

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tao Zhang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics