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

fix: Add more protection around backend response APIs to avoid crashing server from improper API use by backends #367

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

rmccorm4
Copy link
Contributor

@rmccorm4 rmccorm4 commented Jun 5, 2024

Related PR: triton-inference-server/backend#99

Previously, some backends like the identity_backend would call TRITONBACKEND_Response* APIs even when it had a nullptr response, leading to server segfaults. While the backend can be improved to not do this, a more holistic approach for all backends is to catch this in core and gracefully return an error.

NOTE: There are likely more APIs that could be checked/improved, but keeping scope small to what APIs were involved in the L0_pinned_memory failures.

@rmccorm4 rmccorm4 changed the title Add more protection around backend response APIs to avoid crashing server from improper API use by backends fix: Add more protection around backend response APIs to avoid crashing server from improper API use by backends Jun 5, 2024
@rmccorm4 rmccorm4 requested review from Tabrizian and indrajit96 June 5, 2024 23:17
@rmccorm4 rmccorm4 merged commit 190d8e3 into main Jun 6, 2024
1 check passed
@rmccorm4 rmccorm4 deleted the rmccormick-fix-pinned-memory branch June 6, 2024 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants