valgrind-python.supp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # Valgrind suppression file for CPython errors and leaks in pybind11 tests
  2. # Taken verbatim from https://github.com/python/cpython/blob/3.9/Misc/valgrind-python.supp#L266-L272
  3. {
  4. Uninitialised byte(s) false alarm, see bpo-35561
  5. Memcheck:Param
  6. epoll_ctl(event)
  7. fun:epoll_ctl
  8. fun:pyepoll_internal_ctl
  9. }
  10. {
  11. Python leaks when spawning a subprocess
  12. Memcheck:Leak
  13. fun:malloc
  14. fun:_PyMem_RawMalloc
  15. fun:PyMem_RawMalloc
  16. fun:PyThread_allocate_lock
  17. fun:_PyEval_InitState
  18. fun:PyInterpreterState_New
  19. ...
  20. fun:pyinit_core*
  21. fun:Py_InitializeFromConfig
  22. fun:pymain_init
  23. fun:pymain_main
  24. }
  25. {
  26. Python leaks when spawning a subprocess
  27. Memcheck:Leak
  28. fun:malloc
  29. fun:_PyMem_RawMalloc
  30. fun:_PyMem_DebugRawAlloc
  31. fun:_PyMem_DebugRawMalloc
  32. fun:PyMem_RawMalloc
  33. fun:PyThread_allocate_lock
  34. fun:_PyRuntimeState_Init_impl
  35. fun:_PyRuntimeState_Init
  36. fun:_PyRuntime_Initialize
  37. fun:pymain_init
  38. fun:pymain_main
  39. fun:Py_BytesMain
  40. }
  41. {
  42. Python leaks when spawning a subprocess
  43. Memcheck:Leak
  44. fun:malloc
  45. fun:_PyMem_RawMalloc
  46. fun:PyMem_RawMalloc
  47. fun:PyThread_allocate_lock
  48. fun:_PyImport_AcquireLock
  49. fun:_imp_acquire_lock_impl*
  50. fun:_imp_acquire_lock
  51. fun:cfunction_vectorcall_NOARGS
  52. fun:_PyObject_VectorcallTstate
  53. fun:PyObject_Vectorcall
  54. fun:call_function
  55. fun:_PyEval_EvalFrameDefault
  56. fun:_PyEval_EvalFrame
  57. fun:function_code_fastcall
  58. }
  59. {
  60. Python leaks when spawning a subprocess
  61. Memcheck:Leak
  62. fun:malloc
  63. fun:_PyMem_RawMalloc
  64. fun:PyMem_RawMalloc
  65. fun:PyThread_allocate_lock
  66. fun:newlockobject
  67. ...
  68. fun:cfunction_vectorcall_NOARGS
  69. fun:_PyObject_VectorcallTstate
  70. fun:PyObject_Vectorcall
  71. fun:call_function
  72. fun:_PyEval_EvalFrameDefault
  73. fun:_PyEval_EvalFrame
  74. fun:function_code_fastcall
  75. fun:_PyFunction_Vectorcall
  76. }
  77. {
  78. Python leaks when spawning a subprocess
  79. Memcheck:Leak
  80. fun:malloc
  81. fun:_PyMem_RawMalloc
  82. fun:PyMem_RawMalloc
  83. fun:PyThread_allocate_lock
  84. fun:rlock_new
  85. fun:type_call
  86. fun:_PyObject_Call
  87. fun:PyObject_Call
  88. fun:do_call_core
  89. fun:_PyEval_EvalFrameDefault
  90. fun:_PyEval_EvalFrame
  91. fun:_PyEval_EvalCode
  92. fun:_PyFunction_Vectorcall
  93. }
  94. # Not really CPython-specific, see link
  95. {
  96. dlopen leak (https://stackoverflow.com/questions/1542457/memory-leak-reported-by-valgrind-in-dlopen)
  97. Memcheck:Leak
  98. fun:malloc
  99. ...
  100. fun:dl_open_worker
  101. fun:_dl_catch_exception
  102. fun:_dl_open
  103. fun:dlopen_doit
  104. fun:_dl_catch_exception
  105. fun:_dl_catch_error
  106. fun:_dlerror_run
  107. fun:dlopen@@GLIBC_2.2.5
  108. fun:_PyImport_FindSharedFuncptr
  109. fun:_PyImport_LoadDynamicModuleWithSpec
  110. }