ML Memory Checker

Started by jplxpto, November 06, 2012, 11:08:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jplxpto


I already have several years of professional experience. During these years I had often problems with various hardware equipment. In my experience, intermittent faults have always been the most difficult problems to diagnose. In most cases I found that the source of the problems were due to faults or defects in memories. These defects typically are due to some memory locations. The errors are fixed in position, but as dynamic memory managers do not always assign the same blocks, errors appear random. Typically errors occur in applications that consume more memory because it increases the probability that use a memory location damaged.

I believe that the ML does not have a memory tester.

I think we could allocate large blocks of memory, and apply some simple algorithms used by these tools (read, write, re-read what was written, and compare, etc.)

I remembered this when I saw the following post:

http://www.magiclantern.fm/forum/index.php?topic=3500.msg18044;topicseen#msg18044

g3gg0

i share that experience.

uhm i think i added once code that increases the malloc'ed range by some 0x10 bytes and later
i went through al allocated memory to check if there was a buffer overflow.
will try to find that again :)
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

jplxpto

Quote from: g3gg0 on November 06, 2012, 11:21:18 PM
i share that experience.

uhm i think i added once code that increases the malloc'ed range by some 0x10 bytes and later
i went through al allocated memory to check if there was a buffer overflow.
will try to find that again :)

Thank you!

I know you're gonna get! :)