I have a Java app which run a c++ application which calls my odbc driver and sometimes I receive the error ilke
myapp(601,0x7000017a5000) malloc: *** error for object 0x7fc645161a10: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
I cannot use gdb or lldb because it occurs inside of mydriver.so module. Is it possible to catch this error in the code? Or somehow redefine the malloc_error_break and trap the error inside it?
How to detect what is the object ? Is this an error of application which calls odbc or in my odbc code?