nasa / cFE

The Core Flight System (cFS) Core Flight Executive (cFE)
Apache License 2.0
413 stars 203 forks source link

Hard Lockup if user attempts to start library via CFE_ES_START_APP_CC #1087

Open dmknutsen opened 3 years ago

dmknutsen commented 3 years ago

Describe the bug A hard lockup occurs if a user attempts to start a library with a stack size of 8192 via the CFE_ES_START_APP_CC command. The only known recovery is to power cycle the unit. Worth note, is that this applies only to our SP0 (VxWorks 6.9) and is not repeatable on a Linux system.

This bug was discovered when testing a CTF script with a copy and paste error in it. Libraries are not intended to be started via the start app command, but given the severity of the error...I wanted to submit an issue to better understand it.

To Reproduce Steps to reproduce the behavior:

  1. Start sample_lib via CFE_ES_START_APP_CC command (Note that stack size must be >= CFE_PLATFORM_ES_DEFAULT_STACK_SIZE in order to produce error)

Expected behavior No Lockup

System observed on:

Additional context Add any other context about the problem here.

Reporter Info Dan Knutsen NASA Goddard

dmknutsen commented 3 years ago

Updated status: We recently noticed some additional errors that implied there was an issue with the kernel. After flashing a new kernel the hard lockup issue was resolved. With the new kernel, if a user attempts to start a library with a stack size of 8192 via the CFE_ES_START_APP_CC command, the FSW detects a fatal error and reboots successfully.