Skip to content

Commit

Permalink
docs: linux core dump instructions (#2690)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Jun 24, 2020
1 parent 4af8c68 commit 924a884
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions browser_patches/webkit/cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,15 @@ In `Source\WTF\wtf\win\DbgHelperWin.cpp` replace
```#if !defined(NDEBUG)``` with ```#if 1```

Then regular `WTFReportBacktrace()` works.

### Enable core dumps on Linux

```bash
mkdir -p /tmp/coredumps
sudo bash -c 'echo "/tmp/coredumps/core-pid_%p.dump" > /proc/sys/kernel/core_pattern'
ulimit -c unlimited
```
Then to read stack traces run the following command:
```bash
Tools/jhbuild/jhbuild-wrapper --wpe run gdb --batch -ex "thread apply all bt" WebKitBuild/WPE/Release/bin/MiniBrowser /tmp/coredumps/core-pid_29652.dump &> trace.txt
```

0 comments on commit 924a884

Please sign in to comment.