This happens only if there are not active attachments at this point, e.g.:
- SS and FW=OFF: last user disconnects from the database
- CS and FW=OFF: any user disconnects from the database
- any arch and FW: the server is shutting down with active transactions
Unfortunately, some code parts attempt to access the NULL attachment pointer regardless.