[issue15001] segmentation fault with del sys.module['__main__']

2012-11-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b256d054f229 by Hynek Schlawack in branch '3.2':
Issue #15001: fix segfault on "del sys.module['__main__']"
http://hg.python.org/cpython/rev/b256d054f229

New changeset 215297665098 by Hynek Schlawack in branch '3.3':
Issue #15001: fix segfault on "del sys.module['__main__']"
http://hg.python.org/cpython/rev/215297665098

New changeset 859ef54bdce2 by Hynek Schlawack in branch 'default':
Issue #15001: fix segfault on "del sys.module['__main__']"
http://hg.python.org/cpython/rev/859ef54bdce2

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-11-05 Thread Nick Coghlan

Changes by Nick Coghlan :


--
nosy: +ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-11-03 Thread Ezio Melotti

Ezio Melotti added the comment:

Same here, I tested the patch on 3.4 (debug and non-debug) and it seems to fix 
the problem.

--
nosy: +ezio.melotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-11-03 Thread Dmytro Korsakov

Dmytro Korsakov added the comment:

I was unable to reproduce the case with stock python 2.7 neither on OSX nor on 
Linux. System python 3.2 seems to be fine too. 
At the same time python 2.7 built with debug enabled gets infinite loop and 
uses all the cpu.
However, python 3.4 crashes just as described built both with or without debug 
flag, and suggested patch fixes it.

--
nosy: +shaitanich

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-11-02 Thread Hynek Schlawack

Hynek Schlawack added the comment:

Fun fact, on 2.7 & 3.2 I get infinite loops @ 100% CPU. 3.3 & default crash.

Unless someone yells, I'll polish this up and commit next week.

--
stage:  -> commit review
versions: +Python 3.4 -Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-06-05 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-06-05 Thread STINNER Victor

STINNER Victor  added the comment:

Attached patch changes PyRun_SimpleFileExFlags() to keep a reference to the 
module.

--
keywords: +patch
Added file: http://bugs.python.org/file25839/pyrun_simple.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-06-04 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-06-04 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

Many paths in pythonrun.c contains these lines:
m = PyImport_AddModule("__main__");
d = PyModule_GetDict(m);
both return borrowed references, from sys.modules.
in most cases, d is simply passed to PyEval_EvalCode() and not used afterwards, 
*except* in PyRun_SimpleFileExFlags which calls PyDict_DelItemString(d, 
"__file__"); this is where the crash occurs.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-06-04 Thread Hynek Schlawack

Changes by Hynek Schlawack :


--
nosy: +hynek

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-06-04 Thread Alex Gaynor

Changes by Alex Gaynor :


--
nosy: +alex

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15001] segmentation fault with del sys.module['__main__']

2012-06-04 Thread Amaury Forgeot d'Arc

New submission from Amaury Forgeot d'Arc :

This simple script segfaults the interpreter (all versions), at least when run 
with "./python myscript.py"

myscript.py::
import sys
del sys.module['__main__']

--
messages: 162284
nosy: amaury.forgeotdarc
priority: normal
severity: normal
status: open
title: segmentation fault with del sys.module['__main__']
type: crash
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com