Author Topic: ML Memory Checker  (Read 6226 times)

jplxpto

  • Developer
  • Hero Member
  • *****
  • Posts: 506
ML Memory Checker
« on: November 06, 2012, 11:08:22 PM »

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

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: ML Memory Checker
« Reply #1 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 :)
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

jplxpto

  • Developer
  • Hero Member
  • *****
  • Posts: 506
Re: ML Memory Checker
« Reply #2 on: November 06, 2012, 11:50:44 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! :)