View Ticket
Not logged in
Ticket UUID: 867f23ff79fe52aacff390f93dc3186ed9981b60
Title: Assertaion failed: (pBlob)->xRealloc==blobReallocMalloc || (pBlob)->xRealloc==blobReallocStatic, file blob_.c, line 170.
Status: Closed Type: Code_Defect
Severity: Critical Priority:
Subsystem: Resolution: Overcome_By_Events
Last Modified: 2009-10-31 13:32:48
Version Found In: 713b8be852
Description & Comments:
I used checkout to try to only checkout a specific file and it gave me this error and erased almost all my project files in my root project directory/subdirectories. I won't do it again. Are we suppose to be able to just checkout one file? If not can a protection be put on doing so?

The following is what was output in the command window.

Assertaion failed: (pBlob)->xRealloc==blobReallocMalloc || (pBlob)->xRealloc==blobReallocStatic, file blob_.c, line 170.

This application has requested the Runtime to terminate it in an unusal way. Please connact te application's support team for more information.


drh added on 2009-09-18 21:04:07:
I'm not sure what the OP means by the sentence: "I used checkout to try to only checkout a specific file...." But I did observe that little error checking is done on the "checkout" command and so if you give it the artifact ID for something that is not a check-out, it will not give a reasonable result and will often segfault. That defect, at least, has be fixed as of check-in c774e298c3f213f7487fb0ba638edfa3f1b89edf. But it is unclear whether or not that will fix the OP's problem.

We do see clearly that the "checkout" command will not modify any files in a check if those files have changed in any way, unless the "--force" flag is used. So I do not thing the OP lost any work. All the deleted files can be recovered simply by doing a "checkout" of the version that was in the repository prior to the failed checkout.