Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

other(asan): ASan cannot proceed Shadow memory range correctly #146

Closed
RingsC opened this issue Apr 24, 2024 · 0 comments
Closed

other(asan): ASan cannot proceed Shadow memory range correctly #146

RingsC opened this issue Apr 24, 2024 · 0 comments

Comments

@RingsC
Copy link
Contributor

RingsC commented Apr 24, 2024

Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly.

==155884==Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING.
==155884==ASan shadow was supposed to be located in the [0x00007fff7000-0x10007fff7fff] range.
==155884==This might be related to ELF_ET_DYN_BASE change in Linux 4.12.
==155884==See https://github.com/google/sanitizers/issues/856 for possible workarounds.
==155884==Process memory map follows:
	0x061155cae000-0x061156000000	
	0x061156000000-0x061156028000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x061156028000-0x0611561bd000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x0611561bd000-0x061156215000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x061156215000-0x061156216000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x061156216000-0x06115621a000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x06115621a000-0x06115621c000	/usr/lib/x86_64-linux-gnu/libc.so.6
	0x06115621c000-0x061156229000	
	0x061156400000-0x06115649a000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x06115649a000-0x0611565ab000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x0611565ab000-0x06115661a000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x06115661a000-0x06115661b000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x06115661b000-0x061156626000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x061156626000-0x061156629000	/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
	0x061156629000-0x06115662c000	
	0x06115682b000-0x061156895000	/home/lihao/workshop/shannon-bin/lib/private/libprotobuf-lite.so.3.19.4
	0x061156895000-0x0611569ad000	/home/lihao/workshop/shannon-bin/lib/private/libprotobuf-lite.so.3.19.4
	0x0611569ad000-0x0611569f0000	/home/lihao/workshop/shannon-bin/lib/private/libprotobuf-lite.so.3.19.4
	0x0611569f0000-0x0611569f2000	/home/lihao/workshop/shannon-bin/lib/private/libprotobuf-lite.so.3.19.4
	0x0611569f2000-0x0611569ff000	/home/lihao/workshop/shannon-bin/lib/private/libprotobuf-lite.so.3.19.4
	0x0611569ff000-0x061156a00000	
	0x061156a00000-0x061156ab2000	/home/lihao/workshop/shannon-bin/lib/private/libcrypto.so.3
	0x061156ab2000-0x061156d11000	/home/lihao/workshop/shannon-bin/lib/private/libcrypto.so.3
	0x061156d11000-0x061156de3000	/home/lihao/workshop/shannon-bin/lib/private/libcrypto.so.3
	0x061156de3000-0x061156e3e000	/home/lihao/workshop/shannon-bin/lib/private/libcrypto.so.3
	0x061156e3e000-0x061156e41000	/home/lihao/workshop/shannon-bin/lib/private/libcrypto.so.3
	0x061156e41000-0x061156e44000	
	0x061156e44000-0x061156e6a000	/home/lihao/workshop/shannon-bin/lib/private/libcrypto.so.3
	0x061156f19000-0x061156f27000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x061156f27000-0x061156fa3000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x061156fa3000-0x061156ffe000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x061156ffe000-0x061156fff000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x061156fff000-0x061157000000	/usr/lib/x86_64-linux-gnu/libm.so.6
	0x061157000000-0x061157024000	/usr/lib/x86_64-linux-gnu/libasan.so.6.0.0
	0x061157024000-0x0611570fb000	/usr/lib/x86_64-linux-gnu/libasan.so.6.0.0
	0x0611570fb000-0x06115712d000	/usr/lib/x86_64-linux-gnu/libasan.so.6.0.0
	0x06115712d000-0x06115712e000	/usr/lib/x86_64-linux-gnu/libasan.so.6.0.0
	0x06115712e000-0x061157132000	/usr/lib/x86_64-linux-gnu/libasan.so.6.0.0
	0x061157132000-0x061157135000	/usr/lib/x86_64-linux-gnu/libasan.so.6.0.0
	0x061157135000-0x0611579e9000	
	0x061157a56000-0x061157a6d000	
	0x061157a6d000-0x061157a70000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x061157a70000-0x061157a87000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x061157a87000-0x061157a8b000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x061157a8b000-0x061157a8c000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x061157a8c000-0x061157a8d000	/usr/lib/x86_64-linux-gnu/libgcc_s.so.1
	0x061157a8d000-0x061157a8f000	
	0x061157a8f000-0x061157a92000	/usr/lib/x86_64-linux-gnu/libnuma.so.1.0.0
	0x061157a92000-0x061157a98000	/usr/lib/x86_64-linux-gnu/libnuma.so.1.0.0
	0x061157a98000-0x061157a9a000	/usr/lib/x86_64-linux-gnu/libnuma.so.1.0.0
	0x061157a9a000-0x061157a9b000	/usr/lib/x86_64-linux-gnu/libnuma.so.1.0.0
	0x061157a9b000-0x061157a9c000	/usr/lib/x86_64-linux-gnu/libnuma.so.1.0.0
	0x061157a9c000-0x061157aba000	/home/lihao/workshop/shannon-bin/lib/private/libssl.so.3
	0x061157aba000-0x061157b15000	/home/lihao/workshop/shannon-bin/lib/private/libssl.so.3
	0x061157b15000-0x061157b32000	/home/lihao/workshop/shannon-bin/lib/private/libssl.so.3
	0x061157b32000-0x061157b3c000	/home/lihao/workshop/shannon-bin/lib/private/libssl.so.3
	0x061157b3c000-0x061157b40000	/home/lihao/workshop/shannon-bin/lib/private/libssl.so.3
	0x061157b40000-0x061157b47000	/home/lihao/workshop/shannon-bin/lib/private/libssl.so.3
	0x061157b51000-0x061157b5c000	
	0x061157b5c000-0x061157b5e000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x061157b5e000-0x061157b88000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x061157b88000-0x061157b93000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x061157b93000-0x061157b94000	
	0x061157b94000-0x061157b96000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x061157b96000-0x061157b98000	/usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
	0x56cd9ab69000-0x56cd9eca2000	/home/lihao/workshop/shannon-bin/bin/mysqld
	0x56cd9eca2000-0x56cda3adf000	/home/lihao/workshop/shannon-bin/bin/mysqld
	0x56cda3adf000-0x56cda6b62000	/home/lihao/workshop/shannon-bin/bin/mysqld
	0x56cda6b63000-0x56cda6d31000	/home/lihao/workshop/shannon-bin/bin/mysqld
	0x56cda6d31000-0x56cda7bb7000	/home/lihao/workshop/shannon-bin/bin/mysqld
	0x56cda7bb7000-0x56cda8241000	
	0x7ffd8aac8000-0x7ffd8aae9000	[stack]
	0x7ffd8ab91000-0x7ffd8ab95000	[vvar]
	0x7ffd8ab95000-0x7ffd8ab97000	[vdso]
	0xffffffffff600000-0xffffffffff601000	[vsyscall]
==155884==End of process memory map.

Use can use to fix:

sudo sysctl vm.mmap_rnd_bits=28

or ref to: google/sanitizers#856 for more disscussion.

@RingsC RingsC closed this as completed Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant