Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_capi fails with "Maximum call stack size exceeded" on "wasm32-emscripten node (pthreads) 3.x" buildbot #99985

Closed
sobolevn opened this issue Dec 4, 2022 · 2 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@sobolevn
Copy link
Member

sobolevn commented Dec 4, 2022

Bug report

All new commits are failing buildbots:
Снимок экрана 2022-12-04 в 12 27 53

Looks like #99895 is the cause

WASM buildbot output:

0:18:54 load avg: 7.06 [388/433/1] test_capi crashed (Exit code 7)
worker sent an error! undefined:undefined: Maximum call stack size exceeded
/opt/buildbot/bcannon-wasm/3.x.bcannon-wasm.emscripten-node-pthreads/build/build_oot/host/python.js:1
function GROWABLE_HEAP_I8(){ ... }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
RangeError [Error]: Maximum call stack size exceeded
    at <anonymous>:wasm-function[315]:0x47738
    at <anonymous>:wasm-function[314]:0x4771b
    at <anonymous>:wasm-function[106]:0x1ccb9
    at <anonymous>:wasm-function[117]:0x1d6ba
    at <anonymous>:wasm-function[212]:0x36994
    at <anonymous>:wasm-function[206]:0x337fe
    at <anonymous>:wasm-function[203]:0x32a79
    at <anonymous>:wasm-function[202]:0x32768
    at <anonymous>:wasm-function[201]:0x32512
    at <anonymous>:wasm-function[200]:0x32151
Emitted 'error' event on process instance at:
    at emitUnhandledRejectionOrErr (internal/event_target.js:579:11)
    at MessagePort.[nodejs.internal.kHybridDispatch] (internal/event_target.js:403:9)
    at MessagePort.exports.emitMessage (internal/per_context/messageport.js:18:26)
0:18:55 load avg: 7.06 [389/433/1] test_typing passed
0:18:58 load avg: 7.29 [390/433/1] test_sndhdr passed
0:18:59 load avg: 7.29 [391/433/1] test_optparse passed
0:19:01 load avg: 7.35 [392/433/1] test_genericalias passed
0:19:03 load avg: 7.35 [393/433/1] test_netrc passed
0:19:07 load avg: 7.32 [394/433/1] test_listcomps passed
0:19:10 load avg: 7.32 [395/433/1] test_wave passed
0:19:10 load avg: 7.32 [396/433/1] test_traceback passed
0:19:14 load avg: 7.53 [397/433/1] test_strftime passed
0:19:15 load avg: 7.53 [398/433/1] test_thread passed
0:19:18 load avg: 7.73 [399/433/1] test_audit passed
0:19:19 load avg: 7.73 [400/433/1] test_nntplib passed
0:19:22 load avg: 7.83 [401/433/1] test_strtod passed
0:19:24 load avg: 7.83 [402/433/1] test_tuple passed
0:19:25 load avg: 7.83 [403/433/1] test_linecache passed
0:19:28 load avg: 8.01 [404/433/1] test_ensurepip passed
0:19:29 load avg: 8.01 [405/433/1] test_richcmp passed
0:19:31 load avg: 8.01 [406/433/1] test_baseexception passed
0:19:33 load avg: 7.93 [407/433/1] test_int_literal passed
0:19:35 load avg: 7.93 [408/433/1] test_pwd skipped
test_pwd skipped -- No module named 'pwd'
0:19:36 load avg: 7.85 [409/433/1] test_syntax passed
0:19:40 load avg: 7.85 [410/433/1] test_cgi passed
0:19:43 load avg: 7.78 [411/433/1] test_bytes passed
0:19:43 load avg: 7.78 [412/433/1] test_repl skipped
test_repl skipped -- test module requires subprocess
0:19:47 load avg: 7.96 [413/433/1] test_urllib_response passed
0:19:47 load avg: 7.96 [414/433/1] test_fractions passed
0:19:50 load avg: 7.96 [415/433/1] test_functools passed
0:19:53 load avg: 7.88 [416/433/1] test_embed skipped
test_embed skipped -- test module requires subprocess
0:19:56 load avg: 7.57 [417/433/1] test_check_c_globals skipped
test_check_c_globals skipped -- test module requires subprocess
0:19:59 load avg: 7.57 [418/433/1] test_flufl passed
0:20:02 load avg: 7.53 [419/433/1] test_iter passed
0:20:04 load avg: 7.53 [420/433/1] test_augassign passed
0:20:07 load avg: 7.48 [421/433/1] test_grammar passed
0:20:10 load avg: 7.48 [422/433/1] test__osx_support passed
0:20:14 load avg: 7.45 [423/433/1] test_gc passed
0:20:17 load avg: 7.41 [424/433/1] test_tkinter skipped -- running: test_tokenize (30.2 sec)
test_tkinter skipped -- No module named '_tkinter'
0:20:20 load avg: 7.41 [425/433/1] test_pty skipped -- running: test_tokenize (33.0 sec)
test_pty skipped -- No module named 'fcntl'
0:20:30 load avg: 7.11 [426/433/1] test_buffer passed -- running: test_tokenize (42.7 sec)
0:20:32 load avg: 7.10 [427/433/1] test__locale passed -- running: test_tokenize (45.4 sec)
0:20:35 load avg: 7.10 [428/433/1] test_launcher skipped -- running: test_tokenize (48.1 sec)
test_launcher skipped -- test only applies to Windows
0:20:39 load avg: 7.09 [429/433/1] test_unicode_file_functions passed -- running: test_tokenize (51.6 sec)
0:20:41 load avg: 6.84 [430/433/1] test_eof passed -- running: test_tokenize (54.4 sec)
0:20:44 load avg: 6.84 [431/433/1] test_smtpnet skipped -- running: test_tokenize (57.1 sec)
test_smtpnet skipped -- No module named '_ssl'
0:20:47 load avg: 6.85 [432/433/1] test_slice passed -- running: test_tokenize (1 min)
0:20:50 load avg: 6.85 [433/433/1] test_tokenize passed (58.6 sec)
== Tests result: FAILURE ==
338 tests OK.
10 slowest tests:
- test_tokenize: 58.6 sec
- test_unparse: 51.9 sec
- test_lib2to3: 50.1 sec
- test_io: 27.6 sec
- test_unicodedata: 21.8 sec
- test_pickle: 17.0 sec
- test_statistics: 16.9 sec
- test_weakref: 16.8 sec
- test_zipfile: 15.6 sec
- test_decimal: 15.5 sec
1 test failed:
    test_capi

