Hi,
After 7000-8000 loops, i.e after 2-3 days, there is a runtime error because malloc failed.We identified that the error was occuring malloc function tires to allocate ~250k bytes of data.
Then on analysis, We listed few possible items where malloc could fail
1. Fragmentation
2. Memory overwrite or overflow
3. Memory Leak
4. memory size was more than the memory available
malloc takes the value of 262144 bytes to allocate.So it is a valid value which is less than 1GB. Available memory is ~1GB.
So, based on the data we ruled out 3rd and 4th item.
But Fragmentation, we are not sure like, because how Fragmentation creates the problem even though available memory is 1GB. Also, every run we release a memory as it is evident that there 1GB.
Memory overwrite or overflow, if it had happened, it should have crashed initially itself. But we get this error only after ~7000-10000 device run.
I could not guess anything beyond this, and i dont know how to proceed on this. This is an huge application runs at customer site, where we dont have an access to try and see or gather the data.
It is something, i need to go theorically and proove with the sample program and then try to fix it.
Please help me in this Guyz...
thanks in advance.
Kumar