From c9c30c8c15d01bf6dcf59776fbb3263b19269454 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 18 Jan 2024 21:53:22 +0100 Subject: [PATCH] clarify asan log instructions --- pages/Crashes and Bugs/_index.md | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pages/Crashes and Bugs/_index.md b/pages/Crashes and Bugs/_index.md index 1c75c29..1f6d841 100644 --- a/pages/Crashes and Bugs/_index.md +++ b/pages/Crashes and Bugs/_index.md @@ -53,16 +53,12 @@ recommended to do in tty clone wayland (`git clone --recursive https://gitlab.freedesktop.org/wayland/wayland`) clone hyprland (`git clone --recursive https://github.com/hyprwm/Hyprland`) -edit your config to have a terminal that will launch: +add these envs to reset ASAN_OPTIONS for children and set LD_PRELOAD: ``` -bind = SUPER, Q, exec, LD_PRELOAD=/usr/lib/libasan.so kitty -``` -(I put kitty, on `SUPER+Q` can be anything) - -add this env to reset ASAN_OPTIONS for children: -``` -env = ASAN_OPTIONS, +env = ASAN_OPTIONS,detect_odr_violation=0 +env = LD_PRELOAD,/usr/lib/libasan.so.8.0.0 ``` +_Please note to check the asan .so version on your system with `ls /usr/lib | grep libasan`_ wayland: ``` @@ -89,11 +85,11 @@ ASAN_OPTIONS="detect_odr_violation=0,log_path=asan.log" ./build/Hyprland -c ~/.c open your terminal -to open any app just add `LD_PRELOAD=/usr/lib/libasan.so` to the beginning of the cmd - Do whatever you used to do in order to crash the compositor. -Go to `~` or `cwd` and look for `asan.log.XXXXX` files. Zip all and attach to the issue. +Please note many apps will refuse to launch. Notably complex applications, like e.g. browsers. + +Once it crashes, go to `~` or `cwd` and look for `asan.log.XXXXX` files. Zip all and attach to the issue. once you are done, to revert your horribleness of no app opening without the ld preload just go to the cloned wayland and do ``` @@ -105,4 +101,4 @@ sudo ninja -C build install To revert the changes to hyprland and wlroots, do inside the cloned hyprland: ``` make all && sudo make install -``` \ No newline at end of file +```