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 on windows x64 #4060

Merged
merged 1 commit into from
Oct 9, 2020

Conversation

martin-ksti
Copy link
Contributor

in our project we have to use VS2010 Win64 compiler and we have fixed the stack overflow by using this suggestion:
#2876 (comment)

@bluca
Copy link
Member

bluca commented Oct 9, 2020

Please add a relicense statement as explained in the readme here: https://github.com/zeromq/libzmq/tree/master/RELICENSE

@martin-ksti
Copy link
Contributor Author

Please add a relicense statement as explained in the readme here: https://github.com/zeromq/libzmq/tree/master/RELICENSE

done

#4061 (comment)

@bluca bluca merged commit f578b26 into zeromq:master Oct 9, 2020
@martin-ksti martin-ksti deleted the fix-stack-overflow-on-windows-x64 branch October 12, 2020 11:31
// set default stack size to 4MB to avoid std::map stack overflow on x64
unsigned int stack = 0;
#if defined _WIN64
stack = 0x400000;
Copy link
Member

Choose a reason for hiding this comment

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

If this fix is only relevant for VS2010, shouldn't this be restricted to that version? Sticking with the default if possible seems to be desirable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think you're right. at the moment I have no way to making the change and I don't know if I will ever have that option.

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.

3 participants