Google Chrome - Crash Dump Location

白昼怎懂夜的黑 提交于 2019-12-03 23:18:23

The *.dmp files are stored in /tmp/, and this has nothing to do with the "Automatic crash reporting" checkbox. The file is also not related to the hash stored in ~/.config/google-chrome/

In ~/.config/google-chrome/Crash Reports/uploads.log:

1429189585,5bddea9f7433e3da

From using , the crash dump file for this particular report was:

chromium-renderer-minidump-2113a256de381bce.dmp

Solution:

root@localhost:-$ mkdir /tmp/misc && chmod 777 /tmp/misc
root@localhost:-$ cd /tmp
root@localhost:-$ watch -n 1 'find . -mmin -1 -exec cp {} /tmp/misc/ \;'

Then, as a regular user (not root):

google-chrome --enable-logging --v=1

Once you see files created by the watch command, run:

root@localhost:-$ ls -l
-rw-------  1 root root 230432 Apr 16 09:06 chromium-renderer-minidump-2113a256de381bce.dmp
-rw-------  1 root root 230264 Apr 16 09:12 chromium-renderer-minidump-95889ebac3d8ac81.dmp
-rw-------  1 root root 231264 Apr 16 09:13 chromium-renderer-minidump-da0752adcba4e7ca.dmp
-rw-------  1 root root 236246 Apr 16 09:12 chromium-upload-56dc27ccc3570a10
-rw-------  1 root root 237247 Apr 16 09:13 chromium-upload-5cebb028232dd944

Now you can use breakpad to work on the *.dmp files.

Google Chrome - Crash Dump Location

To generate the Crash Dump locally,

 CHROME_HEADLESS=1 google-chrome

The .dmp files are then stored in ~/.config/google-chrome/Crash Reports

Produce Stack Trace

  1. Check out and add depot_tools to your PATH (used to build breakpad)

    git clone https://chromium.googlesource.com/chromium/tools/depot_tools
    export PATH=`pwd`/depot_tools:"$PATH"
    
  2. Check out and build breakpad (using fetch from depot_tools)

    mkdir breakpad && cd breakpad
    fetch breakpad
    cd src
    ./config && make
    
  3. To produce stack trace without symbols:

    breakpad/src/processor/minidump_stackwalk -m /path/to/minidump
    

More here https://www.chromium.org/developers/decoding-crash-dumps

Personally Preferred Method

  1. Enable crash reporting:

    Chrome menu > Settings > Show advanced settings > Tick "Automatically send usage statistics and crash reports to Google"

  2. Go to chrome://crashes > File bug > Takes you to crbug.com > Complete report leaving the auto-added report_id field unchanged.

  3. Someone from the Chrome/Chromium team will follow up. They can provide you with your stack trace and aid at resolving the issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!