[issue15578] Crash when modifying sys.modules during import

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 731e5617cc8d by Gregory P. Smith in branch '2.7': Fix placement of Misc/NEWS item for issue #15578. https://hg.python.org/cpython/rev/731e5617cc8d -- ___ Python tracker

[issue15578] Crash when modifying sys.modules during import

2016-09-07 Thread Eric Snow
Changes by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue15578] Crash when modifying sys.modules during import

2016-09-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2d6dd8402d77 by Eric Snow in branch '2.7': Issue #15578: Correctly incref the parent module while importing. https://hg.python.org/cpython/rev/2d6dd8402d77 -- nosy: +python-dev ___ Python tracker

[issue15578] Crash when modifying sys.modules during import

2013-03-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> eric.snow nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15578] Crash when modifying sys.modules during import

2013-03-26 Thread Brett Cannon
Brett Cannon added the comment: Eric has commit rights now so he can commit his own fix. =) -- ___ Python tracker ___ ___ Python-bugs-

[issue15578] Crash when modifying sys.modules during import

2012-08-17 Thread Eric Snow
Eric Snow added the comment: Here's the deal. import_module_level() gets called for v1 from sa (where "globals" comes from). In that function it first calls get_parent(), which returns a borrowed reference to the sa module object. Then that parent object is passed to load_next() where the act

[issue15578] Crash when modifying sys.modules during import

2012-08-09 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15578] Crash when modifying sys.modules during import

2012-08-08 Thread nordaux
Changes by nordaux : -- nosy: +nordaux ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue15578] Crash when modifying sys.modules during import

2012-08-07 Thread R. David Murray
R. David Murray added the comment: If I remember correctly there were non-trivial improvements made to the way modules are finalized in 2.7 compared to earlier versions. That could be what exposed the bug. The pre-2.7 code might have been leaving another reference alive because of your more

[issue15578] Crash when modifying sys.modules during import

2012-08-07 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue15578] Crash when modifying sys.modules during import

2012-08-07 Thread Thomas Wouters
New submission from Thomas Wouters: In a submodule of a package, replacing the parent package in sys.modules during import of the package (meaning the only reference to it is in sys.modules) and then importing itself (or something from itself) crashes the interpreter: centurion:~/python/crashe