Re: GetPreviousInstructionPc question

2017-04-20 Thread evgeny777
56d9d0 ; ::__asan_report_store1(__sanitizer::uptr) at asan_rtl.cc:136 0x5a9cad <+141>: xorl %eax, %eax . As you may noticed 0x5a9cac == (0x5a9cad - 1) On Thursday, April 20, 2017 at 12:01:25 PM UTC+3, Dmitry Vyukov wrote: > > On Thu, Apr 20, 2017 at 10:44 AM, evgeny777 <evgeny@gmail.c

Extra memory mapping in InitializeShadowMemory()

2017-04-17 Thread evgeny777
Good time of the day. I noticed, that ASan maps small chunk of memory (one page on Unix systems, not sure how much on Windows) below shadow region. This is done in InitializeShadowMemory() with this line of code: if (kLowShadowBeg) shadow_start -= GetMmapGranularity(); Does anyone know what is