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
00f87907
Commit
00f87907
authored
Sep 04, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Call virtual_handle_fault from signal handler on x86_64.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2fff3449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
27 deletions
+6
-27
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+6
-27
No files found.
dlls/ntdll/signal_x86_64.c
View file @
00f87907
...
...
@@ -2648,29 +2648,6 @@ done:
/**********************************************************************
* raise_segv_exception
*/
static
void
raise_segv_exception
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
)
{
NTSTATUS
status
;
switch
(
rec
->
ExceptionCode
)
{
case
EXCEPTION_ACCESS_VIOLATION
:
if
(
rec
->
NumberParameters
==
2
)
{
if
(
!
(
rec
->
ExceptionCode
=
virtual_handle_fault
(
(
void
*
)
rec
->
ExceptionInformation
[
1
],
rec
->
ExceptionInformation
[
0
],
FALSE
)))
set_cpu_context
(
context
);
}
break
;
}
status
=
NtRaiseException
(
rec
,
context
,
TRUE
);
raise_status
(
status
,
rec
);
}
/**********************************************************************
* raise_generic_exception
*
* Generic raise function for exceptions that don't need special treatment.
...
...
@@ -2960,7 +2937,7 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
case
-
1
:
/* overflow */
rec
=
setup_exception
(
sigcontext
);
rec
->
ExceptionCode
=
EXCEPTION_STACK_OVERFLOW
;
setup_raise_exception
(
sigcontext
,
rec
,
raise_
segv
_exception
);
setup_raise_exception
(
sigcontext
,
rec
,
raise_
generic
_exception
);
return
;
}
}
...
...
@@ -2968,7 +2945,7 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
rec
=
setup_exception
(
sigcontext
);
if
(
rec
->
ExceptionCode
==
EXCEPTION_STACK_OVERFLOW
)
{
setup_raise_exception
(
sigcontext
,
rec
,
raise_
segv
_exception
);
setup_raise_exception
(
sigcontext
,
rec
,
raise_
generic
_exception
);
return
;
}
...
...
@@ -3001,10 +2978,12 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
}
break
;
case
TRAP_x86_PAGEFLT
:
/* Page fault */
rec
->
ExceptionCode
=
EXCEPTION_ACCESS_VIOLATION
;
rec
->
NumberParameters
=
2
;
rec
->
ExceptionInformation
[
0
]
=
(
ERROR_sig
(
ucontext
)
>>
1
)
&
0x09
;
rec
->
ExceptionInformation
[
1
]
=
(
ULONG_PTR
)
siginfo
->
si_addr
;
if
(
!
(
rec
->
ExceptionCode
=
virtual_handle_fault
(
(
void
*
)
rec
->
ExceptionInformation
[
1
],
rec
->
ExceptionInformation
[
0
],
FALSE
)))
return
;
break
;
case
TRAP_x86_ALIGNFLT
:
/* Alignment check exception */
rec
->
ExceptionCode
=
EXCEPTION_DATATYPE_MISALIGNMENT
;
...
...
@@ -3022,7 +3001,7 @@ static void segv_handler( int signal, siginfo_t *siginfo, void *sigcontext )
break
;
}
setup_raise_exception
(
sigcontext
,
rec
,
raise_
segv
_exception
);
setup_raise_exception
(
sigcontext
,
rec
,
raise_
generic
_exception
);
}
/**********************************************************************
...
...
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