-
Notifications
You must be signed in to change notification settings - Fork 546
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 tmux crashing bug #6766
Merged
Merged
fix tmux crashing bug #6766
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rlmenge
reviewed
Nov 15, 2023
tobiasb-ms
force-pushed
the
tobiasb/fix-tmux-crash-by-updating-ncurses
branch
from
November 15, 2023 18:32
649a705
to
d9196bb
Compare
neha170
approved these changes
Nov 16, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Did we try rebuilding the toolchain with the updated ncurses package?
Yes. The build I linked to did full toolchain, package and image builds for AMD and ARM. |
rlmenge
approved these changes
Nov 16, 2023
hbeberman
reviewed
Nov 16, 2023
neha170
reviewed
Nov 16, 2023
SPECS/tmux/manual-patch-to-fix-crash-due-to-change-to-ncurses.patch
Outdated
Show resolved
Hide resolved
Co-authored-by: Henry Beberman <henry.beberman@microsoft.com>
rlmenge
approved these changes
Nov 16, 2023
gmileka
pushed a commit
that referenced
this pull request
Dec 7, 2023
Co-authored-by: Henry Beberman <henry.beberman@microsoft.com> Fixes issue #6598 which is a crash on selection in tmux. The fix requires an update to ncurses and a patch to tmux. From the patch comments: ``` ncurses-6.4-20230408 change tparm to require cur_term, which broke tmux usage of it. ncurses-6.4-20230423 then added tiparm_s that allows usage without cur_term. tmux change tmux/tmux@39d41d0 uses tiparm_s if it exists, but cannot be cleanly applied to tmux tag 3.2a. That change uses a config setting to created #defines to determine which version of tparm it should use, and only conditionally uses tiparm_s, because it needs to be backwards compatible with previous versions of ncurses. But to use that, we would need to get the actual source as it appears in github, rather than the released version (they are different downloads: see https://github.com/tmux/tmux/releases). Fortunately, we have the luxery of forcing tmux to use a version of ncurses that has the function we want (see above). Given all this, this patch takes the change to use tiparm_s, removes the conditional compilation portion so it always uses tiparm_s and applies it to the code as it exists in 3.2a. It has both a build-time and run-time dependency on ncurses-6.4-20230423 or later. ```
freebsd-git
pushed a commit
to freebsd/freebsd-ports
that referenced
this pull request
Jun 14, 2024
I re-ported a patch originally ported to 3.2a by Tobias Brick, a Microsoft employee to 3.3a. The patch depends on ncurses 6.4-20230423 or later so I bind this port to ncurses:port. See commit message of the patch for detail [1] [1] https://github.com/microsoft/azurelinux/blob/a1f78f2/SPECS/tmux/manual-patch-to-fix-crash-due-to-change-to-ncurses.patch PR: 279276 Approved by: maintainer timeout Obtained from: microsoft/azurelinux#6598 Obtained from: microsoft/azurelinux#6766
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-static
subpackages, etc.) have had theirRelease
tag incremented../cgmanifest.json
,./toolkit/scripts/toolchain/cgmanifest.json
,.github/workflows/cgmanifest.json
)./SPECS/LICENSES-AND-NOTICES/data/licenses.json
,./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md
,./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON
)*.signatures.json
filessudo make go-tidy-all
andsudo make go-test-coverage
passSummary
Fixes issue #6598 which is a crash on selection in tmux. The fix requires an update to ncurses and a patch to tmux. From the patch comments:
Change Log
Does this affect the toolchain?
YES
Associated issues
Test Methodology