Skip to content

Conversation

@JDevlieghere
Copy link

  • [lldb] Fix crash when launching in terminal
  • [lldb] Remove ConnectionFileDescriptorTest.Connectv(4|6)

This patch fixes a crash when using process launch -t to launch the
inferior from a TTY. The issue is that on Darwin, Host.mm is calling
ConnectionFileDescriptor::Connect without a socket_id_callback_type. The
overload passes nullptr as the function ref, which gets called
unconditionally as the socket_id_callback.

One potential way to fix this is to change all the lambdas to include a
null check, but instead I went with an empty lambda.

Differential revision: https://reviews.llvm.org/D124535

(cherry picked from commit 9aa6a47)
These tests are timing out on the bots.

(cherry picked from commit 02c2b47)
@JDevlieghere
Copy link
Author

@swift-ci please test

1 similar comment
@JDevlieghere
Copy link
Author

@swift-ci please test

@JDevlieghere JDevlieghere merged commit a604e1c into stable/20221013 Mar 22, 2023
@JDevlieghere JDevlieghere deleted the 🍒/navy/9aa6a479738c7bf21128f9c45ea4ffcf82d80cbf+02c2b472b510ff55679844c087b66e7837e13dc2 branch March 22, 2023 22:01
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.

2 participants