ruby_memcheck 1.3.0 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/lib/ruby_memcheck/test_task_reporter.rb +4 -1
- data/lib/ruby_memcheck/version.rb +1 -1
- data/suppressions/ruby.supp +16 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43086325741d10b10981f494f7351aa5877d413d5f14f808ed9e3b574e0392a5
|
4
|
+
data.tar.gz: c2894cc1143bc4383b7503ac4b4a2862250560a97b36c2e9f7c3ef38554e56e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82769e6405cd5f79a5b2d04611c4d37bcac5f76b665541b1448c7d78eb86f890f96291703786aaf47a6026b70ce577e64142913642fd320f631701311b852c61
|
7
|
+
data.tar.gz: 64470c0bc4683e23e4609372a765f95ad12feb65801924b88aa5f638d1924bc56567c16d81eb541416324186d8866a40b4bd32645e7d3591c2e3a3fbb617bc92
|
data/README.md
CHANGED
@@ -92,7 +92,7 @@ The easiest way to use this gem is to use it on your test suite (minitest or RSp
|
|
92
92
|
|
93
93
|
1. Setup the test task for your test framework.
|
94
94
|
- **minitest**
|
95
|
-
|
95
|
+
|
96
96
|
Locate your test task(s) in your Rakefile. You can identify it with a call to `Rake::TestTask.new`.
|
97
97
|
|
98
98
|
Create a namespace under the test task and create a `RubyMemcheck::TestTask` with the same configuration.
|
@@ -175,7 +175,7 @@ Let's celebrate wins from this gem! If this gem was useful for you, please share
|
|
175
175
|
- Running on CI: [#162](https://github.com/Shopify/liquid-c/pull/162)
|
176
176
|
- [`nokogiri`](https://github.com/sparklemotion/nokogiri):
|
177
177
|
- Found 5 memory leaks: [4 in #2345](https://github.com/sparklemotion/nokogiri/pull/2345), [#2347](https://github.com/sparklemotion/nokogiri/pull/2347)
|
178
|
-
-
|
178
|
+
- Running on CI: [#2344](https://github.com/sparklemotion/nokogiri/pull/2344)
|
179
179
|
- [`rotoscope`](https://github.com/Shopify/rotoscope):
|
180
180
|
- Found a [memory leak in Ruby TracePoint](https://bugs.ruby-lang.org/issues/18264)
|
181
181
|
- Running on CI: [#89](https://github.com/Shopify/rotoscope/pull/89)
|
@@ -183,6 +183,14 @@ Let's celebrate wins from this gem! If this gem was useful for you, please share
|
|
183
183
|
- Found 1 memory leak: [#9150](https://github.com/protocolbuffers/protobuf/pull/9150)
|
184
184
|
- [`gRPC`](https://github.com/grpc/grpc):
|
185
185
|
- Found 1 memory leak: [#27900](https://github.com/grpc/grpc/pull/27900)
|
186
|
+
- [`wasmtime-rb`](https://github.com/bytecodealliance/wasmtime-rb):
|
187
|
+
- Found 1 memory leak: [#26](https://github.com/bytecodealliance/wasmtime-rb/pull/26)
|
188
|
+
- [`yarp`](https://github.com/shopify/yarp):
|
189
|
+
- Found 6 memory leaks and 1 memory error: [#292](https://github.com/Shopify/yarp/pull/304), [#292](https://github.com/Shopify/yarp/pull/292)
|
190
|
+
- Running on CI: [#293](https://github.com/Shopify/yarp/pull/293)
|
191
|
+
- [`libxml2`](https://gitlab.gnome.org/GNOME/libxml2):
|
192
|
+
- Found 1 memory leak: [memory leak from \`xmlSchemaValidateStream\` in v2.11.x (#530)](https://gitlab.gnome.org/GNOME/libxml2/-/issues/530)
|
193
|
+
- Running in Nokogiri's CI pipeline: [#2868](https://github.com/sparklemotion/nokogiri/pull/2868)
|
186
194
|
|
187
195
|
## License
|
188
196
|
|
@@ -31,7 +31,10 @@ module RubyMemcheck
|
|
31
31
|
@errors = []
|
32
32
|
|
33
33
|
xml_files.each do |file|
|
34
|
-
Nokogiri::XML::Reader(File.open(file))
|
34
|
+
reader = Nokogiri::XML::Reader(File.open(file)) do |config| # rubocop:disable Style/SymbolProc
|
35
|
+
config.huge
|
36
|
+
end
|
37
|
+
reader.each do |node|
|
35
38
|
next unless node.name == "error" && node.node_type == Nokogiri::XML::Reader::TYPE_ELEMENT
|
36
39
|
|
37
40
|
error_xml = Nokogiri::XML::Document.parse(node.outer_xml).root
|
data/suppressions/ruby.supp
CHANGED
@@ -34,3 +34,19 @@
|
|
34
34
|
fun:each_location*
|
35
35
|
...
|
36
36
|
}
|
37
|
+
{
|
38
|
+
Rust probes for statx(buf), will be fixed in Valgrind >= 3.1.6.0
|
39
|
+
Memcheck:Param
|
40
|
+
statx(buf)
|
41
|
+
...
|
42
|
+
fun:*try_statx*
|
43
|
+
...
|
44
|
+
}
|
45
|
+
{
|
46
|
+
Rust probes for statx(file_name), will be fixed in Valgrind >= 3.1.6.0
|
47
|
+
Memcheck:Param
|
48
|
+
statx(file_name)
|
49
|
+
...
|
50
|
+
fun:*try_statx*
|
51
|
+
...
|
52
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_memcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Zhu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '2.3'
|
125
|
-
description:
|
125
|
+
description:
|
126
126
|
email:
|
127
127
|
- peter@peterzhu.ca
|
128
128
|
executables: []
|
@@ -155,7 +155,7 @@ licenses:
|
|
155
155
|
- MIT
|
156
156
|
metadata:
|
157
157
|
homepage_uri: https://github.com/peterzhu2118/ruby_memcheck
|
158
|
-
post_install_message:
|
158
|
+
post_install_message:
|
159
159
|
rdoc_options: []
|
160
160
|
require_paths:
|
161
161
|
- lib
|
@@ -170,8 +170,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
- !ruby/object:Gem::Version
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
|
-
rubygems_version: 3.4.
|
174
|
-
signing_key:
|
173
|
+
rubygems_version: 3.4.10
|
174
|
+
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: Use Valgrind memcheck without going crazy
|
177
177
|
test_files: []
|