Skip to content

Makefile/dmake: Increase stack size to 8M for Cygwin builds to avoid segfaults#2001

Merged
amai2012 merged 2 commits into
cppcheck-opensource:masterfrom
versat:makefile_cygwin_issue
Jul 16, 2019
Merged

Makefile/dmake: Increase stack size to 8M for Cygwin builds to avoid segfaults#2001
amai2012 merged 2 commits into
cppcheck-opensource:masterfrom
versat:makefile_cygwin_issue

Conversation

@versat

@versat versat commented Jul 15, 2019

Copy link
Copy Markdown
Collaborator

See #1988
and #1998

@versat

versat commented Jul 15, 2019

Copy link
Copy Markdown
Collaborator Author

Without the increased stack size I get a segmentation fault during the recursive test when running make test

@IOBYTE

IOBYTE commented Jul 15, 2019

Copy link
Copy Markdown
Contributor

Should we be checking Cygwin builds with CI?

@danmar

danmar commented Jul 16, 2019

Copy link
Copy Markdown
Collaborator

You have to edit tools/dmake.cpp.. but I think the change looks good to me.

@danmar

danmar commented Jul 16, 2019

Copy link
Copy Markdown
Collaborator

yes it sounds like a good idea to check cygwin builds also with CI.

@versat

versat commented Jul 16, 2019

Copy link
Copy Markdown
Collaborator Author

You have to edit tools/dmake.cpp.. but I think the change looks good to me.

Oops, forgot that. I will change it.

@versat

versat commented Jul 16, 2019

Copy link
Copy Markdown
Collaborator Author

Appveyor has Cygwin installed, so it is possible to build it there. But I am not sure how easy it is to implement it within the current configuration.
BTW: I have tried to get Visual Studio 2017 and 2019 builds running, but in the end, it did not work after some hours and I gave up.

@versat versat changed the title Makefile: Increase stack size to 8M for Cygwin builds to avoid segfaults Makefile/dmake: Increase stack size to 8M for Cygwin builds to avoid segfaults Jul 16, 2019
@amai2012 amai2012 merged commit 7d7078f into cppcheck-opensource:master Jul 16, 2019
@versat versat deleted the makefile_cygwin_issue branch July 16, 2019 10:26
jubnzv pushed a commit to jubnzv/cppcheck that referenced this pull request Nov 13, 2019
…segfaults (cppcheck-opensource#2001)

* Makefile: Increase stack size to 8M for Cygwin builds to avoid segfaults

See cppcheck-opensource#1988
and cppcheck-opensource#1998

* dmake.cpp: Add parameter to CXXFLAGS for increased stack size in Cygwin
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.

4 participants