corruption

Probability of hardware related disk or memory corruption?

I've got a few hundred computers running an app. On one computer, I've seen two instances of a single bit being incorrectly set on some strings that I pull out of SQLite. If this was my dev computer I would assume I have a bug somewhere, but there is certainly some number of installations at which point I'll start seeing rare hardware ...

Blackbox type data logging

In a Linux embedded application I'm developing, there is the need to record some events that happen from time to time. These records are saved on a MTD flash device and once written there is no need to change them or do efficient searches, but read access is required to show the data back to the user. A big problem is that power can go a...

Efficiently detect corrupted jpeg file?

Is there an efficient way of detecting if a jpeg file is corrupted? Background info:   solutions needs to work from within a php script   the jpeg files are on disk   manual checking is no option (user uploaded data) I know that imagecreatefromjpeg(string $filename); can do it. But it is quite slow at doing so. Does anybody know a...

How to fix possible db corruption?

Hi! I'm at a client doing some quick fixes to their access application. It was a while I had a go with access, but I'm recovering quickly. However, I've discovered an interesting problem: For some reports, I get a "Record is deleted" error. I've checked the reports, and it seems like there's a problem with one table. When opening that ...

What can modify the frame pointer?

I have a very strange bug cropping up right now in a fairly massive C++ application at work (massive in terms of CPU and RAM usage as well as code length - in excess of 100,000 lines). This is running on a dual-core Sun Solaris 10 machine. The program subscribes to stock price feeds and displays them on "pages" configured by the user (a ...

Recovering from Subversion corruption

Something has gone wrong in subversion and now I am facing svnadmin: Invalid diff stream: [tgt] insn 0 starts beyond the target view position if I try to make dump from repository. We have another question about it here Subversion Repository Error, but the solutions there are not good enough for me because the corruption is 85 revisi...

How can a SVN repository become corrupt?

A few times already, I got into situations where one of my SVN repository got corrupt and we could do anything with some versions or branches of the project without really knowing what we did. So I'm asking what can cause a repository to become corrupt? ...

How to obtain a correct dump using mysqldump and single-transaction when DDL is used at the same time?

I'm new to MySQL and I'm figuring out the best way to perform an on-line hot logical backup using mysqldump. This page suggests this command line: mysqldump --single-transaction --flush-logs --master-data=2 --all-databases > backup_sunday_1_PM.sql but... if you read the documentation carefully you find that: While a --s...

Windows Mobile memory corruption.

Is WM operating system protects process memory against one another? Can one badly written application crash some other application just mistakenly writing over the first one memory? ...

Problems with Windows Installer Package

I have a client that is having problems with our the .msi installer for our application. Wix was used to create this installer. The application has installed just fine on dozens of other machines, but on his machine it displays the message: This installation package could not be opened. Contact the application vendor to verify ...

Stack corruption in C++

In C++, in which way the stack may get corrupted. One way I guess is to overwriting the stack variables by accessing an array beyond its boundaries. Is there any other way that it can get corrupted? ...

C++: How is it possible that reading data can affect memory?

I've been going deeper into C++ recently and my bugs seem to get complex. I have a vector of objects, each object contains a vector of floats. I decided I needed to create a further flat array containing all the float values of all objects in one. It's a little more complex than that but the gist of the problem is that as I loop throu...

How to recover Git objects damaged by hard disk failure?

I have had a hard disk failure which resulted in some files of a Git repository getting damaged. When running git fsck --full I get the following output: error: .git/objects/pack/pack-6863e0a0e4b4ded6090fac5d12eba6ca7346b19c.pack SHA1 checksum mismatch error: index CRC mismatch for object 6c8cae4994b5ec7891ccb1527d30634997a978ee from .g...

Tool to recover & repair a corrupted *.MDB database (Access).

Over the years I have seen many errors on corrupted Access *.MDB files. I do not use Access as frontend, just as backend to store data Tables. I already use the best practices: normalization, close the database connection ASAP, etc. I was wondering if somebody knew which the best commercial tool to recover data from a corrupted MDB file...

Ms-Access MDB: Split Memo field into Several Text fields. (To prevent data corruption)

I use an Access database used just as back end. I use some Memo Fields. I have learnt that Memo Fields are subject to cause database corruption because they are stored in a separate data page; the record only holds a pointer to the data page where the actual data is stored. Most of the time I just need from 100 to 1000 chars or so, so ...

Corruption of user.config

Anyone knows the reason of "random" user.config corruption? I've a WinForms app affected by this problem at my client's production line. Found the same issue on the web and a workaround but I can't figure out because it happens. ...

Access 2003/2007 Query contents wiped

Has anyone else come across a situation where the contents (SQL statement) of an Access 2003 or 2007 was completely wiped (the Query object still exists, the inner SQL does not)? Does anyone know what causes this? I've just had this happen to me again. 2 queries run from a Macro's OutputTo actions to generate 2 Excel files. I ran the ...

Assistance with openssl blowfish simple example inserting garbage characters.

If you have a good example of simply encrypting a file using openssl that is better than this one that I am having issues with I would be very grateful. Update: Myabe the author was correct. Using memset on something I did not allocate reminds me of strtok choking on non-stack variables. Update2: Got the core dump to stop by using m...

How do you recover from an "incorrect key file" with MySQL (InnoDB)?

Incorrect key file for table 'widgets'; try to repair it This is the error message MySQL gives me when attempting to apply a new index to an existing (very large) table. Of course when I follow the error message's suggestion of trying to repair it: mysql> repair table widgets; +-------------------+--------+----------+----------------...

Can I restore a backup if a table is corrupt?

I'm hoping this will be a simple answer for one of you. We've got PHP/MySQL running on a single board computer for a product that will be a web-based admin tool. This product will be a 'set it and forget it' application. One of our concerns (whether or not it's valid) is MySQL table/dbase corruption. We have processes running continu...