Skip to content

test_abort_on_exceptions_pthreads is flaky #20067

Open

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

  1. added 5 commits that reference this issue on Aug 24, 2025
    518fc1c
    ca379af
    407e953
    7639674
    cd8e6dc
  2. added 5 commits that reference this issue on Aug 27, 2025
    db180a0
    3c8e06c
    6dc6e87
    df8b5c2
    24f9659
  3. added a commit that references this issue on Aug 28, 2025
    7cd7ece
  4. added 2 commits that reference this issue on Sep 3, 2025
  5. juj commented on Sep 5, 2025

    @juj
    Collaborator
  6. reopened this on Sep 5, 2025
  7. sbc100 commented on Sep 23, 2025

    @sbc100
    CollaboratorAuthor

    Seems like maybe and unrelated issue. I sometimes see node timeout on wasm64 tests for no apparent reason. Like it has something in the event loop queue, but I've never been able to debug it.

  8. added 3 commits that reference this issue on Feb 13, 2026
    1d7e3ae
    c26bc38
    07b8688
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