google / sanitizers

AddressSanitizer, ThreadSanitizer, MemorySanitizer
Other
11.47k stars 1.03k forks source link

support swapcontext #189

Closed ramosian-glider closed 6 years ago

ramosian-glider commented 9 years ago

Originally reported on Google Code with ID 189

AddressSanitizer does not fully support swapcontext. 
Sometimes, swapcontext causes the entire shadow region (16T) 
to be written by asan-internal routines (e.g. __asan_handle_no_return)
because the location of the stack changes w/o asan noticing it.
This may cause the machine to die or hang for a long time. 

I am not at all sure if asan can fully support swapcontext, 
but we at least should collect more test cases. 

Reported by konstantin.s.serebryany on 2013-05-22 07:40:59

william-cheung commented 3 months ago

@ramosian-glider https://storage.googleapis.com/google-code-attachments/address-sanitizer/issue-189/comment-6/test_coroutine.cpp Hi. This link can not be accessed or has been broken. Could you give me the code? Thanks.