The handler stack is a global fixed array with no locking. If atexit() can be called concurrently, or if an atexit handler calls atexit(), behaviour is undefined.
Impact: potential memory corruption or unexpected handler ordering, depending on call patterns.