-
Notifications
You must be signed in to change notification settings - Fork 69
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
Qgit crashes on some malformed git repos #69
Comments
Hi @hosiet! qgit just show warning: Probably Debian guys should upgrade qgit package and/or git itself. |
Hi @eraxillan , I rebuilt qgit from git master with git version either 2.20.1 or 2.22.0 (20190519 snapshot). Maybe this issue is specific to Linux. Anyway we need further investigation. |
Took a look at the backtrace:
Not quite sure what happened but the problem should be in |
From the first error message you report, your cache file became corrupt somehow. Please go to the root of your webwml repo and do
Then launch qgit again. It will not crash this time and it will continue to work properly. If you inspect the two cache files:
you will see that the first (the one you moved aside initially) is much smaller in size. I don't know how this could happen, but I guess you might have lacked disk space at some time or stopped qgit by killing it e.g. with SIGKILL just as it was writing its cache. This is a bug in the sense that qgit doesn't gracefully recover from such situations (should just regenerate the cache if it can't read it). Thanks for reporting. |
Please see #71 |
Thanks. By moving the old
Looking forward to the future fix for corrupted qgit cache file. |
Avoid corrupting memory by clearing the cache before freeing it's content. Also adds a bounds check on the sha array. Fix tibirna#69 Fix tibirna#71
Avoid corrupting memory by clearing the cache before freeing it's content. Also adds a bounds check on the sha array. Fix tibirna#69 Fix tibirna#71
I'm using qgit 2.8 from Debian and found that qgit will crash on some certain git repositories.
Downstream Debian report: https://bugs.debian.org/926327
Compressed git repo: https://drive.google.com/open?id=1yMVLNQ3t6JP4n3Nv_Cnsp7mPrLhT3rQ1
Methods to reproduce:
The text was updated successfully, but these errors were encountered: