Skip to content

Conversation

Gasoonjia
Copy link
Contributor

@Gasoonjia Gasoonjia commented Oct 8, 2025

Stack from ghstack (oldest at bottom):

This diff survives clear_all_tensors() function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.

Differential Revision: D84135792

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Oct 8, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14905

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures

As of commit ab1c5c1 with merge base f32e9fc (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Gasoonjia added a commit that referenced this pull request Oct 8, 2025
This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)

ghstack-source-id: 314867937
Pull Request resolved: #14905
Copy link

github-actions bot commented Oct 8, 2025

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 8, 2025
// We noticed that AOTInductorModelContainerDelete doesn't work well with
// mutitple .so files when we tried to use it to delete container handle,
// since freeing one of them will free some sharing resources, leading to
// segfault when trying to free the other .so files. Now we do not explicted
Copy link
Contributor

Choose a reason for hiding this comment

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

You can let AI proofread these.

Suggested change
// segfault when trying to free the other .so files. Now we do not explicted
// segfault when trying to free the other .so files. Now we do not explicitly

… segfault-free"

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)

[ghstack-poisoned]
Gasoonjia added a commit that referenced this pull request Oct 8, 2025
Pull Request resolved: #14905

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.
ghstack-source-id: 314881464
@exported-using-ghexport

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)
… segfault-free"

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)

[ghstack-poisoned]
Gasoonjia added a commit that referenced this pull request Oct 8, 2025
Pull Request resolved: #14905

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.
ghstack-source-id: 314887533
@exported-using-ghexport

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)
… segfault-free"

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)

[ghstack-poisoned]
Gasoonjia added a commit that referenced this pull request Oct 8, 2025
Pull Request resolved: #14905

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.
ghstack-source-id: 314925612
@exported-using-ghexport

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)
… segfault-free"

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)

[ghstack-poisoned]
Gasoonjia added a commit that referenced this pull request Oct 8, 2025
Pull Request resolved: #14905

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.
ghstack-source-id: 314936353
@exported-using-ghexport

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)
… segfault-free"

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)

[ghstack-poisoned]
Gasoonjia added a commit that referenced this pull request Oct 8, 2025
Pull Request resolved: #14905

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.
ghstack-source-id: 314948206
@exported-using-ghexport

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)
… segfault-free"

This diff survives `clear_all_tensors()` function and enable it during backend destroy stage. Furthermore, we defer the container handle deletion to OS to avoid potential segfault if there's more than one .so files.

Differential Revision: [D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)

[ghstack-poisoned]
@meta-codesync meta-codesync bot merged commit 0bbcec0 into gh/gasoonjia/50/base Oct 9, 2025
134 of 137 checks passed
@meta-codesync meta-codesync bot deleted the gh/gasoonjia/50/head branch October 9, 2025 05:05
@meta-codesync meta-codesync bot temporarily deployed to cherry-pick-bot October 9, 2025 05:05 Inactive
Gasoonjia added a commit that referenced this pull request Oct 9, 2025
…ree (#14927)

This PR was created by the merge bot to help merge the original PR into
the main branch.
ghstack PR number: #14905 by
@Gasoonjia
^ Please use this as the source of truth for the PR details, comments,
and reviews
ghstack PR base:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/50/base
ghstack PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/50/head
Merge bot PR base:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/49/orig
Merge bot PR head:
https://github.com/pytorch/executorch/tree/gh/gasoonjia/50/orig
Differential Revision:
[D84135792](https://our.internmc.facebook.com/intern/diff/D84135792/)
@diff-train-skip-merge

---------

Co-authored-by: gasoonjia <gasoonjia@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants