-
Notifications
You must be signed in to change notification settings - Fork 23
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
[core dumped] core dumped when running pytest tests #887
Comments
In your output I see: |
Yes, you are right. The virtualenv is configured to python 3.6.9 uncarefully. After updating to 3.7, the pytest flow is Okay. Surprisingly, it pops out 3 failed logs and these could be accepted? =========================================== short test summary info =========================================== One failed case log: ________________________________ test_interleaved_instance_wiring[coreir-json] ________________________________ target = 'coreir', suffix = 'json'
E AssertionError: assert False tests/test_deprecated/test_old_io_syntax/test_old_io_syntax_define.py:112: AssertionError |
Hmm, in the test output, when it fails, it should report what the difference between the two files are (causing the failure), can you copy that here so we can take a look? Also, can you do |
Hi, the version and error log is listed as follows. The error log is long, and maybe be not reading-friendly. If any puzzles, please let me know. BTW: A small piece of advice about the Development setup in the README is that the log about testing results could be updated, as the python 3.6.1 may mislead users.
Thanks for your time. The version info:
The error logs are as follows:
tests/test_complex.py .................................................................................... [ 7%] ======================================================================================================================= FAILURES ========================================================================================================================
tests/test_reset.py:37: self = <coreir.context.Context object at 0x7f8dddb4d0d0>, name = 'global'
E TypeError: invalid type ../../../env/python3.7/lib/python3.7/site-packages/coreir/context.py:51: TypeError |
That error looks like it's coming from the lassen test suite, but should be fixed by this PR StanfordAHA/lassen#181 I'll see about getting that merged. Can you post the output of the error from this (the magma) test suite? |
When running the magma test suite, three assertion errors appear, which are so long that only capture some. Hope they could give you some hints.
target = 'coreir', suffix = 'json'
E AssertionError: assert False tests/test_deprecated/test_old_io_syntax/test_old_io_syntax_define.py:28: AssertionError
WARNING:magma:tests/test_deprecated/test_old_io_syntax/test_old_io_syntax_define.py:17: 'IO = [...]' syntax is deprecated, use 'io = IO(...)' syntax instead
--- gold/test_simple_def.json
[1]❰ 1 ..ha/aha/garnet ❰ 2 ..orkspace/mlir ❰ 3 ../docker_share ❰ 4 ..ace
E AssertionError: assert False tests/test_deprecated/test_old_io_syntax/test_old_io_syntax_define.py:112: AssertionError
WARNING:magma:tests/test_deprecated/test_old_io_syntax/test_old_io_syntax_define.py:92: 'IO = [...]' syntax is deprecated, use 'io = IO(...)' syntax instead
--- gold/test_interleaved_instance_wiring.json
----------------------------------------------------------------------------------------------------- Captured log call ------------------------------------------------------------------------------------------------------
WARNING magma:logging.py:91 tests/test_deprecated/test_old_io_syntax/test_old_io_syntax_define.py:92: 'IO = [...]' syntax is deprecated, use 'io = IO(...)' syntax instead
================================================================================================== short test summary info =================================================================================================== |
Should be fixed by #888 (it skips the tests if you're running an older version of Python) |
In the Python 3.7, the preceding issues are fixed after updating to #888. Thanks a lot. |
Hi folks,
Development environment:
Following the instruction, clone the master branch and make the installation, and everything goes well during the process. But an error about core dumped occurs when the pytest tests command executes the test_generator2.py. And the logs are as follows. Could you give any hints?
Thanks ahead
============================================= test session starts ============================================= [13/220]
platform linux -- Python 3.6.9, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: /home/chunjie/workspace/aha/magma
collected 759 items
tests/test_compile_errors.py sss [ 0%]
tests/test_conversion.py .FF.FF [ 1%]
tests/test_ext.py ...F..F..F [ 2%]
tests/test_family.py . [ 2%]
tests/test_flatten.py . [ 2%]
tests/test_generator.py F. [ 3%]
tests/test_generator2.py ..Fatal Python error: Aborted
Current thread 0x00007f08b5c31740 (most recent call first):
File "/home/chunjie/env/python3/lib/python3.6/site-packages/lib/python3.6/site-packages/coreir-2.0.128-py3.6-linux-x86_64.egg/coreir/module.py", line 82 in connect
File "/home/chunjie/workspace/aha/magma/magma/backend/coreir_transformer.py", line 327 in connect
File "/home/chunjie/workspace/aha/magma/magma/backend/coreir_transformer.py", line 269 in connect_non_outputs
File "/home/chunjie/workspace/aha/magma/magma/backend/coreir_transformer.py", line 257 in get_coreir_defn
File "/home/chunjie/workspace/aha/magma/magma/backend/coreir_transformer.py", line 235 in run_self
File "/home/chunjie/workspace/aha/magma/magma/backend/coreir_transformer.py", line 99 in run
File "/home/chunjie/workspace/aha/magma/magma/backend/coreir_transformer.py", line 98 in run
File "/home/chunjie/workspace/aha/magma/magma/backend/coreir_.py", line 78 in compile
File "/home/chunjie/workspace/aha/magma/magma/backend/coreir_compiler.py", line 71 in compile
File "/home/chunjie/workspace/aha/magma/magma/compile.py", line 62 in compile
File "/home/chunjie/workspace/aha/magma/tests/test_generator2.py", line 59 in test_compilation
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/python.py", line 184 in pytest_pyfunc_call
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 87 in
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in call
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/python.py", line 1627 in runtest
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/runner.py", line 163 in pytest_runtest_call
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 87 in
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in call
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/runner.py", line 256 in
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/runner.py", line 310 in from_call
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/runner.py", line 256 in call_runtest_hook
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/runner.py", line 216 in call_and_report
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/runner.py", line 127 in runtestprotocol
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/runner.py", line 110 in pytest_runtest_protocol
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 87 in
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in call
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/main.py", line 338 in pytest_runtestloop
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 87 in
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in call
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/main.py", line 313 in _main
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/main.py", line 257 in wrap_session
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/main.py", line 306 in pytest_cmdline_main
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 87 in
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/chunjie/env/python3/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in call
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/config/init.py", line 165 in main
File "/home/chunjie/env/python3/lib/python3.6/site-packages/_pytest/config/init.py", line 187 in console_main
File "/home/chunjie/env/python3/bin/pytest", line 8 in
[1] 19344 abort (core dumped) pytest tests
The text was updated successfully, but these errors were encountered: