valgrind.supp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  1. # These are unfreed memory (still reachable blocks) detected in python
  2. {
  3. Python leak
  4. Memcheck:Leak
  5. fun:malloc
  6. fun:*
  7. fun:PyString_InternInPlace
  8. }
  9. {
  10. Python leak
  11. Memcheck:Leak
  12. fun:malloc
  13. fun:*
  14. fun:PyEval_EvalFrameEx
  15. }
  16. {
  17. From opensuse 11.2 (python 2.6)
  18. Memcheck:Leak
  19. fun:malloc
  20. obj:*libpython*
  21. fun:PyDict_Merge
  22. }
  23. {
  24. From opensuse 11.2 (python 2.6)
  25. Memcheck:Leak
  26. fun:malloc
  27. obj:*libpython*
  28. fun:PyObject_GenericSetAttr
  29. }
  30. {
  31. From opensuse 11.2 (python 2.6)
  32. Memcheck:Leak
  33. fun:malloc
  34. obj:*libpython*
  35. obj:*_gobject.so*
  36. obj:*atk.so*
  37. }
  38. {
  39. From opensuse 11.2 (python 2.6)
  40. Memcheck:Leak
  41. fun:malloc
  42. obj:*libpython*
  43. obj:*_gobject.so*
  44. obj:*pango.so*
  45. fun:initpango
  46. }
  47. {
  48. From opensuse 11.2 (python 2.6)
  49. Memcheck:Leak
  50. fun:malloc
  51. obj:*libpython*
  52. obj:*_gobject.so*
  53. obj:*gio.so*
  54. fun:init_gio
  55. }
  56. {
  57. From opensuse 11.2 (python 2.6)
  58. Memcheck:Leak
  59. fun:realloc
  60. fun:g_realloc
  61. fun:g_type_set_qdata
  62. obj:*_gobject.so*
  63. fun:init_gobject
  64. }
  65. {
  66. From opensuse 11.2 (python 2.6)
  67. Memcheck:Leak
  68. fun:malloc
  69. obj:*libpython*
  70. obj:*_gobject.so
  71. obj:*_gtk.so
  72. fun:init_gtk
  73. }
  74. {
  75. From opensuse 11.2 (python 2.6)
  76. Memcheck:Leak
  77. fun:malloc
  78. obj:*libpython*
  79. fun:_PyInt_Init
  80. }
  81. {
  82. From opensuse 11.2 (python 2.6)
  83. Memcheck:Leak
  84. fun:malloc
  85. obj:*libpython*
  86. fun:PyType_Ready
  87. }
  88. {
  89. From opensuse 11.2 (python 2.6)
  90. Memcheck:Leak
  91. fun:malloc
  92. fun:PyString_FromStringAndSize
  93. }
  94. {
  95. From opensuse 11.2 (python 2.6)
  96. Memcheck:Leak
  97. fun:malloc
  98. obj:*libpython*
  99. obj:*libpython*
  100. fun:PyObject_Call
  101. }
  102. {
  103. From opensuse 11.2 (python 2.6)
  104. Memcheck:Leak
  105. fun:malloc
  106. obj:*libpython*
  107. fun:PyInt_FromLong
  108. }
  109. {
  110. From opensuse 11.2 (python 2.6)
  111. Memcheck:Leak
  112. fun:malloc
  113. fun:_PyObject_GC_Malloc
  114. }
  115. {
  116. From opensuse 11.2 (python 2.6)
  117. Memcheck:Leak
  118. fun:malloc
  119. obj:*libpython*
  120. obj:*libpython*
  121. fun:PyEval_EvalFrameEx
  122. }
  123. {
  124. Python leak
  125. Memcheck:Leak
  126. fun:malloc
  127. fun:*
  128. fun:PyDict_SetItemString
  129. }
  130. {
  131. Python leak (ignore all memory allocated by python itself....)
  132. Memcheck:Leak
  133. fun:malloc
  134. fun:_PyObject_GC_Malloc
  135. fun:PyType_GenericAlloc
  136. }
  137. {
  138. Python leak (ignore all memory allocated by python itself....)
  139. Memcheck:Leak
  140. fun:malloc
  141. fun:PyObject_Malloc
  142. }
  143. {
  144. Python leak (ignore all memory allocated by python itself....)
  145. Memcheck:Leak
  146. fun:realloc
  147. fun:_PyObject_GC_Resize
  148. }
  149. {
  150. Python leak (ignore all memory allocated by python itself....)
  151. Memcheck:Leak
  152. fun:realloc
  153. fun:_PyObject_GC_NewVar
  154. }
  155. {
  156. Python leak (ignore all memory allocated by python itself....)
  157. Memcheck:Leak
  158. fun:malloc
  159. fun:_PyObject_GC_NewVar
  160. }
  161. {
  162. Python leak
  163. Memcheck:Leak
  164. fun:malloc
  165. fun:_PyObject_GC_NewVar
  166. fun:PyFrame_New
  167. fun:PyEval_EvalCodeEx
  168. fun:function_call
  169. }
  170. {
  171. Python leak (Python 2.6)
  172. Memcheck:Leak
  173. fun:malloc
  174. fun:_PyObject_GC_Malloc
  175. fun:_PyObject_GC_NewVar
  176. fun:PyFrame_New
  177. }
  178. {
  179. GNAT does not release the secondary stack
  180. Memcheck:Leak
  181. fun:malloc
  182. fun:__gnat_malloc
  183. fun:system__secondary_stack__ss_allocate
  184. }
  185. {
  186. Python 2.6 leak
  187. Memcheck:Leak
  188. ...
  189. fun:Py_InitializeEx
  190. fun:Py_Initialize
  191. fun:Py_Main
  192. }
  193. {
  194. From NumPy 1.3.0 (python 2.6) - PyAST_*
  195. Memcheck:Leak
  196. ...
  197. fun:PyAST_*
  198. }
  199. {
  200. From NumPy 1.3.0 (python 2.6)
  201. Memcheck:Leak
  202. fun:malloc
  203. ...
  204. fun:build_class
  205. }
  206. {
  207. From NumPy 1.3.0 (python 2.6)
  208. Memcheck:Leak
  209. ...
  210. fun:realloc
  211. fun:list_resize
  212. fun:app1
  213. }
  214. {
  215. From NumPy 1.3.0 (python 2.6)
  216. Memcheck:Leak
  217. ...
  218. fun:PyEval_EvalFrameEx
  219. fun:PyEval_EvalCodeEx
  220. fun:fast_function
  221. }
  222. {
  223. From NumPy 1.3.0 (python 2.6) - PyMarshal_*
  224. Memcheck:Leak
  225. fun:malloc
  226. ...
  227. fun:PyMarshal_*
  228. }
  229. {
  230. From NumPy 1.3.0 (python 2.6)
  231. Memcheck:Leak
  232. fun:malloc
  233. fun:PyString_FromString
  234. ...
  235. fun:import_submodule
  236. }
  237. {
  238. From NumPy 1.3.0 (python 2.6)
  239. Memcheck:Leak
  240. fun:malloc
  241. fun:dictresize
  242. }
  243. {
  244. From DistNumPy (python 2.6) - non-freed ufunc in slave processes.
  245. Memcheck:Leak
  246. fun:malloc
  247. ...
  248. fun:PyUFunc_FromFuncAndDataAndSignature
  249. ...
  250. fun:initumath
  251. }
  252. ###
  253. ### All the suppressions below are special cases.
  254. ###
  255. {
  256. From NumPy 1.3.0 (python 2.6)
  257. Memcheck:Leak
  258. fun:realloc
  259. fun:_PyString_Resize
  260. fun:string_concatenate
  261. fun:PyEval_EvalFrameEx
  262. fun:fast_function
  263. fun:call_function
  264. fun:PyEval_EvalFrameEx
  265. fun:fast_function
  266. fun:call_function
  267. fun:PyEval_EvalFrameEx
  268. fun:PyEval_EvalCodeEx
  269. fun:PyEval_EvalCode
  270. }
  271. {
  272. From NumPy 1.3.0 (python 2.6)
  273. Memcheck:Leak
  274. fun:realloc
  275. fun:_PyString_Resize
  276. fun:PyString_Format
  277. fun:string_mod
  278. fun:binary_op1
  279. fun:binary_op
  280. fun:PyNumber_Remainder
  281. fun:PyEval_EvalFrameEx
  282. }
  283. {
  284. From NumPy 1.3.0 (python 2.6)
  285. Memcheck:Leak
  286. fun:malloc
  287. fun:type_new
  288. fun:tp_new_wrapper
  289. fun:PyCFunction_Call
  290. fun:call_function
  291. fun:PyEval_EvalFrameEx
  292. fun:PyEval_EvalCodeEx
  293. fun:function_call
  294. fun:PyObject_Call
  295. fun:slot_tp_new
  296. fun:type_call
  297. fun:PyObject_Call
  298. }
  299. {
  300. From NumPy 1.3.0 (python 2.6)
  301. Memcheck:Leak
  302. fun:realloc
  303. fun:_PyString_Resize
  304. fun:PyString_FromFormatV
  305. fun:PyString_FromFormat
  306. fun:ufunc_get_doc
  307. fun:getset_get
  308. fun:PyObject_GenericGetAttr
  309. fun:PyObject_GetAttr
  310. fun:PyObject_GetAttrString
  311. fun:arr_add_docstring
  312. fun:PyCFunction_Call
  313. fun:call_function
  314. }
  315. {
  316. From NumPy 1.3.0 (python 2.6)
  317. Memcheck:Leak
  318. fun:malloc
  319. fun:PyType_GenericAlloc
  320. fun:s_new
  321. fun:type_call
  322. fun:PyObject_Call
  323. fun:PyObject_CallFunctionObjArgs
  324. fun:cache_struct
  325. fun:calcsize
  326. fun:call_function
  327. fun:PyEval_EvalFrameEx
  328. fun:PyEval_EvalCodeEx
  329. fun:PyEval_EvalCode
  330. }
  331. {
  332. From NumPy 1.3.0 (python 2.6)
  333. Memcheck:Leak
  334. fun:malloc
  335. fun:prepare_s
  336. fun:s_init
  337. fun:type_call
  338. fun:PyObject_Call
  339. fun:PyObject_CallFunctionObjArgs
  340. fun:cache_struct
  341. fun:calcsize
  342. fun:call_function
  343. fun:PyEval_EvalFrameEx
  344. fun:PyEval_EvalCodeEx
  345. fun:PyEval_EvalCode
  346. }
  347. {
  348. From NumPy 1.3.0 (python 2.6)
  349. Memcheck:Leak
  350. fun:malloc
  351. fun:PyMem_Malloc
  352. fun:alloc_format_string
  353. fun:PointerType_new
  354. fun:type_call
  355. fun:PyObject_Call
  356. fun:call_function_tail
  357. fun:PyObject_CallFunction
  358. fun:POINTER
  359. fun:call_function
  360. fun:PyEval_EvalFrameEx
  361. fun:PyEval_EvalCodeEx
  362. }
  363. {
  364. From NumPy 1.3.0 (python 2.6)
  365. Memcheck:Leak
  366. fun:malloc
  367. fun:PyString_FromString
  368. fun:PyString_InternFromString
  369. fun:new_identifier
  370. }
  371. {
  372. From NumPy 1.3.0 (python 2.6)
  373. Memcheck:Leak
  374. fun:malloc
  375. fun:PyString_FromString
  376. fun:PyString_InternFromString
  377. fun:descr_new
  378. fun:PyDescr_NewGetSet
  379. fun:add_getset
  380. fun:PyType_Ready
  381. fun:type_new
  382. fun:type_call
  383. fun:PyObject_Call
  384. fun:call_function_tail
  385. fun:PyObject_CallFunction
  386. }
  387. {
  388. From NumPy 1.3.0 (python 2.6)
  389. Memcheck:Leak
  390. fun:malloc
  391. fun:PyString_FromString
  392. fun:PyString_InternFromString
  393. fun:descr_new
  394. fun:PyDescr_NewGetSet
  395. fun:add_getset
  396. fun:PyType_Ready
  397. fun:PyObject_GenericGetAttr
  398. fun:PyObject_GetAttr
  399. fun:PyObject_GetAttrString
  400. fun:PyObject_CallMethod
  401. fun:Py_InitializeEx
  402. }
  403. {
  404. From NumPy 1.3.0 (python 2.6)
  405. Memcheck:Leak
  406. fun:malloc
  407. fun:PyString_FromString
  408. fun:PyString_InternFromString
  409. fun:descr_new
  410. fun:PyDescr_NewMethod
  411. fun:add_methods
  412. fun:PyType_Ready
  413. fun:PyObject_GenericGetAttr
  414. fun:PyObject_GetAttr
  415. fun:PyObject_GetAttrString
  416. fun:PyObject_CallMethod
  417. fun:Py_InitializeEx
  418. }
  419. {
  420. From NumPy 1.3.0 (python 2.6)
  421. Memcheck:Leak
  422. fun:malloc
  423. fun:PyString_FromString
  424. fun:PyType_Ready
  425. fun:PyObject_GenericGetAttr
  426. fun:PyObject_GetAttr
  427. fun:builtin_getattr
  428. fun:PyCFunction_Call
  429. fun:call_function
  430. fun:PyEval_EvalFrameEx
  431. fun:gen_send_ex
  432. fun:gen_iternext
  433. fun:PyIter_Next
  434. }
  435. {
  436. From NumPy 1.3.0 (python 2.6)
  437. Memcheck:Leak
  438. fun:malloc
  439. fun:PyString_FromString
  440. fun:method_get_doc
  441. fun:getset_get
  442. fun:PyObject_GenericGetAttr
  443. fun:PyObject_GetAttr
  444. fun:PyEval_EvalFrameEx
  445. fun:fast_function
  446. fun:call_function
  447. fun:PyEval_EvalFrameEx
  448. fun:PyEval_EvalCodeEx
  449. fun:function_call
  450. }
  451. {
  452. From DistNumPy (python 2.6) - non-freed in slave processes.
  453. Memcheck:Leak
  454. fun:realloc
  455. fun:list_resize
  456. fun:listextend
  457. fun:call_function
  458. fun:PyEval_EvalFrameEx
  459. fun:PyEval_EvalCodeEx
  460. fun:PyEval_EvalCode
  461. fun:PyImport_ExecCodeModuleEx
  462. fun:load_source_module
  463. fun:load_module
  464. fun:load_package
  465. fun:load_module
  466. }
  467. {
  468. From DistNumPy (python 2.6) - non-freed in slave processes.
  469. Memcheck:Leak
  470. fun:malloc
  471. fun:PyList_New
  472. fun:do_mklist
  473. fun:do_mkvalue
  474. fun:va_build_value
  475. fun:Py_BuildValue
  476. fun:load_package
  477. fun:load_module
  478. fun:import_submodule
  479. fun:load_next
  480. fun:import_module_level
  481. fun:PyImport_ImportModuleLevel
  482. }
  483. {
  484. From DistNumPy (python 2.6) - non-freed in slave processes.
  485. Memcheck:Leak
  486. fun:malloc
  487. fun:fill_free_list
  488. fun:PyInt_FromLong
  489. fun:long_int
  490. fun:PyNumber_Int
  491. fun:int_new
  492. fun:type_call
  493. fun:PyObject_Call
  494. fun:do_call
  495. fun:call_function
  496. fun:PyEval_EvalFrameEx
  497. fun:fast_function
  498. }
  499. {
  500. From DistNumPy (python 2.6) - non-freed in slave processes.
  501. Memcheck:Leak
  502. fun:malloc
  503. fun:fill_free_list
  504. fun:PyInt_FromLong
  505. fun:PyLong_FromVoidPtr
  506. fun:init_ctypes
  507. fun:_PyImport_LoadDynamicModule
  508. fun:load_module
  509. fun:import_submodule
  510. fun:load_next
  511. fun:import_module_level
  512. fun:PyImport_ImportModuleLevel
  513. fun:builtin___import__
  514. }
  515. {
  516. From PBSPro (TPP layer) - suppress epoll_pwait() glibc bug
  517. Memcheck:Param
  518. epoll_pwait(sigmask)
  519. fun:epoll_pwait
  520. fun:tpp_em_pwait
  521. fun:tpp_em_wait
  522. fun:work
  523. fun:start_thread
  524. fun:clone
  525. }
  526. {
  527. From PBSPro (TPP layer) - suppress warning about uninitialized bytes in sendto
  528. Memcheck:Param
  529. socketcall.sendto(msg)
  530. fun:send
  531. fun:send_data
  532. fun:handle_cmd
  533. fun:work
  534. fun:start_thread
  535. fun:clone
  536. }
  537. {
  538. From PBSPro (server) - Suppress intentional unfreed memory for pbs_db_get_svr_id
  539. Memcheck:Leak
  540. match-leak-kinds: reachable
  541. fun:malloc
  542. fun:strdup
  543. fun:pbs_db_get_svr_id
  544. fun:chk_and_update_db_svrhost
  545. fun:main
  546. }
  547. {
  548. From PBSPro (server) - Suppress intentional unfreed memory from hook_recov
  549. Memcheck:Leak
  550. fun:malloc
  551. fun:strdup
  552. fun:hook_recov
  553. fun:pbsd_init
  554. fun:main
  555. }
  556. {
  557. From PBSPro (server) - Suppress intentional unfreed memory from loading hook script at hook_recov
  558. Memcheck:Leak
  559. fun:malloc
  560. fun:pbs_python_ext_alloc_python_script
  561. fun:hook_recov
  562. fun:pbsd_init
  563. fun:main
  564. }
  565. {
  566. From PBSPro (server) - Suppress intentional unfreed memory from loading hook script at hook_recov
  567. Memcheck:Leak
  568. fun:malloc
  569. fun:strdup
  570. fun:pbs_python_ext_alloc_python_script
  571. fun:hook_recov
  572. fun:pbsd_init
  573. fun:main
  574. }
  575. {
  576. From PBSPro (server) - Suppress intentional unfreed memory from allocating hook data at hook_recov
  577. Memcheck:Leak
  578. fun:malloc
  579. fun:hook_alloc
  580. fun:hook_recov
  581. fun:pbsd_init
  582. fun:main
  583. }
  584. {
  585. From PBSPro (all deamons) - Suppress memory allocated for log mutex
  586. Memcheck:Leak
  587. fun:calloc
  588. fun:log_mutex_lock
  589. fun:log_record
  590. fun:*
  591. }
  592. {
  593. From PBSPro (mom) - Suppress intentional unfreed memory from python_script_alloc() inside req_copy_hookfile() that is tracked globally in svr_allhooks.
  594. Memcheck:Leak
  595. fun:malloc
  596. ...
  597. fun:python_script_alloc
  598. ...
  599. fun:req_copy_hookfile
  600. fun:is_request
  601. fun:do_rpp
  602. fun:rpp_request
  603. fun:wait_request
  604. fun:main
  605. }
  606. {
  607. From PBSPro (mom) - Suppress intentional unfreed memory from hook_recov() inside req_copy_hookfile() that is tracked globally in svr_allhooks.
  608. Memcheck:Leak
  609. fun:malloc
  610. ...
  611. fun:hook_recov
  612. fun:req_copy_hookfile
  613. fun:is_request
  614. fun:do_rpp
  615. fun:rpp_request
  616. fun:wait_request
  617. fun:main
  618. }
  619. {
  620. From PBSPro (server) - Suppress intentional unfreed memory from pbs_python_populae_attributes_to_python_class() that is tracked globally in pbs_resource_value_list.
  621. Memcheck:Leak
  622. fun:malloc
  623. fun:pbs_python_populate_attributes_to_python_class
  624. fun:*
  625. }
  626. {
  627. From PBSPro (server) - Suppress intentional unfreed memory from pbs_python_populate_attributes_to_python_class() that is tracked and freed in a local pbs_list_head
  628. Memcheck:Leak
  629. fun:malloc
  630. fun:attrlist_alloc
  631. fun:attrlist_create
  632. fun:encode_l
  633. fun:encode_resc
  634. fun:pbs_python_populate_attributes_to_python_class
  635. fun:*
  636. }
  637. {
  638. From PBSPro (server) - Suppress intentional unfreed memory from pbs_python_populate_attributes_to_python_class() that is tracked and freed in a local pbs_list_head.
  639. Memcheck:Leak
  640. fun:malloc
  641. fun:attrlist_alloc
  642. fun:attrlist_create
  643. fun:encode_size
  644. fun:encode_resc
  645. fun:pbs_python_populate_attributes_to_python_class
  646. fun:*
  647. }
  648. {
  649. From PBSPro (server) - Suppress intentional unfreed memory from pbs_python_populate_attributes_to_python_class() that is tracked and freed in a local pbs_list_head.
  650. Memcheck:Leak
  651. fun:malloc
  652. fun:attrlist_alloc
  653. fun:attrlist_create
  654. fun:encode_str
  655. fun:encode_resc
  656. fun:pbs_python_populate_attributes_to_python_class
  657. fun:*
  658. }
  659. {
  660. From PBSPro (server) - Suppress intentional unfreed memory from pbs_python_populate_attributes_to_python_class() that is tracked and freed in a local pbs_list_head.
  661. Memcheck:Leak
  662. fun:malloc
  663. fun:attrlist_alloc
  664. fun:attrlist_create
  665. fun:encode_time
  666. fun:encode_resc
  667. fun:pbs_python_populate_attributes_to_python_class
  668. fun:*
  669. }
  670. {
  671. From PBSPro (server) - Suppress intentional unfreed memory from loading hook script at mgr_hook_import
  672. Memcheck:Leak
  673. fun:malloc
  674. fun:strdup
  675. fun:pbs_python_ext_alloc_python_script
  676. fun:mgr_hook_import
  677. fun:req_manager
  678. fun:dispatch_request
  679. fun:process_request
  680. fun:wait_request
  681. fun:main
  682. }
  683. {
  684. From PBSPro (server) - Suppress intentional unfreed memory from loading hook script at mgr_hook_import
  685. Memcheck:Leak
  686. fun:malloc
  687. fun:pbs_python_ext_alloc_python_script
  688. fun:mgr_hook_import
  689. fun:req_manager
  690. fun:dispatch_request
  691. fun:process_request
  692. fun:wait_request
  693. fun:main
  694. }
  695. {
  696. From PBSPro (server) - Suppress intentional unfreed memory from allocating hook data at mgr_hook_create
  697. Memcheck:Leak
  698. fun:malloc
  699. fun:hook_alloc
  700. fun:mgr_hook_create
  701. fun:req_manager
  702. fun:dispatch_request
  703. fun:process_request
  704. fun:wait_request
  705. fun:main
  706. }
  707. {
  708. From PBSPro (server) - Suppress intentional unfreed memory from allocating hook name at mgr_hook_create
  709. Memcheck:Leak
  710. fun:malloc
  711. fun:strdup
  712. fun:set_hook_name
  713. fun:mgr_hook_create
  714. fun:req_manager
  715. fun:dispatch_request
  716. fun:process_request
  717. fun:wait_request
  718. fun:main
  719. }