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

Don't recurse mallocwatch on printf #47

Merged
merged 1 commit into from
Oct 15, 2018
Merged

Don't recurse mallocwatch on printf #47

merged 1 commit into from
Oct 15, 2018

Conversation

ZetaTwo
Copy link
Contributor

@ZetaTwo ZetaTwo commented Oct 14, 2018

printf() calls malloc() internally which means that mallocwatch with info printout creates an infinite recursion. This patch fixes #45 however this is not a thread safe solution.

@zardus zardus merged commit 987679b into zardus:master Oct 15, 2018
@zardus
Copy link
Owner

zardus commented Oct 15, 2018

Good catch, thanks!

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.

Segmentation fault on info level logging
2 participants