Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 21, 2009, 11:38 AM

Post #1 of 7 (372 views)
Permalink
[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2

Changes by Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA [at] GMail>:


----------
nosy: +Arfrever

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 21, 2009, 3:58 PM

Post #2 of 7 (342 views)
Permalink
[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2 [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

Have you tried using 3.1.0 and even 3.0?

----------
nosy: +pitrou

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 21, 2009, 8:35 PM

Post #3 of 7 (332 views)
Permalink
[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2 [In reply to]

Stefan Behnel <scoder [at] users> added the comment:

I hadn't, but it looks like the 2to3-ed Cython also runs on 3.0 now, so
I tested that, but I failed to get the procedure below to crash for me.
And that's both in 3.0 *and* 3.1.1! :-/

But I can still provoke the crash in 3.0, 3.0.1, 3.1.1 and the latest
3.2 when running the test suite normally, so it's still there, and it's
been there for a while.

At least a debug build of the latest py3k SVN rev. 76441 (3.2a0) seems
to crash reliably for the latest Cython (cython-devel, rev.
76a814a1fc57) with the attached crash patch applied. Running the
following crashes after printing the "HERE1":

python3.2 runtests.py --no-cpp --no-pyregr --no-doctest \
--no-cpp --no-fork --no-refnanny -vv first_assignment

with the error:
"""
python3.2: Objects/unicodeobject.c:885: PyUnicodeUCS4_FromFormatV:
Assertion `obj' failed.
Aborted
"""
which occurs when it's trying to print() the dead exception. Again, no
Cython modules have been loaded up to this point, so this is still pure
Python code that crashes the interpreter.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 22, 2009, 4:59 AM

Post #4 of 7 (329 views)
Permalink
[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2 [In reply to]

Amaury Forgeot d'Arc <amauryfa [at] gmail> added the comment:

I don't reproduce the problem on Windows. But the class NodeTypeWriter is
not even used at all; did I miss something? The test builds a python
extension and runs it, successfully it seems.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 22, 2009, 6:21 AM

Post #5 of 7 (328 views)
Permalink
[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2 [In reply to]

Stefan Behnel <scoder [at] users> added the comment:

The patch is supposed to apply near the end of the class
TreeAssertVisitor at the end of the file Cython/TestUtils.py, not in the
class NodeTypeWriter.

And the test doesn't run (or even import) the extension, it just builds it.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 22, 2009, 7:55 AM

Post #6 of 7 (327 views)
Permalink
[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2 [In reply to]

Amaury Forgeot d'Arc <amauryfa [at] gmail> added the comment:

Sorry, my mistake. Now the prints are there, but the test run without
error:

Running tests against Cython 0.12.rc1
Python 3.2a0 (py3k, Nov 22 2009, 12:04:23) [MSC v.1500 32 bit (Intel)]
HERE1
(None, None, None)
HERE2
HERE1
(None, None, None)
HERE2
HERE1
(None, None, None)
HERE2
building 'first_assignment' extension
[...More output...]

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 22, 2009, 1:07 PM

Post #7 of 7 (316 views)
Permalink
[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2 [In reply to]

Amaury Forgeot d'Arc <amauryfa [at] gmail> added the comment:

I reproduce the crash on Linux. Some debug prints showed that the failing
exception object is "tp_clear'ed", because it belongs to a reference
cycle. Now if it is cleared it should not be reachable...

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.