-
Notifications
You must be signed in to change notification settings - Fork 212
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
Bad string size caused by missing bytes in registry.bin #432
Comments
It does happen during CI builds: |
lanmaoxinqing
added a commit
to lanmaoxinqing/mvnd
that referenced
this issue
Jun 17, 2021
Since the registry data is invalid, i simply empty the content to guarantee the next registry will work correct.
gnodet
pushed a commit
to gnodet/mvnd
that referenced
this issue
Jun 18, 2021
…pache#433 Fix a possible write a long string in case where the string length is <= 1024 but the encoded size if > 1024. Truncate long strings and warn instead of throwing an exception which could lead to an invalid registry. Since the registry data is invalid, the content is emptied to guarantee the next registry will work correct. This fix is based on apache#435 provided by lanmaoxinqing, many thanks !
gnodet
pushed a commit
to gnodet/mvnd
that referenced
this issue
Jun 18, 2021
…pache#433 Fix a possible write a long string in case where the string length is <= 1024 but the encoded size if > 1024. Truncate long strings and warn instead of throwing an exception which could lead to an invalid registry. Since the registry data is invalid, the content is emptied to guarantee the next registry will work correct. This fix is based on apache#435 provided by @lanmaoxinqing, many thanks !
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
We occasionally got a
bad string size
exception in our ci system showing belowIn my situation, data keeps correct until reading the missing
short
bytes, which is the length ofreason
field, and then crashes. It may still work if the nextshort bytes
is less than 1024 (but theDaemonStopEvent
data breaks down since then)what's worse, all later builds on the same ci machine will crash due to
readString
exception, until we delete theregistry.bin
file.It happens in mvnd 0.4.1, but I think we still suffers in 0.5.1.
The problem
registry.bin
is in attach file below (I masked some working path info due to sensitive security policy), be sure using 0.4.1 to debug with it (token field add in 0.5.0)registry.bin.zip
one guess is that mvnd crashed unexpectedly while
FileChannel
is flushing the file, so it closed and remains incomplete data inregistry.bin
.The text was updated successfully, but these errors were encountered: