Address Sanitizer vs. swapcontext

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am using the swapcontext family to implement user-level threading. Specifically, only getcontext(), setcontext(), and makecontext() are used, during thread creation and teardown. Beyond the initial switch into a thread, I use setjmp()/longjmp() as they are significantly faster.

This works well, except that in combination with Address Sanitizer I stack-buffer-overflow errors accessing variables on a user-level-thread stack, which, as far as I can tell, are false positives.

See for example https://github.com/scylladb/scylla/issues/533.

Is there any workaround for this? I am willing to write an alternate code path for debugging. What would work here? sigaltstack()?





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux