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
35230d08
Unverified
Kaydet (Commit)
35230d08
authored
May 28, 2018
tarafından
Yury Selivanov
Kaydeden (comit)
GitHub
May 28, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__ (#7080)
üst
08c5aca9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
2018-05-23-14-58-05.bpo-33623.wAw1cF.rst
...S.d/next/Library/2018-05-23-14-58-05.bpo-33623.wAw1cF.rst
+1
-0
_asynciomodule.c
Modules/_asynciomodule.c
+7
-1
No files found.
Misc/NEWS.d/next/Library/2018-05-23-14-58-05.bpo-33623.wAw1cF.rst
0 → 100644
Dosyayı görüntüle @
35230d08
Fix possible SIGSGV when asyncio.Future is created in __del__
Modules/_asynciomodule.c
Dosyayı görüntüle @
35230d08
...
...
@@ -501,7 +501,13 @@ future_init(FutureObj *fut, PyObject *loop)
if
(
is_true
<
0
)
{
return
-
1
;
}
if
(
is_true
)
{
if
(
is_true
&&
!
_Py_IsFinalizing
())
{
/* Only try to capture the traceback if the interpreter is not being
finalized. The original motivation to add a `_Py_IsFinalizing()`
call was to prevent SIGSEGV when a Future is created in a __del__
method, which is called during the interpreter shutdown and the
traceback module is already unloaded.
*/
fut
->
fut_source_tb
=
_PyObject_CallNoArg
(
traceback_extract_stack
);
if
(
fut
->
fut_source_tb
==
NULL
)
{
return
-
1
;
...
...
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