Took me an entire day of debugging to figure this one out (manifested as broken stacks). FFS.