roastduck opened a new issue #5189: Python unit test test_tuple_type crashes URL: https://github.com/apache/incubator-tvm/issues/5189 Python unit test test_tuple_type crashes in my platform, but it is passing in the CI. Log: ``` tests/python/unittest/test_ir_type.py::test_tuple_type Fatal Python error: Segmentation fault Current thread 0x00007f1e0e239700 (most recent call first): File "/home/rd/src/tvm_experiments/tvm-dev/python/tvm/_ffi/_ctypes/packed_func.py", line 212 in __call__ File "/home/rd/src/tvm_experiments/tvm-dev/python/tvm/ir/base.py", line 56 in __str__ File "/home/rd/src/tvm_experiments/tvm-dev/tests/python/unittest/test_ir_type.py", line 81 in test_tuple_type File "/home/rd/.local/lib/python3.7/site-packages/_pytest/python.py", line 184 in pytest_pyfunc_call File "/home/rd/.local/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda> File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec File "/home/rd/.local/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__ File "/home/rd/.local/lib/python3.7/site-packages/_pytest/python.py", line 1479 in runtest File "/home/rd/.local/lib/python3.7/site-packages/_pytest/runner.py", line 135 in pytest_runtest_call File "/home/rd/.local/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda> File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec File "/home/rd/.local/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__ File "/home/rd/.local/lib/python3.7/site-packages/_pytest/runner.py", line 217 in <lambda> File "/home/rd/.local/lib/python3.7/site-packages/_pytest/runner.py", line 244 in from_call File "/home/rd/.local/lib/python3.7/site-packages/_pytest/runner.py", line 217 in call_runtest_hook File "/home/rd/.local/lib/python3.7/site-packages/_pytest/runner.py", line 186 in call_and_report File "/home/rd/.local/lib/python3.7/site-packages/_pytest/runner.py", line 100 in runtestprotocol File "/home/rd/.local/lib/python3.7/site-packages/_pytest/runner.py", line 85 in pytest_runtest_protocol File "/home/rd/.local/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda> File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec File "/home/rd/.local/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__ File "/home/rd/.local/lib/python3.7/site-packages/_pytest/main.py", line 272 in pytest_runtestloop File "/home/rd/.local/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda> File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec File "/home/rd/.local/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__ File "/home/rd/.local/lib/python3.7/site-packages/_pytest/main.py", line 247 in _main File "/home/rd/.local/lib/python3.7/site-packages/_pytest/main.py", line 191 in wrap_session File "/home/rd/.local/lib/python3.7/site-packages/_pytest/main.py", line 240 in pytest_cmdline_main File "/home/rd/.local/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda> File "/home/rd/.local/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec File "/home/rd/.local/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__ File "/home/rd/.local/lib/python3.7/site-packages/_pytest/config/__init__.py", line 125 in main File "/home/rd/.local/lib/python3.7/site-packages/pytest/__main__.py", line 7 in <module> File "/home/rd/install/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-7.3.0/python-3.7.0-5vsakxo7t7c3jona2og2myyjwydkkg6c/lib/python3.7/runpy.py", line 85 in _run_code File "/home/rd/install/spack/opt/spack/linux-ubuntu16.04-x86_64/gcc-7.3.0/python-3.7.0-5vsakxo7t7c3jona2og2myyjwydkkg6c/lib/python3.7/runpy.py", line 193 in _run_module_as_main ./tests/scripts/task_python_unittest.sh: line 27: 13980 Segmentation fault (core dumped) TVM_FFI=ctypes python3 -m pytest -v tests/python/unittest ``` I am running the latest version (ff6fa3995c6b2cd253c6265798567a635dc00aa8), built with GCC 7.3.0 and python 3.7.0. My build config: ``` #-------------------------------------------------------------------- # Template custom cmake configuration for compiling # # This file is used to override the build options in build. # If you want to change the configuration, please use the following # steps. Assume you are on the root directory. First copy the this # file so that any local changes will be ignored by git # # $ mkdir build # $ cp cmake/config.cmake build # # Next modify the according entries, and then compile by # # $ cd build # $ cmake .. # # Then buld in parallel with 8 threads # # $ make -j8 #-------------------------------------------------------------------- #--------------------------------------------- # Backend runtimes. #--------------------------------------------- # Whether enable CUDA during compile, # # Possible values: # - ON: enable CUDA with cmake's auto search # - OFF: disable CUDA # - /path/to/cuda: use specific path to cuda toolkit set(USE_CUDA ON) # Whether enable ROCM runtime # # Possible values: # - ON: enable ROCM with cmake's auto search # - OFF: disable ROCM # - /path/to/rocm: use specific path to rocm set(USE_ROCM OFF) # Whether enable SDAccel runtime set(USE_SDACCEL OFF) # Whether enable Intel FPGA SDK for OpenCL (AOCL) runtime set(USE_AOCL OFF) # Whether enable OpenCL runtime set(USE_OPENCL OFF) # Whether enable Metal runtime set(USE_METAL OFF) # Whether enable Vulkan runtime # # Possible values: # - ON: enable Vulkan with cmake's auto search # - OFF: disable vulkan # - /path/to/vulkan-sdk: use specific path to vulkan-sdk set(USE_VULKAN OFF) # Whether enable OpenGL runtime set(USE_OPENGL OFF) # Whether enable MicroTVM runtime set(USE_MICRO OFF) # Whether to enable SGX runtime # # Possible values for USE_SGX: # - /path/to/sgxsdk: path to Intel SGX SDK # - OFF: disable SGX # # SGX_MODE := HW|SIM set(USE_SGX OFF) set(SGX_MODE "SIM") set(RUST_SGX_SDK "/path/to/rust-sgx-sdk") # Whether enable RPC runtime set(USE_RPC ON) # Whether embed stackvm into the runtime set(USE_STACKVM_RUNTIME OFF) # Whether enable tiny embedded graph runtime. set(USE_GRAPH_RUNTIME ON) # Whether enable additional graph debug functions set(USE_GRAPH_RUNTIME_DEBUG OFF) # Whether enable additional vm profiler functions set(USE_VM_PROFILER OFF) # Whether enable uTVM standalone runtime set(USE_MICRO_STANDALONE_RUNTIME ON) # Whether build with LLVM support # Requires LLVM version >= 4.0 # # Possible values: # - ON: enable llvm with cmake's find search # - OFF: disable llvm # - /path/to/llvm-config: enable specific LLVM when multiple llvm-dev is available. set(USE_LLVM ON) #--------------------------------------------- # Contrib libraries #--------------------------------------------- # Whether use BLAS, choices: openblas, mkl, atlas, apple set(USE_BLAS none) # /path/to/mkl: mkl root path when use mkl blas library # set(USE_MKL_PATH /opt/intel/mkl) for UNIX # set(USE_MKL_PATH ../IntelSWTools/compilers_and_libraries_2018/windows/mkl) for WIN32 # set(USE_MKL_PATH <path to venv or site-packages directory>) if using `pip install mkl` set(USE_MKL_PATH none) # Whether use contrib.random in runtime set(USE_RANDOM OFF) # Whether use NNPack set(USE_NNPACK OFF) # Whether use CuDNN set(USE_CUDNN ON) # Whether use cuBLAS set(USE_CUBLAS ON) # Whether use MIOpen set(USE_MIOPEN OFF) # Whether use MPS set(USE_MPS OFF) # Whether use rocBlas set(USE_ROCBLAS OFF) # Whether use contrib sort set(USE_SORT ON) # Build ANTLR parser for Relay text format set(USE_ANTLR OFF) # Whether use Relay debug mode set(USE_RELAY_DEBUG OFF) # Whether to build fast VTA simulator driver set(USE_VTA_FSIM ON) # Whether to build cycle-accurate VTA simulator driver set(USE_VTA_TSIM ON) # Whether to build VTA FPGA driver (device side only) set(USE_VTA_FPGA OFF) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
