BIND 10 #1359: reference leak in python log wrapper

BIND 10 Development do-not-reply at isc.org
Wed Nov 16 09:34:29 UTC 2011


#1359: reference leak in python log wrapper
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  jinmei
  jinmei                             |                Status:  reviewing
                       Type:         |             Milestone:
  defect                             |  Sprint-20111122
                   Priority:  major  |            Resolution:
                  Component:         |             Sensitive:  0
  logging                            |           Sub-Project:  Core
                   Keywords:         |  Estimated Difficulty:  4
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
Changes (by vorner):

 * owner:  vorner => jinmei


Comment:

 Hello

 The changes look OK themself. But I have a failing test:
 {{{
 ======================================================================
 ERROR: test_invalid_family (__main__.ParserTests)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/home/vorner/work/bind10/src/lib/python/isc/bind10/tests/sockcreator_test.py",
 line 289, in test_invalid_family
     addr, 42, socket.SOCK_DGRAM)
   File "/usr/lib64/python3.2/unittest/case.py", line 557, in assertRaises
     callableObj(*args, **kwargs)
   File
 "/home/vorner/work/bind10/src/lib/python/isc/bind10/sockcreator.py", line
 111, in get_socket
     logger.info(BIND10_SOCKET_GET, address, port, socktype)
 RuntimeError: Unexpected NULL PyObject, probably due to short memory

 ----------------------------------------------------------------------
 Ran 16 tests in 0.009s

 FAILED (errors=1)
 make[7]: *** [check-local] Error 1
 make[7]: Leaving directory
 `/home/vorner/work/bind10/src/lib/python/isc/bind10/tests'
 }}}

 The exception comes from the PyObjectContainer and the previous code
 seemed to be able to handle the situation, but I don't know where the NULL
 comes from exactly. Would you have a look what it might be?

 Thank you

-- 
Ticket URL: <http://bind10.isc.org/ticket/1359#comment:8>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list