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
Fixes #175 Do not allow to overwrite existing .zim file #193
Fixes #175 Do not allow to overwrite existing .zim file #193
Conversation
Codecov Report
@@ Coverage Diff @@
## master #193 +/- ##
=======================================
Coverage 33.83% 33.83%
=======================================
Files 20 20
Lines 2007 2007
Branches 1166 1166
=======================================
Hits 679 679
Misses 1326 1326
Partials 2 2 Continue to review full report at Codecov.
|
@veloman-yunkan @mgautierfr The CI fails here, but no clue why... I kind of suspect a problem with the latest libzim |
@kelson42 I tried to reproduce (and then debug) the failure locally with the latest |
It seems to be pretty much related to the compilation options. I have tested as well, but probably not with the exact same constellation of options. |
@kelson42 The crash in CI/Linux (native_static) may be explained by https://stackoverflow.com/questions/35116327/when-g-static-link-pthread-cause-segmentation-fault-why |
I downloaded the deps archive from http://tmp.kiwix.org/ci/deps2_xenial_native_static_zim-tools.tar.xz, used it to build zim-tools and reproduced the crash. Going to debug it now. |
Looks like http://tmp.kiwix.org/ci/deps2_xenial_native_static_zim-tools.tar.xz (at the time of download) was built on Ubuntu 16.04 xenial (as suggested by the version of gcc/c++ in the stack trace): UPDATE: this is explicitly encoded in the file name too. Thread 1 "zimwriterfs-zim" received signal SIGSEGV, Segmentation fault. zim-tools CI/Linux (native_static) runs on ubuntu-latest which is Ubuntu 18.04 bionic |
@kelson42 @mgautierfr BTW, ubuntu-latest in GitHub Actions workflows will gradually change from |
@veloman-yunkan Thank you very much for the investigation |
@kelson42 Sorry, I missed that CI runs in a docker container. Though the build machine was a |
One mismatch between the kiwix-build CI which produces the deps archives and the zim-tools CI which consumes those archives is that the former uses container image |
Debugging the crash in CI resulted in the same stack trace that I observed locally after building zim-tools with gcc 9.3 on my Ubuntu 20.04 focal using the deps downloaded from http://tmp.kiwix.org/ci/deps2_xenial_native_static_zim-tools.tar.xz (that were compiled with gcc 5.4 under Ubuntu 16.04 xenial):
Therefore #193 (comment) most likely was in the right direction. |
I think that mesonbuild/meson#3879 has some relation to the current problem |
openzim/libzim#443 (specifically the change in meson.build) seems to be the most likely (though probably indirect) culprit |
The two most recent Release&Nightly runs of kiwix-build ( |
b8b98b3
to
6268217
Compare
Fixes #175 Do not allow to overwrite existing .zim file