Link for the failing CI job: https://buildbot.python.org/all/#/builders/1050/builds/953/steps/10/logs/stdio

AMD64 FreeBSD Non-Debug 3.x output:

0:07:14 load avg: 1.96 Re-running test_cmd_line_script in verbose mode (matching: test_script_as_dev_fd)
test_script_as_dev_fd (test.test_cmd_line_script.CmdLineTest.test_script_as_dev_fd) ... FAIL
Stderr:
/usr/home/buildbot/python/3.x.koobs-freebsd-9e36.nondebug/build/Lib/subprocess.py:849: RuntimeWarning: pass_fds overriding close_fds.
  warnings.warn("pass_fds overriding close_fds.", RuntimeWarning)
======================================================================
FAIL: test_script_as_dev_fd (test.test_cmd_line_script.CmdLineTest.test_script_as_dev_fd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/buildbot/python/3.x.koobs-freebsd-9e36.nondebug/build/Lib/test/test_cmd_line_script.py", line 766, in test_script_as_dev_fd
    self.assertEqual(out, b"12345678912345678912345\n")
AssertionError: b"/usr/home/buildbot/python/3.x.koobs-free[94 chars]ry\n" != b'12345678912345678912345\n'
Stderr:
/usr/home/buildbot/python/3.x.koobs-freebsd-9e36.nondebug/build/Lib/subprocess.py:849: RuntimeWarning: pass_fds overriding close_fds.
  warnings.warn("pass_fds overriding close_fds.", RuntimeWarning)
----------------------------------------------------------------------
Ran 1 test in 0.041s
FAILED (failures=1)
test test_cmd_line_script failed
1 test failed again:
    test_cmd_line_script

Link: https://buildbot.python.org/all/#/builders/172/builds/3230/steps/5/logs/stdio

CC @pablogsal and @vstinner

@sobolevn sobolevn added type-bug An unexpected behavior, bug, or error tests Tests in the Lib/test dir labels Dec 4, 2022
@vstinner
Copy link
Member

vstinner commented Dec 5, 2022

For the test_cmd_line_script.test_script_as_dev_fd() failure on FreeBSD, I created issue #100005 and I proposed PR #100006 to fix it.

@vstinner
Copy link
Member

vstinner commented Dec 5, 2022

It seems like the first WASM (wasm32-emscripten node (pthreads) 3.x) build with test_capi failure was the one testing 3c137dc

@vstinner vstinner changed the title Two new buildbot failures: WASM and AMD64 FreeBSD Non-Debug 3.x test_capi fails with "Maximum call stack size exceeded" on "wasm32-emscripten node (pthreads) 3.x" buildbot Dec 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants