While I never had this happen on my Ubuntu Web Server, I have known a system in my life that seems to panic and lock up. Ubuntu Server doesn’t have this enabled by default, so I enabled it by adding the following to /etc/sysctrl.conf

‘kernal.panic=60’

This will auto reboot my server 60 seconds after a kernel panic