Closed dgarske closed 1 year ago
Simulator test gives segmentation fault on linux.
Reproduce with:
make test-sim-internal-flash-with-update
then
tools/scripts/sim-sunnyday-update.sh
I suspect two different strategies need to be used on Mac vs GNU due to the differences in mmap "hint pointer" handling.
@danielinux I could not reproduce. What was your .config? I've only seen a seg fault if mmap returns a 64-bit pointer and parts of the code assume 32-bit when the address gets passed around.
My bad, I was testing side-by-side, with the same config as master
. I did not realize the address changed in the example config
ARCH_64BIT
and added haladdr_t for address type.