User Tools

Site Tools


c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
c [2024/07/11 17:01] ninec [2025/02/20 12:47] (current) – [tsan] nine
Line 27: Line 27:
   target_compile_options(<build-target> PRIVATE -fsanitize=address)   target_compile_options(<build-target> PRIVATE -fsanitize=address)
   target_link_options(<build-target> PRIVATE -fsanitize=address)   target_link_options(<build-target> PRIVATE -fsanitize=address)
 +
 +==== tsan ====
 +
 +Problem when executing a binary:
 +  FATAL: ThreadSanitizer: unexpected memory mapping 0x5a36aaebd000-0x5a36aafd2000
 +
 +
 +Sulution, disable ASLR for testing:
 +  setarch --addr-no-randomize build/path/to/binary
 +
 +or:
 +  sudo sysctl vm.mmap_rnd_bits=30   # 30: partly, 28 totally
c.1720717307.txt.gz · Last modified: 2024/07/11 17:01 by nine