[issue31719] [2.7] test_regrtest.test_crashed() fails on s390x

Serhiy Storchaka report at bugs.python.org
Mon Oct 9 15:31:45 EDT 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Why not use just abort() or Py_FatalError()?

$ ./python -c 'import ctypes; ctypes.CDLL("libc.so.6").abort()'
Aborted (core dumped)

$ ./python -c 'import ctypes; ctypes.pythonapi.Py_FatalError(b"boom!")'
Fatal Python error: boom!

Current thread 0x00007f26805c7580 (most recent call first):
  File "<string>", line 1 in <module>
Aborted (core dumped)

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31719>
_______________________________________


More information about the Python-bugs-list mailing list