ASan heap hardcoded address causes Docker crashes on Ubuntu
The author investigates why running AddressSanitizer inside Docker on Ubuntu intermittently causes crashes or hangs on about one in four runs. The analysis reveals that the issue stems from a collision between older ASan heap hardcoded addresses and higher default kernel address space randomization bits on newer Ubuntu hosts. The problem can be resolved either by adjusting the host kernel memory randomization setting or by using newer toolchains where the ASan heap location was updated. Open article →