Skip to content

Commit 04a7b57

Browse files
committed
ci: todolist the remaining memcheck leak failures
The remaining leaks are small. Some are from exception handling detailed at #1610 and being worked on in #2096. This allows us to detect and new memory leaks introduced.
1 parent aac8da0 commit 04a7b57

File tree

1 file changed

+191
-0
lines changed

1 file changed

+191
-0
lines changed

suppressions/nokogiri_ruby.supp

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,194 @@
1818
fun:_dl_map_object
1919
...
2020
}
21+
{
22+
TODO TestHtml5TreeConstructionNoscript01#test_0
23+
Memcheck:Leak
24+
fun:malloc
25+
fun:gumbo_alloc
26+
fun:gumbo_strdup
27+
fun:handle_markup_declaration_open_state
28+
fun:gumbo_lex
29+
fun:gumbo_parse_with_options
30+
fun:perform_parse
31+
fun:parse
32+
}
33+
{
34+
TODO TestHtml5TreeConstructionNoscript01#test_0
35+
Memcheck:Leak
36+
fun:malloc
37+
fun:gumbo_alloc
38+
fun:gumbo_string_buffer_to_string
39+
fun:finish_temporary_buffer
40+
fun:handle_doctype_name_state
41+
fun:gumbo_lex
42+
fun:gumbo_parse_with_options
43+
fun:perform_parse
44+
fun:parse
45+
}
46+
{
47+
TODO xpath syntax errors raise and don't allow xmlXpathEval to clean up, see #2096 for related work
48+
Memcheck:Leak
49+
fun:malloc
50+
fun:objspace_xmalloc0
51+
fun:ruby_xmalloc0
52+
fun:ruby_xmalloc_body
53+
fun:ruby_xmalloc
54+
fun:xmlXPathNewParserContext
55+
fun:xmlXPathEval
56+
fun:evaluate
57+
}
58+
{
59+
TODO
60+
# 4 bytes in 1 blocks are definitely lost in loss record 1,070 of 37,883
61+
# *xmlStrndup (xmlstring.c:45)
62+
# *xmlXPathParseNCName (xpath.c:9792)
63+
# *xmlXPathCompStep (xpath.c:11325)
64+
# *xmlXPathCompRelativeLocationPath (xpath.c:11437)
65+
# *xmlXPathCompLocationPath (xpath.c:11489)
66+
# *xmlXPathCompPathExpr (xpath.c:10672)
67+
# *xmlXPathCompUnionExpr (xpath.c:10703)
68+
# *xmlXPathCompUnaryExpr (xpath.c:10743)
69+
# *xmlXPathCompMultiplicativeExpr (xpath.c:10768)
70+
# *xmlXPathCompAdditiveExpr (xpath.c:10809)
71+
# *xmlXPathCompRelationalExpr (xpath.c:10847)
72+
# *xmlXPathCompEqualityExpr (xpath.c:10886)
73+
# *xmlXPathCompAndExpr (xpath.c:10917)
74+
# *xmlXPathCompileExpr (xpath.c:10955)
75+
# *xmlXPathEvalExpr (xpath.c:14423)
76+
# *xmlXPathEvalExpr (xpath.c:14405)
77+
# *xmlXPathEval (xpath.c:14463)
78+
# *evaluate (xml_xpath_context.c:322)
79+
Memcheck:Leak
80+
fun:malloc
81+
fun:objspace_xmalloc0
82+
fun:ruby_xmalloc0
83+
fun:ruby_xmalloc_body
84+
fun:ruby_xmalloc
85+
fun:xmlStrndup
86+
fun:xmlXPathParseNCName
87+
...
88+
fun:xmlXPathEval
89+
fun:evaluate
90+
}
91+
{
92+
TODO
93+
# 44 bytes in 1 blocks are definitely lost in loss record 14,160 of 37,883
94+
# *xmlXPathCompOpEval (xpath.c:13197)
95+
# *xmlXPathCompOpEval (xpath.c:12947)
96+
# *xmlXPathCompOpEvalToBoolean (xpath.c:13589)
97+
# *xmlXPathNodeSetFilter (xpath.c:11664)
98+
# *xmlXPathNodeCollectAndTest (xpath.c:12492)
99+
# *xmlXPathCompOpEval (xpath.c:13105)
100+
# *xmlXPathCompOpEval (xpath.c:12947)
101+
# *xmlXPathCompOpEval (xpath.c:13353)
102+
# *xmlXPathCompOpEval (xpath.c:12947)
103+
# *xmlXPathRunEval (xpath.c:13946)
104+
# *xmlXPathEval (xpath.c:14463)
105+
# *evaluate (xml_xpath_context.c:322)
106+
Memcheck:Leak
107+
fun:malloc
108+
fun:__vasprintf_internal
109+
fun:xpath_generic_exception_handler
110+
fun:xmlXPathCompOpEval
111+
...
112+
fun:xmlXPathEval
113+
fun:evaluate
114+
}
115+
{
116+
TODO
117+
# 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 24,755 of 37,883
118+
# *xmlXPathNodeSetCreate (xpath.c:3564)
119+
# *xmlXPathNodeCollectAndTest (xpath.c:12201)
120+
# *xmlXPathCompOpEval (xpath.c:13105)
121+
# *xmlXPathCompOpEval (xpath.c:12947)
122+
# *xmlXPathCompOpEval (xpath.c:13353)
123+
# *xmlXPathCompOpEval (xpath.c:12947)
124+
# *xmlXPathRunEval (xpath.c:13946)
125+
# *xmlXPathEval (xpath.c:14463)
126+
# *evaluate (xml_xpath_context.c:322)
127+
Memcheck:Leak
128+
fun:malloc
129+
fun:objspace_xmalloc0
130+
fun:ruby_xmalloc0
131+
fun:ruby_xmalloc_body
132+
fun:ruby_xmalloc
133+
fun:xmlXPathNodeSetCreate
134+
fun:xmlXPathNodeCollectAndTest
135+
fun:xmlXPathCompOpEval
136+
...
137+
fun:xmlXPathEval
138+
fun:evaluate
139+
}
140+
{
141+
TODO
142+
# 128 bytes in 1 blocks are definitely lost in loss record 26,649 of 37,883
143+
# *registr (xslt_stylesheet.c:246)
144+
Memcheck:Leak
145+
fun:malloc
146+
fun:objspace_xmalloc0
147+
fun:ruby_xmalloc0
148+
fun:ruby_xmalloc_body
149+
fun:ruby_xmalloc
150+
fun:ar_alloc_table
151+
fun:rb_hash_aset
152+
fun:registr
153+
}
154+
{
155+
TODO
156+
# 240 (120 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 28,980 of 37,883
157+
# *xmlNewNodeEatName (tree.c:2299)
158+
# *xmlNewDocNodeEatName (tree.c:2374)
159+
# *xmlSAX2StartElementNs (SAX2.c:2255)
160+
# *xmlParseStartTag2 (parser.c:9658)
161+
# *xmlParseElementStart (parser.c:10043)
162+
# *xmlParseContentInternal (parser.c:9908)
163+
# *xmlParseElement (parser.c:9983)
164+
# *xmlParseDocument (parser.c:10821)
165+
# *xmlDoRead (parser.c:15167)
166+
# *read_memory (xml_document.c:331)
167+
Memcheck:Leak
168+
fun:malloc
169+
fun:objspace_xmalloc0
170+
fun:ruby_xmalloc0
171+
fun:ruby_xmalloc_body
172+
fun:ruby_xmalloc
173+
fun:xmlNewNodeEatName
174+
fun:xmlNewDocNodeEatName
175+
fun:xmlSAX2StartElementNs
176+
fun:xmlParseStartTag2
177+
fun:xmlParseElementStart
178+
fun:xmlParseContentInternal
179+
fun:xmlParseElement
180+
fun:xmlParseDocument
181+
fun:xmlDoRead
182+
fun:read_memory
183+
}
184+
{
185+
TODO
186+
# 1,464 (72 direct, 1,392 indirect) bytes in 1 blocks are definitely lost in loss record 35,525 of 37,883
187+
# *xmlXPathWrapNodeSet (xpath.c:4386)
188+
# *xmlXPathNodeCollectAndTest (xpath.c:12549)
189+
# *xmlXPathCompOpEval (xpath.c:13105)
190+
# *xmlXPathCompOpEval (xpath.c:12947)
191+
# *xmlXPathCompOpEval (xpath.c:13102)
192+
# *xmlXPathCompOpEval (xpath.c:12947)
193+
# *xmlXPathCompOpEval (xpath.c:13353)
194+
# *xmlXPathCompOpEval (xpath.c:12947)
195+
# *xmlXPathRunEval (xpath.c:13946)
196+
# *xmlXPathEval (xpath.c:14463)
197+
# *evaluate (xml_xpath_context.c:322)
198+
Memcheck:Leak
199+
fun:malloc
200+
fun:objspace_xmalloc0
201+
fun:ruby_xmalloc0
202+
fun:ruby_xmalloc_body
203+
fun:ruby_xmalloc
204+
fun:xmlXPathWrapNodeSet
205+
fun:xmlXPathNodeCollectAndTest
206+
...
207+
fun:xmlXPathCompOpEval
208+
fun:xmlXPathRunEval
209+
fun:xmlXPathEval
210+
fun:evaluate
211+
}

0 commit comments

Comments
 (0)