我怎样才能知道该错误来自何处?我使用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树,因此使用了很多指针。据我了解,这很可能是问题的根源。但是我不确定哪个指针导致了错误。