Don't combine distribution if count == 0#25
Don't combine distribution if count == 0#2523Skidoo merged 1 commit intohaskell-github-trust:masterfrom
Conversation
|
I'm not very familiar with this part of |
|
Bump, thoughts @tibbe? :) |
|
@tibbe thinks it's good to go, merging. |
|
Merged, thanks! |
|
I don't know how, but this change led to a 100% reproducible lock-up in one of our EKG enabled services at work (Strats SCB). This is using 8.4.4. We forked ekg-core while preparing for an upgrade to 8.6.2. |
|
Ouch. I'm sorry about that @pepeiborra. Can you provide any more information? |
|
Reverted, released a new bugfix version. |
|
I would love to @mitchellwrosen but I can't share any concrete artefacts from work.
|
|
Possible diagnosis: The quick exit path in |
hs_lock(&b->lock);
+ if (!b->count) {
+ return;
+ }Returning after taking a lock, this cannot work. |
|
@nh2 Right, that's the obvious bug. I apologize :( |
|
@mitchellwrosen Can happen! It seems EDIT: I stand corrected. |
This is one possible solution to #24.