Symptom
Core file is seen while configuring S2S VPN with certificate authentication configuration.
Conditions
it was consistent issue while Configuring S2S VPN with CA Certificate authentication.
I've mentioned other condition in Further Problem Description.
Further Problem Description
We had seen this issue when same session context was used for raw crypto encryption and decryption and we were freeing last session using atomic locks. Since this mechanism was no longer working so we made the changes in such a way that raw crypto encrypt/decrypt session will create/free every time.
NOTE: We came across this issue when certificate authentication configuration was used. but without certificate or pre-shared authentication can hit this issue because raw crypto encrypt/decrypt session involved during VPN handshake.