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

[FreeBSD] memory leaks in different functions #1730

Closed
giampaolo opened this issue Apr 23, 2020 · 1 comment
Closed

[FreeBSD] memory leaks in different functions #1730

giampaolo opened this issue Apr 23, 2020 · 1 comment

Comments

@giampaolo
Copy link
Owner

https://github.com/giampaolo/psutil/runs/610640496

======================================================================
FAIL: psutil.tests.test_memory_leaks.TestModuleFunctionsLeaks.test_disk_io_counters
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/cirrus-ci-build/psutil/tests/test_memory_leaks.py", line 410, in test_disk_io_counters
    self.execute(lambda: psutil.disk_io_counters(nowrap=False))
  File "/tmp/cirrus-ci-build/psutil/tests/__init__.py", line 922, in execute
    raise self.fail(msg)
AssertionError: +580.0K memory increase after 1200 calls; +584.0K after another 132337 calls over 3.0 secs

======================================================================
FAIL: psutil.tests.test_memory_leaks.TestModuleFunctionsLeaks.test_net_connections
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/cirrus-ci-build/psutil/tests/test_memory_leaks.py", line 431, in test_net_connections
    self.execute(psutil.net_connections)
  File "/tmp/cirrus-ci-build/psutil/tests/__init__.py", line 922, in execute
    raise self.fail(msg)
AssertionError: +40.0K memory increase after 1200 calls; +76.0K after another 14942 calls over 3.0 secs

----------------------------------------------------------------------

Intermittently I also saw failures for net_io_counters().

@giampaolo
Copy link
Owner Author

This was probably a false positive, fixed when I introduced the new memleak test class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant