gigiblender opened a new issue, #12199:
URL: https://github.com/apache/tvm/issues/12199

   Once #12178 is merged, 
`test_meta_schedule_task_scheduler.py::test_meta_schedule_task_scheduler_multiple_gradient_based`
 will be skipped under the `ci_minimal` docker configuration. The reason is 
that the `ci_minimal` image compiles TVM with `-D_GLIBCXX_ASSERTIONS` and this 
test causes an array OOB access. 
   
   ### Expected behavior
   
   Expected behavior is 
`tests/python/unittest/test_meta_schedule_task_scheduler.py::test_meta_schedule_task_scheduler_multiple_gradient_based`
 to pass.
   
   ### Actual behavior
   
   The test is failing with an array OOB access:
   ```
   /usr/include/c++/7/bits/stl_vector.h:797: std::vector<_Tp, 
_Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, 
_Alloc>::size_type) [with _Tp = double; _Alloc = std::allocator<double>; 
std::vector<_Tp, _Alloc>::reference = double&; std::vector<_Tp, 
_Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < 
this->size(), true)' failed.
   Fatal Python error: Aborted
   
   Thread 0x00007efe55d0a700 (most recent call first):
     File "/usr/lib/python3.7/socket.py", line 212 in accept
     File "/usr/local/lib/python3.7/dist-packages/pytest_rerunfailures.py", 
line 429 in run_server
     File "/usr/lib/python3.7/threading.py", line 870 in run
     File "/usr/lib/python3.7/threading.py", line 926 in _bootstrap_inner
     File "/usr/lib/python3.7/threading.py", line 890 in _bootstrap
   
   Current thread 0x00007efe90045740 (most recent call first):
     File "/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 233 in __call__
     File "/tvm/python/tvm/meta_schedule/task_scheduler/task_scheduler.py", 
line 72 in tune
     File "/tvm/tests/python/unittest/test_meta_schedule_task_scheduler.py", 
line 402 in test_meta_schedule_task_scheduler_multiple_gradient_based
     File "/usr/local/lib/python3.7/dist-packages/_pytest/python.py", line 192 
in pytest_pyfunc_call
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_callers.py", line 39 
in _multicall
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_manager.py", line 80 
in _hookexec
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_hooks.py", line 265 
in __call__
     File "/usr/local/lib/python3.7/dist-packages/_pytest/python.py", line 1761 
in runtest
     File "/usr/local/lib/python3.7/dist-packages/_pytest/runner.py", line 166 
in pytest_runtest_call
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_callers.py", line 39 
in _multicall
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_manager.py", line 80 
in _hookexec
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_hooks.py", line 265 
in __call__
     File "/usr/local/lib/python3.7/dist-packages/_pytest/runner.py", line 259 
in <lambda>
     File "/usr/local/lib/python3.7/dist-packages/_pytest/runner.py", line 338 
in from_call
     File "/usr/local/lib/python3.7/dist-packages/_pytest/runner.py", line 259 
in call_runtest_hook
     File "/usr/local/lib/python3.7/dist-packages/_pytest/runner.py", line 219 
in call_and_report
     File "/usr/local/lib/python3.7/dist-packages/_pytest/runner.py", line 130 
in runtestprotocol
     File "/usr/local/lib/python3.7/dist-packages/_pytest/runner.py", line 111 
in pytest_runtest_protocol
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_callers.py", line 39 
in _multicall
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_manager.py", line 80 
in _hookexec
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_hooks.py", line 265 
in __call__
     File "/usr/local/lib/python3.7/dist-packages/_pytest/main.py", line 347 in 
pytest_runtestloop
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_callers.py", line 39 
in _multicall
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_manager.py", line 80 
in _hookexec
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_hooks.py", line 265 
in __call__
     File "/usr/local/lib/python3.7/dist-packages/_pytest/main.py", line 322 in 
_main
     File "/usr/local/lib/python3.7/dist-packages/_pytest/main.py", line 268 in 
wrap_session
     File "/usr/local/lib/python3.7/dist-packages/_pytest/main.py", line 315 in 
pytest_cmdline_main
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_callers.py", line 39 
in _multicall
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_manager.py", line 80 
in _hookexec
     File "/usr/local/lib/python3.7/dist-packages/pluggy/_hooks.py", line 265 
in __call__
     File "/usr/local/lib/python3.7/dist-packages/_pytest/config/__init__.py", 
line 165 in main
     File "/usr/local/lib/python3.7/dist-packages/_pytest/config/__init__.py", 
line 187 in console_main
     File "/usr/local/lib/python3.7/dist-packages/pytest/__main__.py", line 5 
in <module>
     File "/usr/lib/python3.7/runpy.py", line 85 in _run_code
     File "/usr/lib/python3.7/runpy.py", line 193 in _run_module_as_main
   Aborted (core dumped)
   ```
   
   ### Environment
   
   `ci_minimal` image configuration
   
   ### Steps to reproduce
   
   Run ```
   TVM_FFI=ctypes python3 -m pytest -s -v 
tests/python/unittest/test_meta_schedule_task_scheduler.py -k 
"test_meta_schedule_task_scheduler_multiple_gradient_based"```
    from the `ci_minimal` docker container or 
   use the `ci.py`script:
   ```
   python tests/scripts/ci.py minimal --verbose --tests 
tests/python/unittest/test_meta_schedule_task_scheduler.py::test_meta_schedule_task_scheduler_multiple_gradient_based
   ```
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to