ianlancetaylor / cgosymbolizer

Experimental symbolizer for cgo backtraces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in backtrace_pcinfo's callback function in symbolizer.c

occia opened this issue · comments

I think here should be:

	for (pp = (struct cgoSymbolizerMore**)(&arg->data); *pp != NULL; pp = &(*pp)->more) {
      }

The condition should be != not ==, or we will execute pp = &(NULL)->more definitely. Is this a typo or I misunderstand this?

Thanks. Fixed.