Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
ef99b52f
Commit
ef99b52f
authored
Mar 03, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
68aa2401
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
wcfs/internal/wcfs_test.pyx
wcfs/internal/wcfs_test.pyx
+9
-3
No files found.
wcfs/internal/wcfs_test.pyx
View file @
ef99b52f
...
...
@@ -109,8 +109,12 @@ cdef void _read_mustfault(const unsigned char *p) nogil except +topyexc:
act
.
sa_handler
=
mustfaultSighand
act
.
sa_flags
=
0
sigemptyset
(
&
act
.
sa_mask
)
# XXX err
sigaction
(
SIGSEGV
,
&
act
,
&
saveact
)
# XXX err
err
=
sigemptyset
(
&
act
.
sa_mask
)
if
err
!=
0
:
panic
(
"sigemptyset: failed"
)
err
=
sigaction
(
SIGSEGV
,
&
act
,
&
saveact
)
if
err
!=
0
:
panic
(
"sigaction SIGSEGV -> mustfaultSighand: failed"
)
faultExpected
=
True
faultedOk
=
False
...
...
@@ -124,7 +128,9 @@ cdef void _read_mustfault(const unsigned char *p) nogil except +topyexc:
panic
(
"faulted, but !faultedOk"
)
faultExpected
=
False
sigaction
(
SIGSEGV
,
&
saveact
,
NULL
)
# XXX err
err
=
sigaction
(
SIGSEGV
,
&
saveact
,
NULL
)
if
err
!=
0
:
panic
(
"sigaction SIGSEGV <- restore: failed"
)
def
read_mustfault
(
const
unsigned
char
[::
1
]
mem
not
None
):
assert
len
(
mem
)
==
1
,
"read_mustfault: only [1] mem is supported for now"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment