-
Notifications
You must be signed in to change notification settings - Fork 526
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
Occasional fail of zproc test, reading stdout #2007
Comments
This test consistently fails for me on a 3.5 GHz Haswell Xeon system, but I am unable to reproduce it on a 2.5GHz Sandy Bridge i5.
In this particular environment, |
This issue has been automatically marked as stale because it has not had recent activity for 90 days. It will be closed if no further activity occurs within 21 days. Thank you for your contributions. |
Hi @jimklimov is it still the case? I've checked latest build failures at TravisCI, however zproject was not a problem. @mbakke this is weird, AFAIK Anyway output of |
@mvyskocil : gotta check, did not look at this for a while. However a link between faults and system speed (in test or possibly production too?) sou ds worrysome and un-21st century like ;\ |
I don't have 3.5GHz system to test. However if there is really a race condition, it must happen on slower systems as well. I wrote simple tool running zproc test million times szproc.go. So far I figured out that testcase #7 is timing senstitive and I got very weird failure on line 1239 Anyway any hints about the bug would be nice
I'll keep running the test to see what will happen |
Hi, I've asked a friend with an access to more CPU powerful machine to make a test. I did a small Alpine based Docker container for him, so @mbakke if you are around, feel free to run it as well
If reproduced, I will need the core file stored inside the container. The exact naming and location depends on a kernel. |
This issue has been automatically marked as stale because it has not had recent activity for 90 days. It will be closed if no further activity occurs within 21 days. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity for 90 days. It will be closed if no further activity occurs within 21 days. Thank you for your contributions. |
Have 100% fails on zproc test on illumos (OpenIndiana).
From core file we see that actor thread is still waiting for something:
|
I found an issue:
but zclock_mono() is int64_t , so we have integer overflow here. |
Thanks for investigating :)
It would be great if you could send a PR 👍
Am Fr., 26. Juni 2020 um 09:35 Uhr schrieb Alexander Pyhalov <
notifications@github.com>:
… I found an issue:
https://github.com/zeromq/czmq/blob/master/src/zproc.c#L847 has
int quit = zclock_mono () + timeout;
while (true) {
if (! zproc_running (self))
break;
if (zclock_mono () >= quit)
break;
zclock_sleep (200);
}
but zclock_mono() is int64_t , so we have integer overflow here.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2007 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADYNOTOZVPYAI6TCSHUDIDRYRFV5ANCNFSM4HOJYAXA>
.
|
@pyhalov are you sure this is the case? overflow is indeed possible, but it'd require What might be a problem is the |
@pyhalov sorry - I did not notice your PR 🤦 so was testing code you've fixed. Sorry. |
This issue has been automatically marked as stale because it has not had recent activity for 90 days. It will be closed if no further activity occurs within 21 days. Thank you for your contributions. |
Confirming this as fixed in 4.2.1. Thanks! |
From https://api.travis-ci.org/v3/job/533238563/log.txt :
The text was updated successfully, but these errors were encountered: