- **status**: assigned --> fixed
- **Comment**:
commit e0913eb6d82bb5bc852f35ad458eafbd236d46cd
Author: Tai Huynh Nguyen <[email protected]>
Date: Fri Sep 18 08:07:20 2026 +0000
mds: fix coredump when mds agent terminates by calling exit [#3405]
An MDS agent process that terminates by calling exit() while flow-control
threads are still running can produce a coredump.
exit() destroys the flow-control objects at static-destructor time but
does not stop the still-running flow-control and worker threads.
A surviving thread then accesses that already-destroyed objects, causing
a use-after-free that crashes the process.
The flow-control objects will be initialized as the immortal objects
which alive for the whole process lifetime so it outlives exit().
Threads racing with process termination no longer touch freed memory,
avoiding the coredump.
---
**[tickets:#3405] mds: mds agent raise coredump when it terminates by calling
exit**
**Status:** fixed
**Milestone:** 5.27.01
**Created:** Thu Sep 17, 2026 11:15 AM UTC by Nguyen Huynh Tai
**Last Updated:** Fri Sep 18, 2026 04:03 AM UTC
**Owner:** Nguyen Huynh Tai
An MDS agent process that terminates by calling exit() while flow-control
threads are still running can produce a coredump.
exit() destroys the flow-control objects at static-destructor time but does
not stop the still-running flow-control and worker threads. A surviving
thread then accesses that already-destroyed objects, causing a
use-after-free that crashes the process
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets