Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
df3fad63
Commit
df3fad63
authored
Sep 12, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Handle page faults in signal handler on i386.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
58139dcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
signal_i386.c
dlls/ntdll/signal_i386.c
+4
-6
No files found.
dlls/ntdll/signal_i386.c
View file @
df3fad63
...
...
@@ -1913,11 +1913,7 @@ static void WINAPI raise_segv_exception( EXCEPTION_RECORD *rec, CONTEXT *context
case
EXCEPTION_ACCESS_VIOLATION
:
if
(
rec
->
NumberParameters
==
2
)
{
if
(
!
(
rec
->
ExceptionCode
=
virtual_handle_fault
(
(
void
*
)
rec
->
ExceptionInformation
[
1
],
rec
->
ExceptionInformation
[
0
],
FALSE
)))
goto
done
;
if
(
rec
->
ExceptionCode
==
EXCEPTION_ACCESS_VIOLATION
&&
rec
->
ExceptionInformation
[
0
]
==
EXCEPTION_EXECUTE_FAULT
)
if
(
rec
->
ExceptionInformation
[
0
]
==
EXCEPTION_EXECUTE_FAULT
)
{
ULONG
flags
;
NtQueryInformationProcess
(
GetCurrentProcess
(),
ProcessExecuteFlags
,
...
...
@@ -2066,10 +2062,12 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
}
break
;
case
TRAP_x86_PAGEFLT
:
/* Page fault */
stack
->
rec
.
ExceptionCode
=
EXCEPTION_ACCESS_VIOLATION
;
stack
->
rec
.
NumberParameters
=
2
;
stack
->
rec
.
ExceptionInformation
[
0
]
=
(
get_error_code
(
context
)
>>
1
)
&
0x09
;
stack
->
rec
.
ExceptionInformation
[
1
]
=
(
ULONG_PTR
)
siginfo
->
si_addr
;
if
(
!
(
stack
->
rec
.
ExceptionCode
=
virtual_handle_fault
(
(
void
*
)
stack
->
rec
.
ExceptionInformation
[
1
],
stack
->
rec
.
ExceptionInformation
[
0
],
FALSE
)))
return
;
break
;
case
TRAP_x86_ALIGNFLT
:
/* Alignment check exception */
/* FIXME: pass through exception handler first? */
...
...
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