Skip to content

test_abort_on_exceptions_pthreads is flaky #20067

Description

@sbc100
======================================================================
FAIL: test_abort_on_exceptions_pthreads (test_core.core0)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\b\s\w\ir\cache\vpython\store\cpython-e6tenrlsesftvg6k08ajgkk7b4\contents\bin\Lib\unittest\case.py", line 60, in testPartExecutor
    yield
  File "C:\b\s\w\ir\cache\vpython\store\cpython-e6tenrlsesftvg6k08ajgkk7b4\contents\bin\Lib\unittest\case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "C:\b\s\w\ir\cache\vpython\store\cpython-e6tenrlsesftvg6k08ajgkk7b4\contents\bin\Lib\unittest\case.py", line 633, in _callTestMethod
    method()
  File "C:\b\s\w\ir\x\w\install\emscripten\test\common.py", line 237, in decorated
    f(self, *args, **kwargs)
  File "C:\b\s\w\ir\x\w\install\emscripten\test\test_core.py", line 9607, in test_abort_on_exceptions_pthreads
    self.do_core_test('test_hello_world.c')
  File "C:\b\s\w\ir\x\w\install\emscripten\test\test_core.py", line 360, in do_core_test
    self.do_run_in_out_file_test(Path('core', testname), **kwargs)
  File "C:\b\s\w\ir\x\w\install\emscripten\test\common.py", line 1474, in do_run_in_out_file_test
    output = self._build_and_run(srcfile, expected, **kwargs)
  File "C:\b\s\w\ir\x\w\install\emscripten\test\common.py", line 1512, in _build_and_run
    js_output = self.run_js(js_file, engine, args,
  File "C:\b\s\w\ir\x\w\install\emscripten\test\common.py", line 1105, in run_js
    self.fail('JS subprocess failed (%s): %s.  Output:\n%s' % (error.cmd, error.returncode, ret))
  File "C:\b\s\w\ir\cache\vpython\store\cpython-e6tenrlsesftvg6k08ajgkk7b4\contents\bin\Lib\unittest\case.py", line 753, in fail
    raise self.failureException(msg)
AssertionError: JS subprocess failed (C:/b/s/w/ir/cache/builder/emscripten-releases/node-v16.20.0-win-x64/bin/node.exe --stack-trace-limit=50 --trace-uncaught C:\b\s\w\ir\x\t\emtest_x2r2d6xg\emscripten_test_core0_nppgbyhw\test_hello_world.js): 7.  Output:
hello, world!
C:\b\s\w\ir\x\t\emtest_x2r2d6xg\emscripten_test_core0_nppgbyhw\test_hello_world.js:148
      throw ex;
      ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "program has already aborted!".] {
  code: 'ERR_UNHANDLED_REJECTION'
}
Thrown at:
    at getErrorWithoutStack (node:internal/process/promises:311:15)
    at generateUnhandledRejectionError (node:internal/process/promises:331:15)
    at processPromiseRejections (node:internal/process/promises:277:24)
    at processTicksAndRejections (node:internal/process/task_queues:97:32)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions