-
Notifications
You must be signed in to change notification settings - Fork 47
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
Random seg fault while checking medium sized repo through docker #246
Comments
What do you mean by sometimes? What's the difference when it fails and when not? |
I have not yet noticed any difference. Still trying to figure that one out. I believe that re-running the same pipeline (so the same code) can pass the first time and fail the next, or the other way around. |
Would be great if you could confirm this, and if this is the case. |
I have done some more research. Could it have to do with one process writing to a file while the editorconfig-checker is running? The panic seems to occur on |
Could be some kind of race condition if editorconfig-checker tries to read the file while it's not present anymore I think. |
I now have proof that it without making any changes to the code, the exact same command fails first, and passes after. For now I added a retry mechanism to solve the issue for me. There are multiple processes that are running at the same time however (building the maven project, running checkstyle and running editorconfig-checker). So a race condition might very well be possible. Please let me know if you are able to resolve this issue or what specific information I can provide to help out. I have no Go experience, so it is hard to do any static analysis. |
It would be very great to make this reproducible somehow locally. |
Run command:
docker run --rm --volume=/var/lib/jenkins/workspace/path/to/repository:/check mstruebing/editorconfig-checker ec
.ecrc file (slightly redacted)
Sometimes it fails on our Jenkins node running docker. The host is a RHEL7 machine.
Any suggestions?
The text was updated successfully, but these errors were encountered: