ruby_memcheck 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/test.yml +1 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +23 -25
- data/README.md +3 -0
- data/lib/ruby_memcheck/configuration.rb +10 -0
- data/lib/ruby_memcheck/version.rb +1 -1
- data/ruby_memcheck.gemspec +1 -1
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b355c60060a1d3a88b9bb7216eba3f2b0b286b084bcae72559447a3cd7c44cc
|
4
|
+
data.tar.gz: ff119d0a8850a483ad18cb7a7f05b34a0338b41782d2717e442be06ef22784b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a47edc485be9e7cfba605631576a69fc2a726be97b27b3e7aeb36ae65e18efaeba00ddc799bce147e40b20fcfa30f96cf19b595f4e6bd60265b1fe8d3eac3237
|
7
|
+
data.tar.gz: 3f58eee4a01327e67be1bf3d3b393841c955185cfdbf7c4da3759350c7397d0d5288988f1fc6b0724aca831315125f77da073ac4717b2ab6d6db8f08e28fc6c7
|
data/.github/workflows/test.yml
CHANGED
@@ -11,6 +11,7 @@ jobs:
|
|
11
11
|
- { ruby: '3.1', allowed-failure: false }
|
12
12
|
- { ruby: '3.2', allowed-failure: false }
|
13
13
|
- { ruby: '3.3', allowed-failure: false }
|
14
|
+
- { ruby: '3.4', allowed-failure: false }
|
14
15
|
- { ruby: ruby-head, allowed-failure: false }
|
15
16
|
name: ruby ${{ matrix.entry.ruby }}
|
16
17
|
steps:
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.4.1
|
data/Gemfile.lock
CHANGED
@@ -1,62 +1,60 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby_memcheck (
|
4
|
+
ruby_memcheck (3.0.0)
|
5
5
|
nokogiri
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
ast (2.4.2)
|
11
|
-
json (2.
|
11
|
+
json (2.9.1)
|
12
12
|
language_server-protocol (3.17.0.3)
|
13
|
-
mini_portile2 (2.8.
|
14
|
-
minitest (5.
|
15
|
-
minitest-parallel_fork (
|
13
|
+
mini_portile2 (2.8.8)
|
14
|
+
minitest (5.25.4)
|
15
|
+
minitest-parallel_fork (2.0.0)
|
16
16
|
minitest (>= 5.15.0)
|
17
|
-
nokogiri (1.
|
17
|
+
nokogiri (1.17.2)
|
18
18
|
mini_portile2 (~> 2.8.2)
|
19
19
|
racc (~> 1.4)
|
20
|
-
|
21
|
-
|
22
|
-
parallel (1.24.0)
|
23
|
-
parser (3.3.0.5)
|
20
|
+
parallel (1.26.3)
|
21
|
+
parser (3.3.6.0)
|
24
22
|
ast (~> 2.4.1)
|
25
23
|
racc
|
26
|
-
racc (1.
|
24
|
+
racc (1.8.1)
|
27
25
|
rainbow (3.1.1)
|
28
|
-
rake (13.1
|
29
|
-
rake-compiler (1.2.
|
26
|
+
rake (13.2.1)
|
27
|
+
rake-compiler (1.2.8)
|
30
28
|
rake
|
31
|
-
regexp_parser (2.
|
32
|
-
|
33
|
-
rspec-core (3.13.0)
|
29
|
+
regexp_parser (2.10.0)
|
30
|
+
rspec-core (3.13.2)
|
34
31
|
rspec-support (~> 3.13.0)
|
35
32
|
rspec-support (3.13.1)
|
36
|
-
rubocop (1.
|
33
|
+
rubocop (1.69.2)
|
37
34
|
json (~> 2.3)
|
38
35
|
language_server-protocol (>= 3.17.0)
|
39
36
|
parallel (~> 1.10)
|
40
37
|
parser (>= 3.3.0.2)
|
41
38
|
rainbow (>= 2.2.2, < 4.0)
|
42
|
-
regexp_parser (>=
|
43
|
-
|
44
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
39
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
40
|
+
rubocop-ast (>= 1.36.2, < 2.0)
|
45
41
|
ruby-progressbar (~> 1.7)
|
46
|
-
unicode-display_width (>= 2.4.0, <
|
47
|
-
rubocop-ast (1.
|
48
|
-
parser (>= 3.3.0
|
42
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
43
|
+
rubocop-ast (1.37.0)
|
44
|
+
parser (>= 3.3.1.0)
|
49
45
|
rubocop-shopify (2.15.1)
|
50
46
|
rubocop (~> 1.51)
|
51
47
|
ruby-progressbar (1.13.0)
|
52
|
-
unicode-display_width (
|
48
|
+
unicode-display_width (3.1.3)
|
49
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
50
|
+
unicode-emoji (4.0.4)
|
53
51
|
|
54
52
|
PLATFORMS
|
55
53
|
ruby
|
56
54
|
|
57
55
|
DEPENDENCIES
|
58
56
|
minitest (~> 5.0)
|
59
|
-
minitest-parallel_fork (~>
|
57
|
+
minitest-parallel_fork (~> 2.0)
|
60
58
|
rake (~> 13.0)
|
61
59
|
rake-compiler (~> 1.1)
|
62
60
|
rspec-core
|
data/README.md
CHANGED
@@ -196,6 +196,9 @@ Let's celebrate wins from this gem! If this gem was useful for you, please share
|
|
196
196
|
- [`libxml2`](https://gitlab.gnome.org/GNOME/libxml2):
|
197
197
|
- Found 1 memory leak: [memory leak from \`xmlSchemaValidateStream\` in v2.11.x (#530)](https://gitlab.gnome.org/GNOME/libxml2/-/issues/530)
|
198
198
|
- Running in Nokogiri's CI pipeline: [#2868](https://github.com/sparklemotion/nokogiri/pull/2868)
|
199
|
+
- [`re2`](https://github.com/mudge/re2):
|
200
|
+
- Found 8 memory leaks: [#105](https://github.com/mudge/re2/pull/105)
|
201
|
+
- Running on CI: [#149](https://github.com/mudge/re2/pull/149)
|
199
202
|
|
200
203
|
## License
|
201
204
|
|
@@ -29,6 +29,7 @@ module RubyMemcheck
|
|
29
29
|
/\Arb_rescue/,
|
30
30
|
/\Arb_respond_to\z/,
|
31
31
|
/\Arb_thread_create\z/, # Threads are relased to a cache, so they may be reported as a leak
|
32
|
+
/\Arb_vm_exec\z/,
|
32
33
|
/\Arb_yield/,
|
33
34
|
].freeze
|
34
35
|
RUBY_FREE_AT_EXIT_SUPPORTED = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0")
|
@@ -100,6 +101,15 @@ module RubyMemcheck
|
|
100
101
|
# ruby_init_stack (thread_pthread.c:871)
|
101
102
|
# main (main.c:48)
|
102
103
|
"ulimit -s unlimited && ",
|
104
|
+
# On some distros, and in some Docker containers, the number of file descriptors is set to a
|
105
|
+
# very high number like 1073741816 that valgrind >= 3.21.0 will error out on:
|
106
|
+
# --184100:0:libcfile Valgrind: FATAL: Private file creation failed.
|
107
|
+
# The current file descriptor limit is 1073741804.
|
108
|
+
# If you are running in Docker please consider
|
109
|
+
# lowering this limit with the shell built-in limit command.
|
110
|
+
# --184100:0:libcfile Exiting now.
|
111
|
+
# See https://bugs.kde.org/show_bug.cgi?id=465435 for background information.
|
112
|
+
"ulimit -n 8192 && ",
|
103
113
|
valgrind,
|
104
114
|
valgrind_options,
|
105
115
|
valgrind_suppression_files.map { |f| "--suppressions=#{f}" },
|
data/ruby_memcheck.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency("nokogiri")
|
28
28
|
|
29
29
|
spec.add_development_dependency("minitest", "~> 5.0")
|
30
|
-
spec.add_development_dependency("minitest-parallel_fork", "~>
|
30
|
+
spec.add_development_dependency("minitest-parallel_fork", "~> 2.0")
|
31
31
|
spec.add_development_dependency("rake", "~> 13.0")
|
32
32
|
spec.add_development_dependency("rake-compiler", "~> 1.1")
|
33
33
|
spec.add_development_dependency("rspec-core")
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_memcheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Zhu
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-03 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: nokogiri
|
@@ -44,14 +43,14 @@ dependencies:
|
|
44
43
|
requirements:
|
45
44
|
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
46
|
+
version: '2.0'
|
48
47
|
type: :development
|
49
48
|
prerelease: false
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
51
|
- - "~>"
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
53
|
+
version: '2.0'
|
55
54
|
- !ruby/object:Gem::Dependency
|
56
55
|
name: rake
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +121,6 @@ dependencies:
|
|
122
121
|
- - "~>"
|
123
122
|
- !ruby/object:Gem::Version
|
124
123
|
version: '2.3'
|
125
|
-
description:
|
126
124
|
email:
|
127
125
|
- peter@peterzhu.ca
|
128
126
|
executables:
|
@@ -130,6 +128,7 @@ executables:
|
|
130
128
|
extensions: []
|
131
129
|
extra_rdoc_files: []
|
132
130
|
files:
|
131
|
+
- ".github/dependabot.yml"
|
133
132
|
- ".github/workflows/cla.yml"
|
134
133
|
- ".github/workflows/lint.yml"
|
135
134
|
- ".github/workflows/test.yml"
|
@@ -161,7 +160,6 @@ licenses:
|
|
161
160
|
- MIT
|
162
161
|
metadata:
|
163
162
|
homepage_uri: https://github.com/Shopify/ruby_memcheck
|
164
|
-
post_install_message:
|
165
163
|
rdoc_options: []
|
166
164
|
require_paths:
|
167
165
|
- lib
|
@@ -176,8 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
174
|
- !ruby/object:Gem::Version
|
177
175
|
version: '0'
|
178
176
|
requirements: []
|
179
|
-
rubygems_version: 3.
|
180
|
-
signing_key:
|
177
|
+
rubygems_version: 3.6.2
|
181
178
|
specification_version: 4
|
182
179
|
summary: Use Valgrind memcheck without going crazy
|
183
180
|
test_files: []
|