Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(webkit): update core dump analisys instructions (#2778)

Yury Semikhatskyd6338b0caed3
diff --git a/browser_patches/webkit/cheatsheet.md b/browser_patches/webkit/cheatsheet.md
index 63b7fec56d..96c7f4d35d 100644
--- a/browser_patches/webkit/cheatsheet.md
+++ b/browser_patches/webkit/cheatsheet.md
@@ -13,7 +13,15 @@ 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
+# To find out crashing process name
+file core-pid_29652.dump
+# Point gdb to the local binary of the crashed process and the core file
+gdb $HOME/.cache/ms-playwright/webkit-1292/minibrowser-gtk/WebKitWebProcess core-pid_29652
+# Inside gdb update .so library search path to the local one
+set solib-search-path /home/yurys/.cache/ms-playwright/webkit-1292/minibrowser-gtk
+# Finally print backtrace
+bt
```
\ No newline at end of file