Skip to content
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

fuzzMap calls in VectorFuzzer yield inconsistent results across platforms #3561

Closed

Conversation

kevinwilfong
Copy link
Contributor

Summary:
The order arguments are evaluated in a function call in C++ is not specified.

This leads to issues when we call functions that invoke our RNG in the VectorFuzzer in two arguments, like these fuzzMap calls where we call one such function for the keys and one for the values.

This came up when trying to repro
#3419

In the CircleCI environment the values were generated before the keys when calling fuzzMap, while in my local environment the keys were generated before the values. I was getting different results and unable to reproduce the issue.

Constructing the arguments outside the function call allows us to control the order in which their invoked.

Differential Revision: D42178884

@netlify
Copy link

netlify bot commented Dec 20, 2022

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 56911e4
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/63a259c7f2e99d0008f5b9b4

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Dec 20, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42178884

…orms (facebookincubator#3561)

Summary:
Pull Request resolved: facebookincubator#3561

The order arguments are evaluated in a function call in C++ is not specified.

This leads to issues when we call functions that invoke our RNG in the VectorFuzzer in two arguments, like these fuzzMap calls where we call one such function for the keys and one for the values.

This came up when trying to repro
facebookincubator#3419

In the CircleCI environment the values were generated before the keys when calling fuzzMap, while in my local environment the keys were generated before the values.  I was getting different results and unable to reproduce the issue.

Constructing the arguments outside the function call allows us to control the order in which their invoked.

Reviewed By: bikramSingh91, kagamiori

Differential Revision: D42178884

fbshipit-source-id: d765a59b9189757f68a21d192a52e325913eecc5
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D42178884

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 5808798.

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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants