Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
bc6a4db6
Kaydet (Commit)
bc6a4db6
authored
Nis 01, 2011
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #11393: fault handler uses raise(signum) for SIGILL on Windows
üst
7098685b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
faulthandler.c
Modules/faulthandler.c
+12
-15
No files found.
Modules/faulthandler.c
Dosyayı görüntüle @
bc6a4db6
...
...
@@ -270,14 +270,16 @@ faulthandler_fatal_error(
else
_Py_DumpTraceback
(
fd
,
tstate
);
#ifndef MS_WINDOWS
/* call the previous signal handler: it is called if we use sigaction()
thanks to SA_NODEFER flag, otherwise it is deferred */
raise
(
signum
);
#else
/* on Windows, don't call explictly the previous handler, because Windows
signal handler would not be called */
#ifdef MS_WINDOWS
if
(
signum
==
SIGSEGV
)
{
/* don't call explictly the previous handler for SIGSEGV in this signal
handler, because the Windows signal handler would not be called */
return
;
}
#endif
/* call the previous signal handler: it is called immediatly if we use
sigaction() thanks to SA_NODEFER flag, otherwise it is deferred */
raise
(
signum
);
}
/* Install handler for fatal signals (SIGSEGV, SIGFPE, ...). */
...
...
@@ -681,8 +683,9 @@ static PyObject *
faulthandler_sigsegv
(
PyObject
*
self
,
PyObject
*
args
)
{
#if defined(MS_WINDOWS)
/* faulthandler_fatal_error() restores the previous signal handler and then
gives back the execution flow to the program. In a normal case, the
/* For SIGSEGV, faulthandler_fatal_error() restores the previous signal
handler and then gives back the execution flow to the program (without
calling explicitly the previous error handler). In a normal case, the
SIGSEGV was raised by the kernel because of a fault, and so if the
program retries to execute the same instruction, the fault will be
raised again.
...
...
@@ -724,13 +727,7 @@ faulthandler_sigbus(PyObject *self, PyObject *args)
static
PyObject
*
faulthandler_sigill
(
PyObject
*
self
,
PyObject
*
args
)
{
#if defined(MS_WINDOWS)
/* see faulthandler_sigsegv() for the explanation about while(1) */
while
(
1
)
raise
(
SIGILL
);
#else
raise
(
SIGILL
);
#endif
Py_RETURN_NONE
;
}
#endif
...
...
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