mirror of
https://github.com/apache/nuttx.git
synced 2026-05-13 10:38:40 +08:00
8e58245524
After compilation, when starting nsh, the following crash occurs. ==2500151==Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING. ==2500151==ASan shadow was supposed to be located in the [0x1ffff000-0x3fffffff] range. ==2500151==Process memory map follows: 0x30000000-0x33dd4000 /nuttx/nuttx To avoid overlaps, change the starting address of the text segment. Using Ttext-segment=0x30000000 causes a crash when starting the 32-bit SIM. Using -Ttext-segment=0x50000000 causes a crash when starting the 64-bit SIM. Setting -Ttext-segment=0x40000000 resolves all issues perfectly. Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>