summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-02-24 23:40:43 -0800
committerGitHub <noreply@github.com>2021-02-25 08:40:43 +0100
commitbea037f8565c54c65d83c1f5855d041b6a110f18 (patch)
treeab5a7ed91bd2071f495c9ce51050a7257deb93d6
parent60929953cb4ac0dffaa95ee25b666983b189cee1 (diff)
downloadNim-bea037f8565c54c65d83c1f5855d041b6a110f18.tar.gz
refs #17114: workaround for arm64 which should segfault but does not (#17178)
* refs #17114: workaround for arm64 which should segfault but does not
* fixup
* Update lib/std/wrapnils.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
-rw-r--r--lib/pure/segfaults.nim2
-rw-r--r--lib/std/wrapnils.nim1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/segfaults.nim b/lib/pure/segfaults.nim
index 2fa9a0b1c..e0da8b81d 100644
--- a/lib/pure/segfaults.nim
+++ b/lib/pure/segfaults.nim
@@ -13,6 +13,8 @@
 ##
 ## Tested on these OSes: Linux, Windows, OSX
 
+# xxx possibly broken on arm64, see bug #17178
+
 {.used.}
 
 # do allocate memory upfront:
diff --git a/lib/std/wrapnils.nim b/lib/std/wrapnils.nim
index a469b736d..bda8cf1d8 100644
--- a/lib/std/wrapnils.nim
+++ b/lib/std/wrapnils.nim
@@ -24,7 +24,6 @@ runnableExamples:
 
   assert (?.f2.x2.x2).x3 == nil  # this terminates ?. early
   import std/segfaults # enable `NilAccessDefect` exceptions
-  doAssertRaises(NilAccessDefect): echo (?.f2.x2.x2).x3[]
 
 from std/options import Option, isSome, get, option, unsafeGet, UnpackDefect
 export options.get, options.isSome, options.isNone
f9bd8cc98 ^





90db9171a ^



e25474154 ^
8d734244b ^
e25474154 ^
e25474154 ^
5f2d930a5 ^
90db9171a ^
61792dc7d ^
e2d38a57e ^
61792dc7d ^


5b0d8246f ^
61792dc7d ^
90db9171a ^


e25474154 ^
1c9b4e5d3 ^


296ef0795 ^
4b0cdc6db ^
e25474154 ^
296ef0795 ^
7a249eb8c ^
8aa4e4670 ^
7a249eb8c ^




e25474154 ^

90db9171a ^
e25474154 ^
5f2d930a5 ^
7a249eb8c ^
e25474154 ^

90db9171a ^





















8aa4e4670 ^

7b4560337 ^











8d734244b ^
e25474154 ^





5f2d930a5 ^
e25474154 ^



0f0dfd637 ^




e25474154 ^
8d734244b ^

e25474154 ^
033e3dfc5 ^
0f0dfd637 ^

e25474154 ^









8d734244b ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181