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

Segmentation fault when running test_get_runtime_model test #20163

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def test_get_property(device):

def test_get_runtime_model(device):
compiled_model = generate_relu_compiled_model(device)

core = Core()
user_stream = compiled_model.export_model()
core.import_model(user_stream, device)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's totally unclear why do we need to export / import model to resolve a segfault

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@siddhant-0707 mentioned that it is unclear why. However, my best bet would be creating actual core = Core() that is somehow affecting internals. Would you be able to test it out?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compiled_model (returned by generate_relu_compiled_model) is expected to hold some internal to prolong its live time and ensure correct destruction.
But if it's 100% reproducible, it can be debugged with dbg. @siddhant-0707 could you please try to collect debugger logs?


runtime_model = compiled_model.get_runtime_model()
assert isinstance(runtime_model, Model)

Expand Down