I'm having a real problem with Emacs in that it keeps breaking my entire system in irregular intervals. More precisely, at some point my screen starts to go black, then flickers back up again, then goes black again and so on until I shut it down hard. I haven't seen a pattern as to when this happens but I feel like it happens with increasing frequency. I looked up the manual entry on crashes and it says that there should be a crash report file
.xsession-errors, but I can't find it. Emacs might not have time to create a crash report anyway since the entire system is breaking, but it also keeps crashing the usual way and I still can't find the file. I'd say that it looks like Emacs uses up all the memory when it breaks the system (I've had a similar problem with Firefox), but I have 40gb of RAM, and I can't imagine it burns through all of that.
also doesn't give any useful output and cuts off before the problem manifests itself. Can someone maybe guide me through the debugging process?
emacs -Q(no init file)? If not, try bisecting your init file to find the culprit. (But if it really happens only intermittently/irregularly then this might not help. In that case, try to keep track of what you've done before the incident. If you suspect certain functions/actions, you can make them log some info etc.)
memtestand see if that flags anything.