Skip to content

Prevent POSIX telemetry crash in shell-less containers - #32545

Closed
Tianlei Wu (tianleiwu) with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-import-onnxruntime-segmentation-fault
Closed

Tianlei Wu (tianleiwu) with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-import-onnxruntime-segmentation-fault

Conversation

Copilot AI commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Description

  • Replace shared_ptr<FILE> with unique_ptr<FILE> in the patched telemetry SDK command helper.
  • Avoid calling pclose(nullptr) when popen() cannot start /bin/sh.

Motivation and Context

ONNX Runtime 1.29.0 can segfault during import in hardened Linux containers without /bin or /usr/bin. Telemetry initialization reaches a shell-based fallback whose null FILE* custom deleter invokes pclose(nullptr).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI changed the title [WIP] Fix segmentation fault on import of onnxruntime 1.29.0 Prevent POSIX telemetry crash in shell-less containers Sep 10, 2026
@tianleiwu

Copy link
Copy Markdown
Contributor

Copilot, I did not see the change. Please push the commit to the branch, or redo the fix.

@tianleiwu
Tianlei Wu (tianleiwu) marked this pull request as ready for review September 15, 2026 00:54
Copilot AI balanced review requested due to automatic review settings September 15, 2026 00:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

import onnxruntime segfaults in 1.29.0 on containers without /bin or /usr/bin (works in 1.28.0)

3 participants