[issue15926] Segmentation fault after multiple reinitializations
Roundup Robot added the comment: New changeset 6708224f8bee by Antoine Pitrou in branch 'default': Issue #15926: Fix crash after multiple reinitializations of the interpreter. http://hg.python.org/cpython/rev/6708224f8bee -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15926] Segmentation fault after multiple reinitializations
Georg Brandl added the comment: Picked as 6708224f8bee. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15926] Segmentation fault after multiple reinitializations
Stefan Krah added the comment: The segfault occurs in a path in import.c that has a comment XXX this this should really not happen.: Program received signal SIGSEGV, Segmentation fault. 0x0047d733 in type_dealloc (type=0x8381e0) at Objects/typeobject.c:2694 2694_PyObject_GC_UNTRACK(type); (gdb) bt #0 0x0047d733 in type_dealloc (type=0x8381e0) at Objects/typeobject.c:2694 #1 0x0045d8ef in free_keys_object (keys=0x8eb810) at Objects/dictobject.c:374 #2 0x00463513 in dict_dealloc (mp=0x8fa9c0) at Objects/dictobject.c:1392 #3 0x00503118 in _PyImport_FixupExtensionObject (mod=0xa0cd40, name=0xb1fa90, filename=0xb1fa90) at Python/import.c:498 (gdb) f 3 #3 0x00503118 in _PyImport_FixupExtensionObject (mod=0xa0cd40, name=0xb1fa90, filename=0xb1fa90) at Python/import.c:498 498 Py_DECREF(def-m_base.m_copy); (gdb) l 493 if (def-m_size == -1) { 494 if (def-m_base.m_copy) { 495 /* Somebody already imported the module, 496likely under a different name. 497XXX this should really not happen. */ 498 Py_DECREF(def-m_base.m_copy); 499 def-m_base.m_copy = NULL; 500 } 501 dict = PyModule_GetDict(mod); 502 if (dict == NULL) -- nosy: +brett.cannon, eric.snow, pitrou, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15926] Segmentation fault after multiple reinitializations
Stefan Krah added the comment: Maybe related: If you increase the number of passes in Modules/_testembed.c, pass 9 fails: --- Pass 9 --- _testembed: Objects/typeobject.c:2693: type_dealloc: Assertion `type-tp_flags (1L9)' failed. Aborted -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15926] Segmentation fault after multiple reinitializations
Changes by Stefan Krah stefan-use...@bytereef.org: -- components: +Interpreter Core stage: - needs patch type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15926] Segmentation fault after multiple reinitializations
Roundup Robot added the comment: New changeset 8d22d9528164 by Antoine Pitrou in branch 'default': Issue #15926: Fix crash after multiple reinitializations of the interpreter. http://hg.python.org/cpython/rev/8d22d9528164 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15926] Segmentation fault after multiple reinitializations
Antoine Pitrou added the comment: This should be fixed now. Georg, this is up to you whether this deserves being ported to 3.3.0 or not. -- assignee: - georg.brandl nosy: +georg.brandl resolution: - fixed stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15926] Segmentation fault after multiple reinitializations
Arfrever Frehtes Taifersar Arahesis added the comment: +1 for including the fix in 3.3.0. This segmentation fault was reproducible in test suite of dbus-python: http://cgit.freedesktop.org/dbus/dbus-python/tree/test/import-repeatedly.c -- priority: high - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15926] Segmentation fault after multiple reinitializations
New submission from Arfrever Frehtes Taifersar Arahesis: #include Python.h #include stdlib.h int main() { int i; for (i = 0; i 100; i++) { printf(%d\n, i); Py_Initialize(); Py_Finalize(); } return 0; } The above code succeeds with Python 3.2, but causes segmentation fault with Python 3.3: $ ./reinitializations 0 1 2 3 4 5 6 7 8 9 Segmentation fault $ -- keywords: 3.3regression messages: 170349 nosy: Arfrever priority: high severity: normal status: open title: Segmentation fault after multiple reinitializations versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15926 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com