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

Memory leaks #17

Open
destructor64 opened this issue Oct 12, 2017 · 4 comments
Open

Memory leaks #17

destructor64 opened this issue Oct 12, 2017 · 4 comments

Comments

@destructor64
Copy link
Collaborator

When we ran the ipic3d pilot code yesterday, the runtime died with "double free or corruption" errors.

We wanted to investigate this and used valgrind, which reports quite a few errors.

To evaluate whether the problem lies in the runtime/HPX or our compiler, we compiled an empty main with our compiler. The result is the same.

To report the problem here we tried with the latest version of the master branch and also there we get error reports.

Since in the default compiler configuration there are no tests I tried with the provided examples.
Some of these examples crash immediately (stencil_1d_pfor and stencil_2d_pfor). Others run for ages (pfor/*) and the ones which run in "reasonable" time in valgrind report errors (fibonacci and uts/uts).

These problems should be investigated and fixed

@sithhell
Copy link
Member

sithhell commented Oct 12, 2017 via email

@destructor64
Copy link
Collaborator Author

That is another option, but doesn't change the problem. The runtime or HPX seem to have problems there...

To quote from the valgrind report:

Conditional jump or move depends on uninitialised value(s)
[...]
// the above repeated multiple times...
[...]
Invalid read of size 8
[...]
==19277== LEAK SUMMARY:
==19277==    definitely lost: 754,552 bytes in 3,938 blocks
==19277==    indirectly lost: 418,870 bytes in 2,185 blocks
==19277==      possibly lost: 0 bytes in 0 blocks
==19277==    still reachable: 628,085 bytes in 7,155 blocks
==19277==         suppressed: 0 bytes in 0 blocks

@sithhell
Copy link
Member

sithhell commented Oct 12, 2017 via email

@sithhell
Copy link
Member

sithhell commented Dec 8, 2017

Did you rerun with my suggestions or even tried address sanitizer?

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

No branches or pull requests

2 participants