对象0x7ff368504170的错误:未分配正在释放的指针?

时间:2020-05-01 14:01:48

标签: c++ pointers malloc

我怎样才能知道该错误来自何处?我使用sublime作为文本编辑器,并且熟悉调试器GDB,但是我不知道在哪里设置断点?

这是我不断收到的错误:

a.out(55175,0x112a91dc0) malloc: *** error for object 0x7ff368504170: pointer being freed was not allocated
a.out(55175,0x112a91dc0) malloc: *** set a breakpoint in malloc_error_break to debug

作为参考,我正在实现一个AVL树,因此使用了很多指针。据我了解,这很可能是问题的根源。但是我不确定哪个指针导致了错误。

0 个答案:

没有答案