corruption

Images corrupt after git push

情到浓时终转凉″ 提交于 2019-12-03 03:42:10
问题 I added some .png images to my git repo and then pushed them to my remote repository. I noticed that the images are in the remote repository, but they are broken. In order to verify this, I compared the binary data for the images on my local and my remote repos. I also ran the file command on images in both repos. Image on local repository First 10 Lines of Binary data: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 0000 0019 0000 0014 0806 0000 0078 7796 bd00 0000 1974 4558 7453 6f66 7477 6172 6500

fatal: git-write-tree: error building trees

自作多情 提交于 2019-12-03 01:43:19
I'm trying to import a large subversion repository into git using git-svn (so that I can work in git but still dcommit to subversion from time to time). After importing more than 4000 revisions I'm now getting the following error whenever I run git svn fetch or git svn rebase , which I don't manage to get rid of: $ git svn fetch error: invalid object 100644 1f2....742 for 'src/path/.../file.cs' fatal: git-write-tree: error building trees write-tree: command returned error: 128 What I've tried so far: git fsck --full doesn't report anything, neither does git fsck --unreachable or git fsck --no

GlibC Double free or corruption (fclose)

二次信任 提交于 2019-12-02 21:46:10
问题 I got an error on my C program on runtime. I found some stuff about "double free or corruption" error but nothing relevant. Here is my code : void compute_crc32(const char* filename, unsigned long * destination) { FILE* tmp_chunk = fopen(filename, "rb"); printf("\n\t\t\tCalculating CRC..."); fflush(stdout); Crc32_ComputeFile(tmp_chunk, destination); printf("\t[0x%08lX]", *destination); fflush(stdout); fclose(tmp_chunk); printf("\t[ OK ]"); fflush(stdout); } It seems the fclose(tmp_chunk);

Program.cs has been corrupted

会有一股神秘感。 提交于 2019-12-02 20:26:24
问题 My Program.cs file was working fine this afternoon. I closed Visual Studio (VS2013 Express) and shut down my computer. Then this evening I turned the computer on again and Program.cs now looks like this: f£óö'ûRÏ>•]|êêlÇPš—·õGÉ+s qÖY®ÓÇN­Ž9¯€8ï,? óQwÕ®Åy„Ùrsb^ ƒoÏEl?Qäº6z¹ Ü -³‡kwÎR®Q| €s᪠å²!dKË*:ÀyÉÿ?l ­Ã&Š‚Ëð.Š›ï,²©“Óü@q:VªÐMãҟ岂¡ËÀÌ<öò§-ž‹66‚j$+”tVeÃÛSVÿ Ïr£pÉ'äûèk0Iœ¾Y/HÅ;vþ DãjÊÕIÿóõ‘>¤¶ËLw¬,‚ÓHï’$t‡³Ywõ2ŽHíg3É·HVß{fÄèÄKõ™>§ïä ŽíC}r^— x èd’—X÷§º~qXPk# etc. Any ideas on how to

What is the “Break instruction exception” in WinDbg?

风格不统一 提交于 2019-12-02 18:22:34
I'm debugging some random crash bugs, but actually very difficult to go deep into. Because when i open crash dump, only find one error: 0:000> .exr -1 ExceptionAddress: 00000000 ExceptionCode: 80000003 (Break instruction exception) ExceptionFlags: 00000000 NumberParameters: 0 Actually i haven't set any hard-code breakpoint in code, so i search about this exception in google, some people said this exception may be caused by heap corruption. So my question is, Is there any other reason why cause this exception, except hard-code breakpoint, manual breakpoint while debugging, heap corruption?

Tracing memory corruption on a production linux server

此生再无相见时 提交于 2019-12-02 18:21:25
Guys, could you please recommend a tool for spotting a memory corruption on a production multithreaded server built with c++ and working under linux x86_64? I'm currently facing the following problem : every several hours my server crashes with a segfault and the core dump shows that error happens in malloc/calloc which is definitely a sign of memory being corrupted somewhere. Actually I have already tried some tools without much luck. Here is my experience so far: Valgrind is a great(I'd even say best) tool but it slows down the server too much making it unusable in production. I tried it on

Program.cs has been corrupted

那年仲夏 提交于 2019-12-02 11:09:55
My Program.cs file was working fine this afternoon. I closed Visual Studio (VS2013 Express) and shut down my computer. Then this evening I turned the computer on again and Program.cs now looks like this: f£óö'ûRÏ>•]|êêlÇPš—·õGÉ+s qÖY®ÓÇN­Ž9¯€8ï,? óQwÕ®Åy„Ùrsb^ ƒoÏEl?Qäº6z¹ Ü -³‡kwÎR®Q| €s᪠å²!dKË*:ÀyÉÿ?l ­Ã&Š‚Ëð.Š›ï,²©“Óü@q:VªÐMãҟ岂¡ËÀÌ<öò§-ž‹66‚j$+”tVeÃÛSVÿ Ïr£pÉ'äûèk0Iœ¾Y/HÅ;vþ DãjÊÕIÿóõ‘>¤¶ËLw¬,‚ÓHï’$t‡³Ywõ2ŽHíg3É·HVß{fÄèÄKõ™>§ïä ŽíC}r^— x èd’—X÷§º~qXPk# etc. Any ideas on how to recover it? I tried running Recuva, but that didn't work. There is no copy in the Backup Files folder for

Deserialisation issue - java.io.StreamCorruptedException: invalid type code: 00

巧了我就是萌 提交于 2019-12-02 10:14:24
I'm writing a java file-transfer app, and i have some troubles with deserialisation myself-defined class Message from Datagramms. Other topics at StackOverflow has similar issues, but i didn't found something helpful from there, so i'm sorry in advance if i missed it. so, class Message is: import java.io.Serializable; public class Message implements Serializable { private static final long serialVersionUID = 1L; private int segmentID; private byte[] packet; private int bytesToWrite; public Message(){ segmentID = -1; } public Message(int segmentID, byte[] packet, int bytesToWrite) { this

Programmatically Repair SQLite Database

冷暖自知 提交于 2019-12-02 09:42:48
问题 I have a need to try and repair a SQLite database from a .NET program if the database file gets corrupted. I have found several sites such as Fix SQLite and in the FAQ it describes that you can: Depending how badly your database is corrupted, you may be able to recover some of the data by using the CLI to dump the schema and contents to a file and then recreate. Does anyone know of a way to repair a SQLite database programmatically in .NET? 回答1: You are overlooking one important word: you can

GlibC Double free or corruption (fclose)

二次信任 提交于 2019-12-02 09:29:59
I got an error on my C program on runtime. I found some stuff about "double free or corruption" error but nothing relevant. Here is my code : void compute_crc32(const char* filename, unsigned long * destination) { FILE* tmp_chunk = fopen(filename, "rb"); printf("\n\t\t\tCalculating CRC..."); fflush(stdout); Crc32_ComputeFile(tmp_chunk, destination); printf("\t[0x%08lX]", *destination); fflush(stdout); fclose(tmp_chunk); printf("\t[ OK ]"); fflush(stdout); } It seems the fclose(tmp_chunk); raises this glibc error : *** glibc detected *** ./crc32: double free or corruption (out): 0x09ed86f0 ***