Thanks Kurtis.Will try these options.
Yes, now I remember you had given the same options on a different thread.
It just skipped my mind because of the mail conversation.

Thanks,
Nitish

On Mon, Jul 15, 2019 at 10:55 AM Kurtis Rader <kra...@skepticism.us> wrote:

> As I wrote in a reply on a different thread that has the same purpose as
> this one...
>
> When debugging memory management problems in C/C++ code there are many
> tools to assist in understanding the problem.
>
> The first, and usually easiest to use is to enable your platform "debug"
> version of the malloc subsystem. Type "man malloc" to find out which env
> vars, if any, your platform provides to enable these features.
>
> Second is "valgrind".
>
> Third, and by far the most useful (i.e., helpful) tool, is ASAN: the
> address sanitizer. I haven't needed to use this tool with cgo code so I
> can't explain how to use it with cgo. My google search results yielded some
> results (e.g.,
> https://grokbase.com/p/gg/golang-dev/133rert6kv/using-addresssanitizer-with-go)
> that imply it is at least theoretically possible to use ASAN with go.
>
> At the end of the day you are asking us to debug your code for free. Most
> of use are happy to help if the problem is described in a way that allows
> us to reproduce the problem. Or, is so simple (once you know the answer)
> that composing an answer doesn't take much more time than reading the
> original question. Your situation does not match either of those
> possibilities.
>
>
> On Sun, Jul 14, 2019 at 8:03 AM Nitish Saboo <nitish.sabo...@gmail.com>
> wrote:
>
>> Hi,
>>
>> Can some please share the details of tools or Debug options to debug the
>> following error in cgo:
>>
>> Error in `bin/main': double free or corruption (fasttop)
>>
>> Thanks,
>> Ntish
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to golang-nuts+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/golang-nuts/70001fbc-9302-4e76-a270-d18b95664423%40googlegroups.com
>> <https://groups.google.com/d/msgid/golang-nuts/70001fbc-9302-4e76-a270-d18b95664423%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CALjMrq7taWVeBdUgA9cDP7C9_V5%3DfVVk_zcLEs8hKaRAut81Og%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to