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

bc-gh: Add Dockerfile and build.sh #12098

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

gavinhoward
Copy link
Contributor

I set disabled to true because LeakSanitizer claims the fuzzers have leaks. However, this is not true because bc and dc run without leaks under Valgrind.

After some debugging, I can cause them to free the memory by putting an assert(false); after all of the frees 1 2, and it trips. But if I remove it, LeakSanitizer sees leaks.

Whether it's PEBKAC (probably) or miscompilation (unlikely), I don't know, but I figured I'd commit the necessary stuff for the project.

I'll try to figure out the problem later.

I set `disabled` to true because LeakSanitizer claims the fuzzers have
leaks. However, this is not true because bc and dc run without leaks
under Valgrind.

After some debugging, I can cause them to free the memory by putting an
`assert(false);` after all of the frees [1] [2], and it trips. But if I
remove it, LeakSanitizer sees leaks.

Whether it's PEBKAC (probably) or miscompilation (unlikely), I don't
know, but I figured I'd commit the necessary stuff for the project.

I'll try to figure out the problem later.

[1]: https://github.com/gavinhoward/bc/blob/master/src/bc_fuzzer.c#L110
[2]: https://github.com/gavinhoward/bc/blob/master/src/dc_fuzzer.c#L110

Signed-off-by: Gavin D. Howard <gavin@gavinhoward.com>
Copy link

gavinhoward has previously contributed to projects/bc-gh. The previous PR was #12078

@jonathanmetzman jonathanmetzman merged commit a7c16d8 into google:master Jun 19, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants