Closed danielluke closed 7 years ago
this error is unfortunately not very distinctive ... what is especially odd, is that the kill happens within pthread whereas mrtg does not use threads ...
There's always (at least) one thread.
The important part is that it's abort()'ing in free() and saying "pointer being freed was not allocated". Since it stopped crashing when I comment out a config like that said "kMG[foo]: ,k,M,G" , I suspect rateup.c line 1136.
I'm certain it's line 1136. It frees short_si
, which is actually the copy of kMG
that has been stomped upon during the first pass through image()
. Later accesses will cause problems, the most benign of which is the units being incorrect for weekly/monthly/yearly graphs.
I'm working on a PR to address this right now.
With 2.17.4, I can reproduce a crash (SIGABRT from 'pointer being freed was not allocated') on Mac OS X 10.12.