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

potential memory leak #26

Open
Slyne opened this issue Jan 27, 2022 · 4 comments
Open

potential memory leak #26

Slyne opened this issue Jan 27, 2022 · 4 comments

Comments

@Slyne
Copy link

Slyne commented Jan 27, 2022

Hi~

I use valgrind to test the below line:

import kaldifeat

The log is here: https://1drv.ms/t/s!AhtoTbISXXlSgSLtqDWjo8RP_ouA?e=Sn1cd0

Log summary:

==20510== LEAK SUMMARY:
==20510==    definitely lost: 0 bytes in 0 blocks
==20510==    indirectly lost: 0 bytes in 0 blocks
==20510==      possibly lost: 271,997 bytes in 129 blocks
==20510==    still reachable: 5,881,625 bytes in 22,065 blocks
==20510==                       of which reachable via heuristic:
==20510==                         stdstring          : 521,021 bytes in 6,954 blocks
==20510==         suppressed: 58,517 bytes in 5 blocks
==20510==
==20510== For lists of detected and suppressed errors, rerun with: -s
==20510== ERROR SUMMARY: 17745 errors from 434 contexts (suppressed: 14 from 2)

Reproduce

valgrind --leak-check=full --show-reachable=yes --trace-children=yes --track-origins=yes --trace-children=yes --log-file='log.txt' python3 test.py

test.py

import kaldifeat

Could you help check if these are potential issues? Thanks!

@csukuangfj
Copy link
Owner

Could you help check if these are potential issues? Thanks!

Please have a look at pytorch/pytorch#39522
It is a known issue when using valgrind with PyTorch.

@Slyne
Copy link
Author

Slyne commented Feb 3, 2022

Do you mind checking this issue: triton-inference-server/server#3777 (comment) ?

There's an invalid pointer issue related to kaldifeat + pybind.

@csukuangfj
Copy link
Owner

@Slyne

Please see the comment at triton-inference-server/server#3777 (comment)

I would suggest you to file an issue at https://github.com/pytorch/pytorch/issues

You can replace import kaldifeat with import torch when posting the issue.

@yuekaizhang
Copy link

Do you mind checking this issue: triton-inference-server/server#3777 (comment) ?

There's an invalid pointer issue related to kaldifeat + pybind.

@Slyne Hi, I was wondering if you figure it out or posting the issue in pytorch.

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

3 participants