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

re-enable valgrind on OSX #11

Open
onqtam opened this issue May 26, 2016 · 4 comments
Open

re-enable valgrind on OSX #11

onqtam opened this issue May 26, 2016 · 4 comments
Labels
help wanted verdict/stale Issue is not precise and has been inactive for a long time

Comments

@onqtam
Copy link
Member

onqtam commented May 26, 2016

before the 1.0.0 release I disabled the use of valgrind even for 64 bit builds because 2/3 of all OSX builds failed after I added better examples testing more of the features of the framework (mainly what happens when an assert/test case throws unexpectedly) - this is the commit that disables the use of valgrind.

I'm 100% sure the problem isn't in doctest - so I'm hoping for some workaround (or a suppression file for valgrind might be the correct solution)

here is the travis build that failed... Check out the specific builds that failed and search for "error"

@dascandy
Copy link

That looks like Valgrind is finding only the memory that it itself allocated as a leak. Bug in valgrind?

@onqtam
Copy link
Member Author

onqtam commented May 30, 2016

All builds have used valgrind version 3.11.0 - and by looking at the logs to check out what homebrew gets exactly:

failed builds use:

  • valgrind-3.11.0.el_capitan.bottle.tar.gz
  • valgrind-3.11.0.mavericks.bottle.tar.gz

passing builds use:

  • valgrind-3.11.0.mavericks.bottle.tar.gz
  • valgrind-3.11.0.yosemite.bottle.tar.gz

and the mavericks build of valgrind is present in both passing and failing builds.

My suspicion is that there is a bug in the standard library from the compiler itself - and not in valgrind.

Anyway I don't have a mac and someone else has to investigate/suppress this.

@onqtam onqtam changed the title re-enable valgrind on OSX for 64 bit builds re-enable valgrind on OSX Mar 28, 2017
@onqtam
Copy link
Member Author

onqtam commented Mar 28, 2017

Since quite a bit of time valgrind tests under OSX are also disabled for 32 bit builds... But I don't consider this as an important issue.

@cdeln
Copy link

cdeln commented Aug 19, 2024

Also valgrind is not supported on ARM/macOS , so any apple computer sold since 2020...

How does sanitizers compete with valgrind? My feeling is that they tend to catch the same stuff these days, I rarely need to drop into valgrind anymore except when the sanitizer itself has a bug.

@cdeln cdeln added the verdict/stale Issue is not precise and has been inactive for a long time label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted verdict/stale Issue is not precise and has been inactive for a long time
Projects
None yet
Development

No branches or pull requests

3 participants