Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVS event messages - add (optional!) stack traces #2513

Open
CDKnightNASA opened this issue Feb 12, 2024 · 0 comments
Open

EVS event messages - add (optional!) stack traces #2513

CDKnightNASA opened this issue Feb 12, 2024 · 0 comments
Assignees
Labels
cFE-EVS good first issue Good for newcomers

Comments

@CDKnightNASA
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When an application (or core module!) creates an event, particularly of the "error" or "critical" severity, it would be useful to have a stack trace as part of the event message.

Describe the solution you'd like
This should be an optional feature that is configurable at runtime to set a) the severity of events to record stack traces, b) the maximum stack depth to report, and c) whether to report symbol names or just addresses. It may also be useful to have this be compile-time configurable so that environments that never plan to use this feature would see no impacts.

At least for GCC-based environments, there's an API (https://www.gnu.org/software/libc/manual/html_node/Backtraces.html) for introspecting the call stack. I don't know if VXWorks or RTEMS or other realtime systems have this API.

Describe alternatives you've considered
Of course, for ground testing, gdb or other debugging features are sufficient to provide this information, assuming the tester started the core under a debugger or otherwise attached a debugger prior to the event being triggered.

Additional context

Requester Info
Christopher.D.Knight@nasa.gov

@CDKnightNASA CDKnightNASA self-assigned this Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cFE-EVS good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant