Why are there a series of technical challenges behind “OMG buy it”>>>
It’s a memory leak
(1) Generally, the memory that is not allocated is free
(2) The heap space operation allocated by malloc function is out of bounds. For example, strcpy (STR, PT), Pt points to a string of 20 bytes, STR points to the heap space allocated of 15 bytes
(3) There is also the allocation of memory forget to release, there may be such a problem
(4) Finally, it was found that the array loop was out of bounds, and it was written to other memory, and then the free area had such a problem
It is caused by allocate. A debug method is to define the matrix you suspect (for example, if it is released, it will report a memory error) as static, so that if it goes beyond the limit, it will report a segment error. Check in turn to see if your array is really out of bounds
Finally, it is verified that the internal IVS so array is out of bounds
Similar Posts:
- eclipse.ini/myeclipse.ini -Xms,-Xmx,-PerSize
- [Solved] C Programmer Error: double free or corruption (fasttop)
- R6010 -abort() has been called error analysis and solutions
- SAP work process Memory allocate
- malloc: *** error for object pointer being freed [How to Solve]
- NPM Command Error: Allocation failed – JavaScript heap out of memory
- Eclipse failed to create the java virtual machine [How to Solve]
- [Solved] Compile Error: virtual memory exhausted: Cannot allocate memory
- Java.lang.outofmemoryerror: permgen space and its solution in eclipse + Maven environment
- How to Solve Error: Oracle11g alarm log error ora-04030