File tree 3 files changed +26
-14
lines changed
3 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ addons:
126
126
- sasl2-bin
127
127
- swig
128
128
- libnghttp2-dev
129
+ # used by symbolizer in leak warnings suppression
130
+ - python2.7-dbg
129
131
# documentation
130
132
- asciidoc
131
133
- asciidoctor
Original file line number Diff line number Diff line change @@ -444,9 +444,6 @@ qd_error_t qd_router_python_setup(qd_router_t *router)
444
444
// Instantiate the router
445
445
//
446
446
pyRouter = PyObject_CallObject (pClass , pArgs );
447
- Py_DECREF (pId );
448
- Py_DECREF (pArea );
449
- Py_DECREF (pMaxRouters );
450
447
Py_DECREF (pClass );
451
448
Py_DECREF (pArgs );
452
449
Py_DECREF (adapterType );
@@ -456,7 +453,6 @@ qd_error_t qd_router_python_setup(qd_router_t *router)
456
453
pySetMobileSeq = PyObject_GetAttrString (pyRouter , "setMobileSeq" ); QD_ERROR_PY_RET ();
457
454
pySetMyMobileSeq = PyObject_GetAttrString (pyRouter , "setMyMobileSeq" ); QD_ERROR_PY_RET ();
458
455
pyLinkLost = PyObject_GetAttrString (pyRouter , "linkLost" ); QD_ERROR_PY_RET ();
459
- // Py_DECREF(adapterInstance); // TODO: why not this? get python exceptions if I try
460
456
return qd_error_code ();
461
457
}
462
458
Original file line number Diff line number Diff line change @@ -37,7 +37,14 @@ leak:^pn_raw_connection$
37
37
#### Miscellaneous 3rd party libraries:
38
38
####
39
39
40
- # these leaks happen even after simple Py_Initialize(); Py_Finalize();
40
+ # Wholesale library suppressions, avoid doing this if at all possible
41
+ # one reason we may not be able to avoid doing this is compatibility with multiple versions of libs on many operating systems
42
+ #leak:/libpython2.*.so
43
+ #leak:/libpython3.*.so
44
+ #leak:/libwebsockets.so
45
+ #leak:libqpid-proton
46
+
47
+ # these Python leaks happen even after simple Py_Initialize(); Py_Finalize();
41
48
# https://bugs.python.org/issue1635741
42
49
leak:^_PyObject_Realloc
43
50
leak:^PyObject_Malloc$
@@ -51,16 +58,23 @@ leak:^_PyObject_GC_Resize$
51
58
# Python uses these alloc functions if you define PYTHONDEVMODE=1
52
59
leak:^_PyMem_DebugRawAlloc$
53
60
leak:^_PyMem_DebugRawRealloc$
61
+ # All the rest
62
+ leak:^list_append$
63
+ leak:^list_resize$
64
+ leak:^_PyBytes_Resize$
65
+ leak:^resize_compact$
66
+ leak:^unicode_resize$
67
+ # Python 2.7
68
+ leak:^PyString_FromStringAndSize$
69
+ leak:^PyString_FromString$
70
+ leak:^PyObject_Realloc$
71
+ leak:^_PyObject_GC_Malloc$
72
+ leak:^_PyString_Resize$
73
+ leak:^PyUnicodeUCS4_FromUnicode$
74
+ leak:^PyList_Append$
75
+ leak:^PyList_New$
54
76
55
- # Wholesale library suppressions, avoid doing this if at all possible
56
- # one reason we may not be able to avoid doing this is compatibility with multiple versions of libs on many operating systems
57
- leak:/libpython2.*.so
58
- #leak:/libpython3.*.so
59
- #leak:/libwebsockets.so
60
- #leak:libqpid-proton
61
-
62
- # We might be able to remove these once all known dispatch leaks have been fixed
63
- # Suppressions taken from Proton's lsan.supp
77
+ # Proton suppressions taken from Proton's lsan.supp
64
78
# this appears in system_tests_open_properties:
65
79
leak:^pni_data_grow$
66
80
leak:^pn_buffer_ensure$
You can’t perform that action at this time.
0 commit comments