mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 09:45:58 +01:00
update debug coredump instructions
This commit is contained in:
parent
17b4a2786d
commit
d39ed9254a
1 changed files with 11 additions and 8 deletions
|
@ -58,14 +58,17 @@ coredumpctl info [PID]
|
||||||
where `[PID]` is the PID you remembered.
|
where `[PID]` is the PID you remembered.
|
||||||
|
|
||||||
## Obtaining the debug Hyprland coredump
|
## Obtaining the debug Hyprland coredump
|
||||||
In very rare cases, the normal coredump would not be enough.
|
A debug coredump provides more information for debugging and may speed up the process of fixing the bug.
|
||||||
If that's the case, you could try obtaining the debug coredump.
|
|
||||||
|
Make sure you're on latest git. Run `git pull --recurse-submodules` to sync everything.
|
||||||
|
|
||||||
1. [Compile Hyprland with debug mode](http://wiki.hyprland.org/Contributing-and-Debugging/#build-in-debug-mode)
|
1. [Compile Hyprland with debug mode](http://wiki.hyprland.org/Contributing-and-Debugging/#build-in-debug-mode)
|
||||||
> Note: The config file used will be `hyprlandd.conf` instead of `hyprland.conf`
|
> Note: The config file used will be `hyprlandd.conf` instead of `hyprland.conf`
|
||||||
|
|
||||||
2. Reproduce the crash in debug mode.
|
2. `cd ~`
|
||||||
3. `env DEBUGINFOD_URLS="https://debuginfod.archlinux.org/" coredumpctl debug [PID]`(see section above)
|
3. For your own convenience, launch Hyprland from a tty with the envvar `ASAN_OPTIONS="log_path=asan.log"`:
|
||||||
4. Wait until the `(gdb)` appears
|
- If using a wrapper, add `export ASAN_OPTIONS="log_path=asan.log"` in a separate line before the `exec Hyprland` line.
|
||||||
5. If gdb asks you `press y to continue without paging?` Type `y`
|
- If launching straight from the tty, execute `ASAN_OPTIONS="log_path=asan.log" ~/path/to/Hyprland`
|
||||||
6. `bt -full`
|
4. Reproduce the crash. Hyprland should instantly close.
|
||||||
7. copy the output of the command and provide that.
|
5. Check out your `~` and find a file called `asan.log.XXXXX` where `XXXXX` will be a number corresponding to the PID of the Hyprland instance that crashed.
|
||||||
|
6. That is your coredump. Attach it to your issue.
|
||||||
|
|
Loading…
Reference in a new issue