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 double free in expr_typeref #2467

Merged
merged 1 commit into from
Jan 5, 2018
Merged

Conversation

Praetonus
Copy link
Member

ast_settype automatically frees the previous type AST so we shouldn't call ast_free manually afterwards.

`ast_settype` automatically frees the previous type AST so we shouldn't
call `ast_free` manually afterwards.
@winksaville
Copy link
Contributor

I'm curious, how did you find this?

@Praetonus
Copy link
Member Author

@winksaville With valgrind, while trying to trace down the crashes in #2449.

@winksaville
Copy link
Contributor

Nice, maybe we should be running valgrind and other test tools constantly? This hang in stdlib I found was because I was looking into the spurious failure bug, so I was running stdlib until failure.

@Praetonus
Copy link
Member Author

For valgrind specifically I don't think it would be feasible as it would slow down CI builds by several orders of magnitude.

@jemc jemc added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Jan 5, 2018
@winksaville
Copy link
Contributor

Actually, I was thinking maybe we could get volunteers to run long term tests as a low priority job on "their" computers, just a thought.

@jemc jemc merged commit 4f35ba6 into ponylang:master Jan 5, 2018
ponylang-main added a commit that referenced this pull request Jan 5, 2018
@Praetonus Praetonus deleted the fix-double-free branch January 5, 2018 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants