An Improved RTEMS Supporting Real-Time Detection of Stack Overflow

Zhang, Rui and Du, Yan and Zhang, Tao and Qiu, Qi and Mao, Liang and Niu, Jiaxiang (2019) An Improved RTEMS Supporting Real-Time Detection of Stack Overflow. In: Wireless and Satellite Systems. 10th EAI International Conference, WiSATS 2019, Harbin, China, January 12–13, 2019, Proceedings, Part I.

[thumbnail of 31482.pdf] PDF
31482.pdf

Download (591kB)

Abstract

Aiming at the common problem of stack overflow in satellite software, this paper improves the RTEMS operating system which is supporting real-time stack use depth and overflow detection. Taking the on-board software based on TSC690F processor as an example, the accessible area and unaccessible area are set for each thread stack by using the memory access protection mechanism provided by the processor. The improved RTEMS shared the access protection mechanism among threads through context switching. A trap handler is designed to take over write protection error traps, calculate stack usage depth, and monitor stack overflow in real time. The core module performance test and stack detection instance verification show that the improved RTEMS has little effect on the software performance, so that the software can detect the stack depth online and real-time. By using this method, the software is still manageable in case of stack overflow, rather than runaway crash, and the reliability of the software is improved.

Item Type: Conference or Workshop Item (UNSPECIFIED)
Date Deposited: 04 Mar 2026 12:01
Last Modified: 20 Nov 2026 11:51
URI: https://eprints.eai.eu/id/eprint/22292

Actions (login required)

View Item
View Item