-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Flyway migrations CRC32 checksum different after upgrading to 1.2.12 (from 1.2.11) #618
Comments
Please provide more information and/or links to information on the issue you are referring to. This sounds serious, but there is nothing actionable in your comment. |
No problem. I'm using Spring Boot along with Flyway. By default it's validating migrations by calculating checksum based on the files. Migrations that were already executed have checksum stored in the database. This values are different then the ones calculated after migrating to recent zlib=1.2.12
|
Flyway is using following code to calculate CRC32
|
This commit should remedy the incorrect CRC inputs: ec3df00 . Please let me know if it does. |
It would require some effort to test it on my side before you actually release it. I trust you if you are confident enough. If you need any more details in order to test it locally I can provide it, just tell me what you need. |
What code is saying "Migration checksum mismatch"? |
This one i guess. If you follow the and |
Any progress here? |
I confirm ec3df00 fixes the issue. I was having problem build Spring Boot project too:
https://stackoverflow.com/questions/71698867/invalid-entry-crc-in-spring-boot |
This also seems to affect google closure compiler and thus breaks emscripten:
|
I can confirm that installing zlib from the develop branch fixes this issue and allows me to start google-closure-compiler. It would be great if you could release a new version since this seems to affect multiple unrelated things. |
Thank you for the verification. There will be a new release. However all instances of zlib 1.2.12 impacting CRC calculations should be reported as bugs in those applications. The problem is caused by invalid CRC-32 values being giving to zlib's CRC function. |
@madler I am not a C expert but I have taken a look at the java implementation and I do not realise the problem. There is no I do not know why it occur only on my computer with i7 870. It do not occur on my i5 7600k. Can it be a CPU related behaviour? Thank you in advance. |
thanks to [email protected] for pointing this out upstream patch: madler/zlib@ec3df00 upstream bug report: madler/zlib#618 alpine bug report: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13711 fixes "java.util.zip.ZipException: invalid entry CRC" in Java JRE/JDK this backports the fix from master to 3.15-stable (cherry picked from commit 6754a90)
thanks to [email protected] for pointing this out upstream patch: madler/zlib@ec3df00 upstream bug report: madler/zlib#618 alpine bug report: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13711 fixes "java.util.zip.ZipException: invalid entry CRC" in Java JRE/JDK on 64-bit systems this backports the fix from master to 3.14-stable (cherry picked from commit 6754a90)
thanks to [email protected] for pointing this out upstream patch: madler/zlib@ec3df00 upstream bug report: madler/zlib#618 alpine bug report: https://gitlab.alpinelinux.org/alpine/aports/-/issues/13711 fixes "java.util.zip.ZipException: invalid entry CRC" in Java JRE/JDK on 64-bit systems this backports the fix from master to 3.12-stable (cherry picked from commit 6754a90)
thanks to [email protected] for pointing this out upstream patch: madler/zlib@ec3df00 upstream bug report: madler/zlib#618 alpine bug report: #13711 (closed) fixes "java.util.zip.ZipException: invalid entry CRC" in Java JRE/JDK on 64-bit systems this backports the fix from master to 3.13-stable (cherry picked from commit 6754a90)
Hi Mark, Wanted to ask, based on your comment above, do you have a timeframe that you were thinking for a patch release to 1.2.12 or perhaps a 1.2.13 release? |
There are multiple projects that rely on this library. In my case it is
Flyway
migrations that is using it to calculate checksum. 2 days ago it started producing different values for CRC32 what caused app crash on startup. It seems your recent release is not backwards compatible and shouldn't be a patch. Please verify it.The text was updated successfully, but these errors were encountered: