System crash, how to troubleshoot?

Just after I copied a region, my whole system froze. Since this isn’t a situation where I can start Ardour on a command line and see what it spits out, how do I set things up so I can get useful troubleshooting info?

Using 4.7.

It is possible to attach gdb to a running process. This is not explicitly documented on that page, but is widely documented in a non-Ardour-specific context online. If, however, it isn't a debug build, then the information obtained via gdb will be of limited usefulness.

Thanks. This happens rarely, but I’ll keep this in mind if it gets any worse.