makiri 0.3.0-aarch64-linux → 0.5.0-aarch64-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/conformance.yml +22 -0
- data/.github/workflows/libfuzzer.yml +83 -0
- data/.github/workflows/security.yml +88 -3
- data/.github/workflows/valgrind.yml +138 -0
- data/CHANGELOG.md +127 -2
- data/README.md +95 -77
- data/Rakefile +207 -3
- data/lib/makiri/3.2/makiri.so +0 -0
- data/lib/makiri/3.3/makiri.so +0 -0
- data/lib/makiri/3.4/makiri.so +0 -0
- data/lib/makiri/4.0/makiri.so +0 -0
- data/lib/makiri/cdata_section.rb +1 -3
- data/lib/makiri/comment.rb +1 -3
- data/lib/makiri/document.rb +8 -0
- data/lib/makiri/element.rb +1 -3
- data/lib/makiri/html/document.rb +11 -12
- data/lib/makiri/html/node_methods.rb +0 -1
- data/lib/makiri/node_set.rb +14 -9
- data/lib/makiri/processing_instruction.rb +8 -2
- data/lib/makiri/text.rb +1 -3
- data/lib/makiri/version.rb +1 -1
- data/lib/makiri/xml/builder.rb +271 -0
- data/lib/makiri/xml/node_methods.rb +47 -0
- data/lib/makiri/xpath_context.rb +12 -4
- data/lib/makiri.rb +1 -0
- data/script/check_alloc_failures.rb +266 -0
- data/script/check_c_safety.rb +45 -2
- data/script/check_c_safety_allowlist.yml +27 -5
- data/script/check_leaks.rb +64 -0
- data/script/leaks_harness.rb +71 -0
- data/suppressions/ruby.supp +140 -0
- metadata +8 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# Valgrind suppressions for `rake spec:valgrind` (ruby_memcheck).
|
|
2
|
+
#
|
|
3
|
+
# ruby_memcheck auto-loads every `<suppressions>/<ruby-version>.supp` it finds,
|
|
4
|
+
# and `ruby.supp` (the bare RUBY_ENGINE name) matches every Ruby version. These
|
|
5
|
+
# entries are ADDED to the ones the gem already bundles.
|
|
6
|
+
#
|
|
7
|
+
# Why this file exists: our job runs with `--undef-value-errors=yes` and
|
|
8
|
+
# `filter_all_errors: true`, which surfaces *every* uninitialised-value report
|
|
9
|
+
# whose stack touches the makiri binary. CRuby's garbage collector legitimately
|
|
10
|
+
# reads uninitialised memory - the conservative machine-stack scan reads stale
|
|
11
|
+
# stack words, and incremental mark/sweep reads not-yet-written RVALUE flags -
|
|
12
|
+
# and when a GC cycle fires inside one of our allocations (or marks through our
|
|
13
|
+
# mark callback) the makiri frame is on the stack, so the binary-touch filter
|
|
14
|
+
# keeps the report. The gem's bundled ruby.supp only covers `each_location*`
|
|
15
|
+
# under `Memcheck:Addr8`, not the `Cond`/`Value8` reads we see, so ~190 of these
|
|
16
|
+
# Ruby-GC false positives slip through and fail the run.
|
|
17
|
+
#
|
|
18
|
+
# Each suppression below is anchored on a CRuby GC driver function (gc marks /
|
|
19
|
+
# sweep / conservative root scan), with leading `...` absorbing the GC-internal
|
|
20
|
+
# error-origin frames above it. A real uninitialised read in our own code does
|
|
21
|
+
# NOT descend from these GC drivers, so it still fails the gate. We do NOT
|
|
22
|
+
# suppress Addr/Overlap/Param/etc. - only the GC uninit reads and a couple of
|
|
23
|
+
# Ruby-internal leaks the VM never frees before exit.
|
|
24
|
+
|
|
25
|
+
# ---- conservative GC: uninitialised-value reads (Memcheck:Cond) ----
|
|
26
|
+
{
|
|
27
|
+
ruby-gc-cond-garbage_collect
|
|
28
|
+
Memcheck:Cond
|
|
29
|
+
...
|
|
30
|
+
fun:garbage_collect
|
|
31
|
+
}
|
|
32
|
+
{
|
|
33
|
+
ruby-gc-cond-gc_start
|
|
34
|
+
Memcheck:Cond
|
|
35
|
+
...
|
|
36
|
+
fun:gc_start
|
|
37
|
+
}
|
|
38
|
+
{
|
|
39
|
+
ruby-gc-cond-gc_marks
|
|
40
|
+
Memcheck:Cond
|
|
41
|
+
...
|
|
42
|
+
fun:gc_marks*
|
|
43
|
+
}
|
|
44
|
+
{
|
|
45
|
+
ruby-gc-cond-gc_sweep
|
|
46
|
+
Memcheck:Cond
|
|
47
|
+
...
|
|
48
|
+
fun:gc_sweep*
|
|
49
|
+
}
|
|
50
|
+
{
|
|
51
|
+
ruby-gc-cond-rb_gc_impl_mark
|
|
52
|
+
Memcheck:Cond
|
|
53
|
+
...
|
|
54
|
+
fun:rb_gc_impl_mark*
|
|
55
|
+
}
|
|
56
|
+
{
|
|
57
|
+
ruby-gc-cond-machine_context
|
|
58
|
+
Memcheck:Cond
|
|
59
|
+
...
|
|
60
|
+
fun:rb_gc_mark_machine_context
|
|
61
|
+
}
|
|
62
|
+
{
|
|
63
|
+
ruby-gc-cond-mark_roots
|
|
64
|
+
Memcheck:Cond
|
|
65
|
+
...
|
|
66
|
+
fun:mark_roots
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
# ---- conservative GC: uninitialised-value reads (Memcheck:Value8) ----
|
|
70
|
+
# `gc_aging` (Ruby's default.c) ages objects during incremental marking and
|
|
71
|
+
# reads the not-yet-written RVALUE flag word - the same false positive as the
|
|
72
|
+
# drivers below, but here it is the ONLY resolved frame (every caller is
|
|
73
|
+
# `<unknown stack frame>`), so the `...`-then-driver anchors miss it. Anchor on
|
|
74
|
+
# the top frame itself (the `.part.0` GCC partial-inline clone is matched by `*`).
|
|
75
|
+
{
|
|
76
|
+
ruby-gc-cond-gc_aging
|
|
77
|
+
Memcheck:Cond
|
|
78
|
+
fun:gc_aging*
|
|
79
|
+
}
|
|
80
|
+
{
|
|
81
|
+
ruby-gc-value8-gc_aging
|
|
82
|
+
Memcheck:Value8
|
|
83
|
+
fun:gc_aging*
|
|
84
|
+
}
|
|
85
|
+
{
|
|
86
|
+
ruby-gc-value8-garbage_collect
|
|
87
|
+
Memcheck:Value8
|
|
88
|
+
...
|
|
89
|
+
fun:garbage_collect
|
|
90
|
+
}
|
|
91
|
+
{
|
|
92
|
+
ruby-gc-value8-gc_start
|
|
93
|
+
Memcheck:Value8
|
|
94
|
+
...
|
|
95
|
+
fun:gc_start
|
|
96
|
+
}
|
|
97
|
+
{
|
|
98
|
+
ruby-gc-value8-gc_marks
|
|
99
|
+
Memcheck:Value8
|
|
100
|
+
...
|
|
101
|
+
fun:gc_marks*
|
|
102
|
+
}
|
|
103
|
+
{
|
|
104
|
+
ruby-gc-value8-gc_sweep
|
|
105
|
+
Memcheck:Value8
|
|
106
|
+
...
|
|
107
|
+
fun:gc_sweep*
|
|
108
|
+
}
|
|
109
|
+
{
|
|
110
|
+
ruby-gc-value8-rb_gc_impl_mark
|
|
111
|
+
Memcheck:Value8
|
|
112
|
+
...
|
|
113
|
+
fun:rb_gc_impl_mark*
|
|
114
|
+
}
|
|
115
|
+
{
|
|
116
|
+
ruby-gc-value8-machine_context
|
|
117
|
+
Memcheck:Value8
|
|
118
|
+
...
|
|
119
|
+
fun:rb_gc_mark_machine_context
|
|
120
|
+
}
|
|
121
|
+
{
|
|
122
|
+
ruby-gc-value8-mark_roots
|
|
123
|
+
Memcheck:Value8
|
|
124
|
+
...
|
|
125
|
+
fun:mark_roots
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
# ---- Ruby VM internal caches that are never freed before exit ----
|
|
129
|
+
# The global constant-cache / inline method-cache id_table is allocated lazily
|
|
130
|
+
# on method lookup and lives for the life of the VM, so RUBY_FREE_AT_EXIT still
|
|
131
|
+
# reports it as "definitely lost" whenever the first lookup happened under one
|
|
132
|
+
# of our cfuncs. Not ours to free.
|
|
133
|
+
{
|
|
134
|
+
ruby-vm-method-cache-id_table
|
|
135
|
+
Memcheck:Leak
|
|
136
|
+
...
|
|
137
|
+
fun:rb_id_table_create
|
|
138
|
+
fun:vm_search_cc
|
|
139
|
+
...
|
|
140
|
+
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: makiri
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- takahashim
|
|
@@ -64,8 +64,10 @@ extra_rdoc_files: []
|
|
|
64
64
|
files:
|
|
65
65
|
- ".github/workflows/ci.yml"
|
|
66
66
|
- ".github/workflows/conformance.yml"
|
|
67
|
+
- ".github/workflows/libfuzzer.yml"
|
|
67
68
|
- ".github/workflows/release.yml"
|
|
68
69
|
- ".github/workflows/security.yml"
|
|
70
|
+
- ".github/workflows/valgrind.yml"
|
|
69
71
|
- ".gitmodules"
|
|
70
72
|
- CHANGELOG.md
|
|
71
73
|
- LICENSE
|
|
@@ -95,14 +97,19 @@ files:
|
|
|
95
97
|
- lib/makiri/text.rb
|
|
96
98
|
- lib/makiri/version.rb
|
|
97
99
|
- lib/makiri/xml.rb
|
|
100
|
+
- lib/makiri/xml/builder.rb
|
|
98
101
|
- lib/makiri/xml/document.rb
|
|
99
102
|
- lib/makiri/xml/node_methods.rb
|
|
100
103
|
- lib/makiri/xpath.rb
|
|
101
104
|
- lib/makiri/xpath_context.rb
|
|
102
105
|
- script/build_native_gem.rb
|
|
106
|
+
- script/check_alloc_failures.rb
|
|
103
107
|
- script/check_c_safety.rb
|
|
104
108
|
- script/check_c_safety_allowlist.yml
|
|
109
|
+
- script/check_leaks.rb
|
|
110
|
+
- script/leaks_harness.rb
|
|
105
111
|
- sig/makiri.rbs
|
|
112
|
+
- suppressions/ruby.supp
|
|
106
113
|
homepage: https://github.com/takahashim/makiri
|
|
107
114
|
licenses:
|
|
108
115
|
- Apache-2.0
|