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

Fix some race conditions #140

Merged
merged 6 commits into from
Oct 3, 2017
Merged

Fix some race conditions #140

merged 6 commits into from
Oct 3, 2017

Conversation

dbemiller
Copy link
Contributor

@dbemiller dbemiller commented Oct 3, 2017

We've been seeing more segfaults due to race conditions. This gist is a simplified version of the /auction code flow. Run it with go run -race main.go to see the race condition, and then re-run it after uncommenting the "copy" lines to show it fixed

I think I got all the mutations, and documented which ones are "allowed" on makeOpenRTBGeneric... but of course there's no way to be certain.

I do think we need more general improvements so that these race conditions are less likely... but I'll log a separate issue for it shortly.

@dbemiller dbemiller merged commit efd1279 into master Oct 3, 2017
@dbemiller dbemiller deleted the fix-bad-allocations branch October 3, 2017 19:29
StarWindMoonCloud pushed a commit to ParticleMedia/prebid-server that referenced this pull request Jun 5, 2024
* roll out ggs2s to  android article banner

* Add tmax

---------

Co-authored-by: Peiling-Ding <65974486+Peiling-Ding@users.noreply.github.com>
Co-authored-by: Peiling Ding <peiling.ding@newsbreak.com>
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.

None yet

2 participants