Skip to content

Conversation

@mplegendre
Copy link
Member

A user reported spindle crashes, which came from the get_nprocs routine called under spindle malloc usage.
Upon investigation this was https://sourceware.org/bugzilla/show_bug.cgi?id=32483. The application created a thread that reached spindle and called get_nprocs(). That routine called 'isspace' routine, which access locale, and triggered the bug described above and crashed.

This PR checks for new threads using a safe version of TLS, then manually resets the locale for any new threads. That works around the latter sigsegv that would come under spindle malloc usage.

This PR also adds a set of heap debugging routines (which are currently off) that were used while diagnosing this.

We also added a test. The test doesn't reproduce the original fault and could use more work, but is still a useful test.

… new thread. Also heap debugging routines and test
@mplegendre mplegendre merged commit 2a566fa into llnl:devel Dec 1, 2025
3 checks passed
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.

1 participant