Opened 2 years ago

Last modified 18 months ago

#26912 new defect

Test failure in doctest framework

Reported by: gh-timokau Owned by:
Priority: major Milestone:
Component: doctest framework Keywords:
Cc: jdmeyer Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by jdemeyer)

As discussed on sage-packaging, one of the test cases in src/sage/doctest/test.py sometimes fails when the system is under load. This was reproduced by Jeroen Demeyer with sage 8.5.rc0. Here's the log:

File "/nix/store/s1x3samyxif0mdg4l9v6abjzccc88b08-sage-src-8.4/src/sage/doctest/test.py", line 220, in sage.doctest.test
Failed example:
    subprocess.call(["sage", "-tp", "1000000", "--timeout=120",  # long time
         "--warn-long", "0", "99seconds.rst", "interrupt_diehard.rst"], **kwds2)
Expected:
    Running doctests...
    Doctesting 2 files using 1000000 threads.
    Killing test 99seconds.rst
    Killing test interrupt_diehard.rst
    ----------------------------------------------------------------------
    Doctests interrupted: 0/2 files tested
    ----------------------------------------------------------------------
    ...
    128
Got:
    Running doctests with ID 2018-12-17-16-27-41-26396051.
    Using --optional=dochtml,gmp,memlimit,nose,sage
    Doctesting 2 files using 1000000 threads.
    ------------------------------------------------------------------------
    Killing test 99seconds.rst
    Killing test interrupt_diehard.rst
    /nix/store/chdzkj17b8x0q42jnygpsjj9ccw2rasz-python-2.7.15-env/lib/python2.7/site-packages/cysignals/signals.so(+0x7bfb)[0x7ffff1a2bbfb]
    /nix/store/chdzkj17b8x0q42jnygpsjj9ccw2rasz-python-2.7.15-env/lib/python2.7/site-packages/cysignals/signals.so(+0x7cbf)[0x7ffff1a2bcbf]
    /nix/store/chdzkj17b8x0q42jnygpsjj9ccw2rasz-python-2.7.15-env/lib/python2.7/site-packages/cysignals/signals.so(+0xa7bb)[0x7ffff1a2e7bb]
    /nix/store/1mnsmslnx5anjfksac6417xfzzglrwhr-glibc-2.27/lib/libpthread.so.0(+0x11f10)[0x7ffff7592f10]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyFrame_New+0xb5)[0x7ffff78294e5]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x947a)[0x7ffff78b658a]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(+0x8a109)[0x7ffff782a109]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7ffff77f9043]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(+0x6865c)[0x7ffff780865c]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7ffff77f9043]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(+0xcb3ba)[0x7ffff786b3ba]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7ffff77f9043]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x2d32)[0x7ffff78afe42]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x94cb)[0x7ffff78b65db]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(+0x8a109)[0x7ffff782a109]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7ffff77f9043]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(+0x6865c)[0x7ffff780865c]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7ffff77f9043]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(+0xcb6f2)[0x7ffff786b6f2]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(+0xc7bba)[0x7ffff7867bba]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7ffff77f9043]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x2d32)[0x7ffff78afe42]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x94cb)[0x7ffff78b65db]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6713)[0x7ffff78b3823]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7b8)[0x7ffff78b6dd8]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7ffff78b6fe9]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyRun_FileExFlags+0x8a)[0x7ffff78d9c8a]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0xe3)[0x7ffff78dbbc3]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/lib/libpython2.7.so.1.0(Py_Main+0xb4a)[0x7ffff78f4ada]
    /nix/store/1mnsmslnx5anjfksac6417xfzzglrwhr-glibc-2.27/lib/libc.so.6(__libc_start_main+0xee)[0x7ffff6a52b8e]
    /nix/store/vb3jdf8f9xq8aq77dq93csifdx3xkcwa-python-2.7.15/bin/python(_start+0x2a)[0x4007fa]
    ------------------------------------------------------------------------
    ----------------------------------------------------------------------
    Doctests interrupted: 0/2 files tested
    ----------------------------------------------------------------------
    Total time for all tests: 0.1 seconds
        cpu time: 0.0 seconds
        cumulative wall time: 0.0 seconds
    Attaching gdb to process id 6834.
    Cannot find gdb installed
    GDB is not installed.
    Install gdb for enhanced tracebacks.
    ------------------------------------------------------------------------
    128

Change History (7)

comment:1 Changed 2 years ago by gh-timokau

@Jeroen

Unfortunately, I don't manage to reproduce it reliably enough to be able to fix it.

Thats unfortunate. Do you think it may have something to do with the "ridiculous number of threads"?

comment:2 Changed 2 years ago by jdemeyer

  • Component changed from packages: standard to doctest framework
  • Description modified (diff)
  • Keywords cysignals removed
  • Summary changed from cysignals related test failure in test.py to Test failure in doctest framework

As I mentioned before, I don't think that this is related to cysignals in any way.

comment:3 Changed 2 years ago by jdemeyer

  • Description modified (diff)

comment:4 Changed 2 years ago by gh-timokau

Oh, I misunderstood. I thought you only meant that the update to 1.8.0 wasn't responsible.

comment:5 Changed 23 months ago by embray

  • Milestone changed from sage-8.6 to sage-8.7

Retarging tickets optimistically to the next milestone. If you are responsible for this ticket (either its reporter or owner) and don't believe you are likely to complete this ticket before the next release (8.7) please retarget this ticket's milestone to sage-pending or sage-wishlist.

comment:6 Changed 21 months ago by embray

  • Milestone changed from sage-8.7 to sage-8.8

Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually)

comment:7 Changed 18 months ago by embray

  • Milestone sage-8.8 deleted

As the Sage-8.8 release milestone is pending, we should delete the sage-8.8 milestone for tickets that are not actively being worked on or that still require significant work to move forward. If you feel that this ticket should be included in the next Sage release at the soonest please set its milestone to the next release milestone (sage-8.9).

Note: See TracTickets for help on using tickets.