double free or corruption???
Yes, so a program I'm running is giving me this, to me at least, unusual error. Juding from the double free or corruption name and the output of the program, which should output some zeros (no that's not all it does), but actually outputs some number * 10^-317, which is similar to but not zero. In another twist it doesn't screw up if I run it through valgrind. What's actually happening is I make a user defined data type, which stores three doubles, and I'm putting 0 in each. I then use the class print function which just outputs the data, formatted pretty like and all. And I get two zeros and a small number like I said. Any hints, what might be going wrong? If it would help to see some code just ask what you'd like to see, I don't really know where the problem is. The program says aborted but it seems to reach the end of execution. But the problem, if it is infact related to that double not being 0 but rather a small number, happens a few statements before the end of the program, and some of those are output so I know it's not being aborted before that.
*** glibc detected *** double free or corruption (fasttop): 0x000000000054d720 ***