The Scheduler repeatedly crashes with a core file after receiving an error that states "terminate called after throwing an instance of 'std::out_of_range'"
The root cause of the Scheduler crash was an AFM message coming from an agent that had garbage characters at the beginning. The agent was repeatedly sending the message so the Scheduler crashed every time it was sent.
The root cause for the malformed AFM message from the agent was due to cross-linking in the filesystem on the agent machine.
Resolved by deleting the contents of the <AGENT_INSTALL>/database directory and restarting the agent.
An alternative resolution would be to run fsck to clean up as many of the crosslinked files as possible and then do a cold start on the agent. The steps for agent cold start are...
Edit the agentparm.txt file and add this parameter...
Restart the agent service
Once it is restarted, remove the added parameter from agenparm.txt. No need to restart again after this. You are just removing it so that future restarts will be warm.