Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 12, 2021

Motivation:

GRPCClientStateMachine.state has a didSet to validate state
transitions. The presence of this block seems to trip up libbacktrace
when running with the scudo sanitizer. Moreover, the check is not
particularly helpful since we should always be transition to and from
the modifying state. This appears to have been leftover from when the
modifying state was introduced.

This is related to https://bugs.swift.org/browse/SR-15478.

Modifications:

Remove the didSet block for state in GRPCClientStateMachine.

Result:

We don't trip over in libbacktrace when running with scudo.

Motivation:

`GRPCClientStateMachine.state` has a `didSet` to validate state
transitions. The presence of this block seems to trip up libbacktrace
when running with the scudo sanitizer. Moreover, the check is not
particularly helpful since we should always be transition to and from
the modifying state. This appears to have been leftover from when the
modifying state was introduced.

This is related to https://bugs.swift.org/browse/SR-15478.

Modifications:

Remove the didSet block for state in GRPCClientStateMachine.

Result:

We don't trip over in libbacktrace when running with scudo.
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Nov 12, 2021
@glbrntt glbrntt requested a review from Lukasa November 12, 2021 15:22
@glbrntt glbrntt merged commit a9848c2 into grpc:main Nov 12, 2021
@glbrntt glbrntt deleted the gb-no-didset branch November 12, 2021 15:35
bimawa pushed a commit to StreamLayer/grpc-swift that referenced this pull request Dec 16, 2021
Motivation:

`GRPCClientStateMachine.state` has a `didSet` to validate state
transitions. The presence of this block seems to trip up libbacktrace
when running with the scudo sanitizer. Moreover, the check is not
particularly helpful since we should always be transition to and from
the modifying state. This appears to have been leftover from when the
modifying state was introduced.

This is related to https://bugs.swift.org/browse/SR-15478.

Modifications:

Remove the didSet block for state in GRPCClientStateMachine.

Result:

We don't trip over in libbacktrace when running with scudo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants