The error violated me for about two days: when I run the code, I have a "terminate called without active exception" runtime error nn Aborted, why?
I try to find the code and find a line that can exit the code "xx = new int [num]", the number in my test example is about 640,000 (64 MB of memory for the new). when I set the number much less than 10, this is fine, but this time my code will get the wrong answer.
I am trying to remove all the "try / catch", but still have this error.
Also I // all the functions that invoke the sentence "xx = new int [num]", the error still exists, and this time I find that the code may exit the normal "loop".
The whole thing was passed by the compiler, have you ever encountered this error when running your code? Thanks!
I // some delete condition and get the following error: * glibc detected * ./ESMF_RegridWeightGen: munmap_chunk (): invalid pointer: 0x00000000005cd376 *
c ++ try-catch
xunzhang
source share