Author: Armin Rigo <[email protected]>
Branch: c8-card-marking
Changeset: r1690:f52d5033cce6
Date: 2015-03-07 15:08 +0100
http://bitbucket.org/pypy/stmgc/changeset/f52d5033cce6/
Log: Duh, abort() can be called from a signal handler.
diff --git a/c8/stm/core.c b/c8/stm/core.c
--- a/c8/stm/core.c
+++ b/c8/stm/core.c
@@ -228,8 +228,7 @@
addr >= stm_object_pages+TOTAL_MEMORY) {
/* actual segfault, unrelated to stmgc */
fprintf(stderr, "Segmentation fault: accessing %p\n", addr);
- raise(SIGABRT);
- raise(SIGKILL);
+ abort();
}
int segnum = get_segment_of_linear_address(addr);
@@ -237,8 +236,7 @@
if (segnum != STM_SEGMENT->segment_num) {
fprintf(stderr, "Segmentation fault: accessing %p (seg %d) from"
" seg %d\n", addr, segnum, STM_SEGMENT->segment_num);
- raise(SIGABRT);
- raise(SIGKILL);
+ abort();
}
dprintf(("-> segment: %d\n", segnum));
@@ -247,8 +245,7 @@
if (pagenum < END_NURSERY_PAGE) {
fprintf(stderr, "Segmentation fault: accessing %p (seg %d "
"page %lu)\n", addr, segnum, pagenum);
- raise(SIGABRT);
- raise(SIGKILL);
+ abort();
}
DEBUG_EXPECT_SEGFAULT(false);
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit