55

So my computer has lately started freezing completely when I run some programs that, in the past, would work great.

What I am unsure about however, is what logs that are available to me that could help me track down the issue after a reboot?

Thanks

Seth
  • 59,442
  • 44
  • 149
  • 201
Industrial
  • 1,748

3 Answers3

40

Check the content of:

/your/editor /var/log/syslog

If you are running Gnome, then you can check the logs using the gnome-system-log tool (perhaps need to install with sudo apt install gnome-system-log):

gnome-system-log

You can select the syslog in the left-hand side.

If you want to check the logs as they are getting produced:

tail -f /var/log/syslog

(Not useful after crash, though, as it shows only the last few lines before following new ones)

Eric Platon
  • 273
  • 2
  • 7
  • 2
    Check the dates of the syslog* files in /var/log, my particular hang occurred on a Friday night and had been renamed and compressed as syslog.2.gz by Monday. Log was full of cntlm events, which to me means I once again left my browser with dozens of tabs opened. Thus reminding me once more that one day I need to learn how to enable the out of memory killer in Ubuntu. – TheHairyOne Mar 26 '18 at 18:26
  • 1
    What do I look for in /var/log/syslog? Any keywords? – Anna May 26 '22 at 20:09
  • 1
    gnome-system-log opens up /var/log/syslog, /var/log/auth.log, and /var/log/dpkg.log. So, what is the difference between these 3 logs and which should we look at, and when and why? – Gabriel Staples Dec 20 '22 at 21:25
  • Why use an editor (write access) to read a file? – foo Jun 27 '25 at 17:13
16

If the whole machine is locking up, off the top of my head, these are the likely causes:

  • Overheating. You don't need logs to determine this, but fingers :)
  • GPU lockup. Is it an OpenGL (3D) application, and you don't normally run those? While locked up you should be able to ssh into it from another machine.
  • Thrashing. Does the hard drive light go on steadily when it locks up? Something is using too much RAM.
  • Other hardware problem. Run a memtest and/or another OS...
tumbleweed
  • 8,116
9

"my computer has lately started freezing completely when I run some programs"

What are those programs? The answer to your question is heavily depend on those "some programs" Anyway, check

/var/log/syslog

/var/log/kern.log Optionally you can use dmesg command to view kernel messages to check if something is wrong during boot process.

nobody
  • 701