Post

Replies

Boosts

Views

Activity

Reply to Errors running with ASAN when targeting iOS Devices
same problem, reported it as FB9070971 Stacktrace: ==9900==AddressSanitizer: libc interceptors initialized ==9900==FindDynamicShadowStart, space_size = 0x00005b003fff || [0x0002db020000, 0x0002d7ffffff] || HighMem || || [0x0002db624000, 0x0002db01ffff] || HighShadow || || [0x0002d0024000, 0x0002db623fff] || ShadowGap || || [0x000280020000, 0x0002d0023fff] || LowShadow || || [0x000000000000, 0x00028001ffff] || LowMem || MemToShadow(shadow): 0x0002d0024000 0x0002da0247ff 0x0002db6e4800 0x0002db623fff redzone=16 max_redzone=2048 quarantine_size_mb=16M thread_local_quarantine_size_kb=64K malloc_context_size=30 SHADOW_SCALE: 3 SHADOW_GRANULARITY: 8 SHADOW_OFFSET: 0x280020000 ==9900==ERROR: AddressSanitizer failed to allocate 0xffffffffff9fc000 (-6307840) bytes at address 2db624000 (errno: 22) ==9900==ReserveShadowMemoryRange failed while trying to map 0xffffffffff9fc000 bytes. Perhaps you're using ulimit -v (lldb) bt all thread #1, stop reason = signal SIGABRT frame #0: 0x00000001c880584c libsystem_kernel.dylib__pthread_kill + 8 frame #1: 0x00000001e3d499e8 libsystem_pthread.dylibpthread_kill + 212 frame #2: 0x00000001a63e98f4 libsystem_c.dylibabort + 100 frame #3: 0x000000010e4028c8 libclang_rt.asan_ios_dynamic.dylib__sanitizer::Abort() + 64 frame #4: 0x000000010e3ee918 libclang_rt.asan_ios_dynamic.dylib__asan::ReserveShadowMemoryRange(unsigned long, unsigned long, char const*) + 244 frame #5: 0x000000010e3ee9d4 libclang_rt.asan_ios_dynamic.dylib__asan::InitializeShadowMemory() + 188 frame #6: 0x000000010e3ede7c libclang_rt.asan_ios_dynamic.dylib__asan::AsanInitInternal() + 336 frame #7: 0x000000010e3e5144 libclang_rt.asan_ios_dynamic.dylibwrap_malloc_default_zone + 60 frame #8: 0x00000001ac15d814 libsystem_malloc.dylib__malloc_init + 600 frame #9: 0x00000001cb255870 libSystem.B.dyliblibSystem_initializer + 176 frame #10: 0x000000010e2d4810 dyldImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 424 frame #11: 0x000000010e2d4bd8 dyldImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 52 frame #12: 0x000000010e2cf600 dyldImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 536 frame #13: 0x000000010e2cf56c dyldImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 388 frame #14: 0x000000010e2cf56c dyldImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 388 frame #15: 0x000000010e2cd878 dyldImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 184 frame #16: 0x000000010e2cd940 dyldImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 92 frame #17: 0x000000010e2be688 dylddyld::initializeMainExecutable() + 136 frame #18: 0x000000010e2c3928 dylddyld::_main(macho_header const*, unsigned long, int, char const, char const, char const**, unsigned long*) + 5216 frame #19: 0x000000010e2bd208 dylddyldbootstrap::start(dyld3::MachOLoaded const*, int, char const**, dyld3::MachOLoaded const*, unsigned long*) + 396 frame #20: 0x000000010e2bd038 dyld`_dyld_start + 56
Apr ’21