Re: [Gc] Address Sanitizer reports stack underflow

Florian Weimer <[email protected]> Sun, 24 Jan 2016 20:29:04 +0100
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <[email protected]>
* Hanno Böck:

> I am not sure if this is a bug or if boehm-gc is in principle unable to
> work with address sanitizer (as asan is basically intercepting memory
> management and boehm-gc is supposed to be a replacement for existing
> memory managements). But I haven't found it reported elsewhere and am
> unsure.

The collector needs to scan the stack to find potential roots.  It
will necessarily hit undefined areas not corresponding to on-stack
objects.  The stack scan would have to be performed in a way that
bypasses Address Sanitzer, or the collector would have to obtain an
explicit list of stack frames from Address Sanitizer.