anfedorov / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

test_uids() failure on OS X 10.8.4 #399

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
    ======================================================================
    FAIL: test_uids (proc=psutil.Process(pid=22, name='warmd'), ret=user(real=0, effective=4294967294, saved=0)))
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "test/test_psutil.py", line 1937, in test_fetch_all
        meth(ret)
      File "test/test_psutil.py", line 1993, in uids
        self.assertIn(uid, self._uids)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 799, in assertIn
        self.fail(self._formatMessage(msg, standardMsg))
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 408, in fail
        raise self.failureException(msg)
    AssertionError: 4294967294 not found in set([0, 1, 224, 4, 75, 215, 13, 88, 205, 89, 24, 25, 26, 27, 31, 32, 91, 92, 221, 99, 200, 94, 54, 55, 56, 58, 59, 60, 74, 65, 67, 70, 71, 72, 73, 202, 203, 76, 77, 78, 79, 208, 82, 83, 212, 213, 214, 87, 216, 217, 218, 219, 220, 93, 222, 95, 96, 97, 98, 227, 228, 229, 230, 231, 232, 233, 234, 235, 210, 211, 501, 84, -2])

Looks like maybe an overflow on the effective UID field. 

Original issue reported on code.google.com by jlo...@gmail.com on 18 Jun 2013 at 12:46

GoogleCodeExporter commented 9 years ago
Jay, is this still reproducible?
I believe that test no longer exists but "4294967294" looks like an invalid UID.

Original comment by g.rodola on 9 Mar 2014 at 10:37

GoogleCodeExporter commented 9 years ago
With latest trunk code: 

    ======================================================================
    FAIL: test_uids (proc=psutil.Process(pid=27, name='warmd'), ret=puids(real=0, effective=4294967294, saved=0)))
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "test/test_psutil.py", line 2175, in test_fetch_all
        meth(ret)
      File "test/test_psutil.py", line 2231, in uids
        self.assertIn(uid, self._uids)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 799, in assertIn
        self.fail(self._formatMessage(msg, standardMsg))
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 408, in fail
        raise self.failureException(msg)
    AssertionError: 4294967294 not found in set([0, 1, 224, 4, 75, 215, 13, 88, 205, 89, 24, 25, 26, 27, 31, 32, 91, 92, 221, 99, 200, 94, 54, 55, 56, 58, 59, 60, 74, 65, 67, 70, 71, 72, 73, 202, 203, 76, 77, 78, 79, 208, 82, 83, 212, 213, 214, 87, 216, 217, 218, 219, 220, 93, 222, 95, 96, 97, 98, 227, 228, 229, 230, 231, 232, 233, 234, 235, 210, 211, 501, 84, -2])

Original comment by jlo...@gmail.com on 10 Mar 2014 at 12:16