Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
8cbbd24d
Commit
8cbbd24d
authored
20 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Add sigsegv_handle_now (and segv_handle_now) to handle segv's that
weren't caused by a write-protected heap. Requested by Lynn Quam.
parent
fcbd8540
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lisp/Linux-os.c
+7
-2
7 additions, 2 deletions
lisp/Linux-os.c
lisp/solaris-os.c
+8
-2
8 additions, 2 deletions
lisp/solaris-os.c
with
15 additions
and
4 deletions
lisp/Linux-os.c
+
7
−
2
View file @
8cbbd24d
...
...
@@ -15,7 +15,7 @@
* GENCGC support by Douglas Crosher, 1996, 1997.
* Alpha support by Julian Dolby, 1999.
*
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.c,v 1.1
8
2004/0
5/20 00:32:24 cwang
Exp $
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/Linux-os.c,v 1.1
9
2004/0
6/07 15:24:08 rtoy
Exp $
*
*/
...
...
@@ -227,6 +227,11 @@ boolean valid_addr(os_vm_address_t addr)
#if defined GENCGC
static
sigsegv_handle_now
(
HANDLER_ARGS
)
{
interrupt_handle_now
(
signal
,
contextstruct
);
}
void
sigsegv_handler
(
HANDLER_ARGS
)
{
GET_CONTEXT
...
...
@@ -262,7 +267,7 @@ void sigsegv_handler(HANDLER_ARGS)
#else
DPRINTF
(
0
,(
stderr
,
"sigsegv: eip: %p
\n
"
,
context
->
eip
));
#endif
interrupt
_handle_now
(
signal
,
contextstruct
);
sigsegv
_handle_now
(
signal
,
contextstruct
);
}
#else
static
void
sigsegv_handler
(
HANDLER_ARGS
)
...
...
This diff is collapsed.
Click to expand it.
lisp/solaris-os.c
+
8
−
2
View file @
8cbbd24d
/*
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/solaris-os.c,v 1.1
3
2004/0
5
/0
4
1
2:39:45
rtoy Exp $
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/lisp/solaris-os.c,v 1.1
4
2004/0
6
/0
7
1
5:24:08
rtoy Exp $
*
* OS-dependent routines. This file (along with os.h) exports an
* OS-independent interface to the operating system VM facilities.
...
...
@@ -204,6 +204,12 @@ valid_addr(os_vm_address_t addr)
* Running into the gc trigger page will end up here...
*/
#if defined(GENCGC)
void
segv_handle_now
(
HANDLER_ARGS
)
{
interrupt_handle_now
(
signal
,
code
,
context
);
}
void
segv_handler
(
HANDLER_ARGS
)
{
caddr_t
addr
=
code
->
si_addr
;
...
...
@@ -273,7 +279,7 @@ void segv_handler(HANDLER_ARGS)
/* a *real* protection fault */
fprintf
(
stderr
,
"segv_handler: Real protection violation: 0x%08x
\n
"
,
addr
);
interrupt
_handle_now
(
signal
,
code
,
context
);
segv
_handle_now
(
signal
,
code
,
context
);
}
#else
void
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment