HarbourMasters / HarbourMasters/Shipwright

texture issues with ASLR off (default when using `gdb`)

Open
#6,702 4 comments 0 reactions 1 assignee Claimed by @briaguya0 View on GitHub
libultraship
Dominant language
C
Stars
5.4k
Forks
837
Avg merge
1d 9h
Merged PRs (30d)
72

Description

experienced on https://github.com/HarbourMasters/Shipwright/commit/b424e4d57ed34ce9943d6bbe2d2b5703c5f4ca2e

using `ublue-os/fedora-toolbox` distrobox on bazzite dx

can repro by running `soh.elf` with gdb (or hitting the debug button in vscode), or by running `setarch --addr-no-randomize ./soh.elf ` (https://man7.org/linux/man-pages/man8/setarch.8.html)

able to work around the issue temporarily by adding the following `settings.json`

```json
{
"cmake.debugConfig": {
"setupCommands": [
{ "description": "Keep ASLR on, SoH has an ASLR-sensitive bug", "text": "set disable-randomization off" }
]
}
}
```

Image
Image
Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.