Skip to content

Core-dump on stalled clean exit - #6134

Merged
markhannum merged 1 commit into
bloomberg:mainfrom
markhannum:abort_on_stalled_exit
Aug 13, 2026
Merged

Core-dump on stalled clean exit#6134
markhannum merged 1 commit into
bloomberg:mainfrom
markhannum:abort_on_stalled_exit

Conversation

@markhannum

Copy link
Copy Markdown
Contributor

A stalled clean_exit currently just dies on the default SIGALRM disposition (or aborts only in debug builds), leaving nothing to diagnose. This installs a SIGALRM handler in clean_exit that logs and aborts, so the exit alarm produces a corefile showing what we were stuck on. Gated on new tunable abort_on_stalled_exit (gbl_abort_on_stalled_exit), default on. Only the clean-exit path is affected; the bdb watchdog path is unchanged.

Install a SIGALRM handler in clean_exit that aborts when the exit alarm
fires, gated on new tunable gbl_abort_on_stalled_exit (default on).
Replaces the NDEBUG-only call_abort handler.

Signed-off-by: Mark Hannum <mhannum@bloomberg.net>

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
cdb2api_rollback_rc [failed with core dumped]
cdb2jdbc
consumer_non_atomic_default_consumer_generated **quarantined**
sc_downgrade [timeout] **quarantined**

@markhannum
markhannum merged commit bdd6bd1 into bloomberg:main Aug 13, 2026
5 checks passed
@markhannum
markhannum deleted the abort_on_stalled_exit branch August 13, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants