Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

vendor: Update mapstructure to 1.0.0 #799

Merged
merged 1 commit into from
Dec 14, 2018

Conversation

agunnerson-ibm
Copy link
Contributor

Description

This PR updates the vendored mapstructure dependency to version 1.0.0, which includes a fix for a race condition that can lead to segfaults: mitchellh/mapstructure@7869cdb

Related Issue

#798

Motivation and Context

This change fixes a segfault that occurs from simply leaving Uchiwa running.

How Has This Been Tested?

All unit tests pass. I'll build new RPMs and test them in our environment.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

mapstructure 1.0.0 includes a fix for a data race in decodeStruct()
that's been causing segfaults in our environment.

Upstream fix: mitchellh/mapstructure@7869cdb

Signed-off-by: Andrew Gunnerson <andrew.gunnerson@us.ibm.com>
@amdprophet
Copy link
Member

Hi @agunnerson-ibm,

This change makes sense to me. Were you able to test the change in your environment(s)?

@agunnerson-ibm
Copy link
Contributor Author

@amdprophet Yep, we've been running Uchiwa with this patch in all of our environments since around the middle of September and we didn't run into any more segfaults.

@palourde
Copy link
Contributor

Awesome, thank you for this patch!

@palourde palourde merged commit 2fcc55c into sensu:master Dec 14, 2018
@palourde palourde added this to the 1.4.0 milestone Dec 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants