Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stack overflow introduced in #4206 #4242

Merged
merged 1 commit into from Nov 10, 2020

Conversation

wizeman
Copy link
Member

@wizeman wizeman commented Nov 10, 2020

This fixes a stack overflow observed in hydra-queue-runner when nixUnstable (updated to the latest master commit) is compiled without optimizations. It becomes a 100% CPU usage bug / deadlock when compiled with optimizations.

I'm not entirely sure that the fix is correct because I don't know much about this code or even the Boost library, but it seems to work fine for me.

Comments NixOS/hydra#816 (comment) and NixOS/hydra#816 (comment) show example stack traces (you have to manually expand the comments because I've hidden them as off-topic, as it wasn't pertinent to that issue).

cc @roberth and @edolstra

Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is absolutely what I intended to write.
I didn't catch this bug in testing because usually the instance of DefaultStackAllocator is replaced by a BoehmGCStackAllocator which doesn't have this mistake.

@edolstra edolstra merged commit cdc840d into NixOS:master Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants