Catching real cause of android reboot I am currently using my phone with CM installed (newest release, clean install). For some reason the phone keeps rebooting at random moments, when sleeping (never when awake). I wonder if it is possible to find out the real reason of rebooting, other than checking /proc/last_kmsg: for me, it only states if it was caused by unsecure-watchdog-bite, or kernel panic. I am curious about finding out, which process' irresponsiveness caused the watchdog-bite, or what made the kernel panic.

Details:
Moto G xt1032, newest firmware
CM13.0, release ZNH5Y
recovery: twrp 3.0.2

Tl;dr: last kernel message is not informative enough about last restart reason.

Edit: link to kernel messages: https://1drv.ms/f/s!AqQWXVmn2ZoKonIJgnToo58XmoVy
You can try to use adb logcat command from the terminal/command prompt to examine continuously your device log. On your device has to be enabled USB debugging in Settings -&gt; Developer options section.

Or after the random reboot try 

su  
cat /proc/last_kmsg &gt; /mnt/sdcard/last_kmsg


from a terminal window on your device. You can download terminal app from Play.

For the su command your device has to be rooted.