openvino: Segmentation fault when running `test_get_runtime_model` test
Context
One of our tests results in a segfault error when ran by itself. This is probably related to Model object destruction. This task regards finding the error and fixing it. This task allows for quick familiarization with the internals of OpenVINO Python API.
Reproduction
The issue is reproducible with the following command:
python3 -m pytest tests/test_runtime/test_compiled_model.py::test_get_runtime_model -sv
which needs to be ran from openvino/src/bindings/python.
Resources
- Contribution guide
- Building OpenVINO
- How to test OpenVINO Python API
- Blog post on contributing to OpenVINO
Contact points
@jiwaszki @akuporos @p-wysocki
Ticket: 113294
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 25 (16 by maintainers)
Commits related to this issue
- fix #18388 by using a custom holder that keeps a reference to the CompiledModel — committed to FredBill1/openvino by FredBill1 5 months ago
- fix #18388 by manually del runtime_model in python code — committed to FredBill1/openvino by FredBill1 5 months ago
- fix #18388 by recreate `ov::Model` using the main runtime and assign the shared objects to the recreated object — committed to FredBill1/openvino by FredBill1 4 months ago
- fix #18388 by recreate `ov::Model` using the main runtime and assign the shared objects to the recreated object (#22900) ### Details: The detailed cause of the issue is described in https://github.c... — committed to openvinotoolkit/openvino by FredBill1 4 months ago
Hi, thanks for assigning me the issue. I found that the previous comment had a mistake and I’ve updated it.
I also wrote a piece of C++ code that can reproduce the issue, which makes it a bit easier to debug.
Sure, no worries, just checking in. 😃 There’s no rush, take your time - I’m just periodically checking our board for activity in the tasks, sometimes they get abandoned.