2017-03-08 11:56 GMT+01:00 Julian Seward <jsew...@acm.org>:
> 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.

------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to