|
From: Ivo R. <iv...@iv...> - 2017-03-08 11:51:52
|
2017-03-08 11:56 GMT+01:00 Julian Seward <js...@ac...>: > On 08/03/17 07:16, A. Lester Buck III wrote: >> I don't understand the last line: >> >> Address 0xf95f6a0 is in the BSS segment of /usr/local/lib/libaws-cpp-\ >> sdk-core.so > > What this means is, the address that has been passed to free -- that is, > 0xf95f6a0 -- is zero-initialised data in libaws-cpp-sdk-core.so and so > has not been allocated on the heap. It's (the address of) a global > variable in libaws-cpp-sdk-core.so, in other words. > >> How do I use this to figure out where/why the free() error is happening? > > You can poke around more with GDB by rerunning the program on V with > --vgdb-error=0 and following the directions it gives. GDB will stop at > the error (at all errors) and you can examine the program state at your > leisure. If this is your first time debugging a program under gdb, you might want to read this manual section: http://valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.gdbserver I. |