[Python-Dev] PEP 393 review

Antoine Pitrou solipsis at pitrou.net
Tue Aug 30 13:33:23 CEST 2011


By the way, I don't know if you're working on it, but StringIO seems a
bit broken right now. test_memoryio crashes here:

test_newline_cr (test.test_memoryio.CStringIOTest) ... Fatal Python error: Segmentation fault

Current thread 0x00007f3f6353b700:
  File "/home/antoine/cpython/pep-393/Lib/test/test_memoryio.py", line 583 in test_newline_cr
  File "/home/antoine/cpython/pep-393/Lib/unittest/case.py", line 386 in _executeTestPart
  File "/home/antoine/cpython/pep-393/Lib/unittest/case.py", line 441 in run
  File "/home/antoine/cpython/pep-393/Lib/unittest/case.py", line 493 in __call__
  File "/home/antoine/cpython/pep-393/Lib/unittest/suite.py", line 105 in run
  File "/home/antoine/cpython/pep-393/Lib/unittest/suite.py", line 67 in __call__
  File "/home/antoine/cpython/pep-393/Lib/unittest/suite.py", line 105 in run
  File "/home/antoine/cpython/pep-393/Lib/unittest/suite.py", line 67 in __call__
  File "/home/antoine/cpython/pep-393/Lib/unittest/runner.py", line 168 in run
  File "/home/antoine/cpython/pep-393/Lib/test/support.py", line 1293 in _run_suite
  File "/home/antoine/cpython/pep-393/Lib/test/support.py", line 1327 in run_unittest
  File "/home/antoine/cpython/pep-393/Lib/test/test_memoryio.py", line 718 in test_main
  File "/home/antoine/cpython/pep-393/Lib/test/regrtest.py", line 1139 in runtest_inner
  File "/home/antoine/cpython/pep-393/Lib/test/regrtest.py", line 915 in runtest
  File "/home/antoine/cpython/pep-393/Lib/test/regrtest.py", line 707 in main
  File "/home/antoine/cpython/pep-393/Lib/test/__main__.py", line 13 in <module>
  File "/home/antoine/cpython/pep-393/Lib/runpy.py", line 73 in _run_code
  File "/home/antoine/cpython/pep-393/Lib/runpy.py", line 160 in _run_module_as_main
Erreur de segmentation (core dumped)


And here's an excerpt of the C stack:

#0  find_control_char (translated=0, universal=0, readnl=<value optimized out>, kind=4, start=0xa75cf4 "c", end=
    0xa75d00 "", consumed=0x7fffffffab38) at ./Modules/_io/textio.c:1617
#1  _PyIO_find_line_ending (translated=0, universal=0, readnl=<value optimized out>, kind=4, start=0xa75cf4 "c", end=
    0xa75d00 "", consumed=0x7fffffffab38) at ./Modules/_io/textio.c:1678
#2  0x00000000004ed3be in _stringio_readline (self=0x7ffff291a250) at ./Modules/_io/stringio.c:271
#3  stringio_iternext (self=0x7ffff291a250) at ./Modules/_io/stringio.c:322
#4  0x000000000052aa19 in listextend (self=0x7ffff2900ab8, b=<value optimized out>) at Objects/listobject.c:844
#5  0x000000000052afe8 in list_init (self=0x7ffff2900ab8, args=<value optimized out>, kw=<value optimized out>)
    at Objects/listobject.c:2312
#6  0x00000000004283c7 in type_call (type=<value optimized out>, args=(<_io.StringIO at remote 0x7ffff291a250>,), 
    kwds=0x0) at Objects/typeobject.c:692
#7  0x00000000004fdf17 in PyObject_Call (func=<type at remote 0x7f95c0>, arg=<value optimized out>, 
    kw=<value optimized out>) at Objects/abstract.c:2147


Regards

Antoine.


More information about the Python-Dev mailing list