Just because you print all of the parameters and they’re ok doesn’t mean there 
isn’t any corruption. Sorry I can’t be of more help. 

> On Nov 26, 2019, at 3:22 AM, 黃翔蔚 <waterhuan...@gmail.com> wrote:
> 
> 
> Hi Robert,
> Thanks for the explanation. 
> There is only one function call from GO to CPP in the program.
> I printf all parameters in the CPP function.
> There is no memory corruption inside.
> If you have any other troubleshooting suggestions, I would appreciate it.
> 
> Walter
> 
> Robert Engels於 2019年11月26日星期二 UTC+8下午2時31分55秒寫道:
>> 
>> It looks like the race detector outputs when it detects a race, not at 
>> program end, so it doesn’t apply in your case. 
>> 
>> So, I would look into cgo and other unsafe usages. 
>> 
>>> On Nov 26, 2019, at 12:18 AM, 黃翔蔚 <waterh...@gmail.com> wrote:
>>> 
>>> Hi Robert,
>>> I don't understand what you mean. Could you please explain more detail?
>>> Thanks.
>>> 
>>> Walter
>>> 
>>> Robert Engels於 2019年11月26日星期二 UTC+8上午9時16分42秒寫道:
>>>> 
>>>> I think with -race you want to exit before it crashes. After running a 
>>>> while. Can’t remember though. Check the docs. 
>>>> 
>>>>>> On Nov 25, 2019, at 7:10 PM, 黃翔蔚 <waterh...@gmail.com> wrote:
>>>>>> 
>>>>> 
>>>>> Hi lan,
>>>>> Thanks for your reply.
>>>>> I built the program with -race option. There is no news in crash dump.
>>>>> I will review cgo portion again. Thanks again.
>>>>> 
>>>>> Walter
>>>>> 
>>>>> Ian Lance Taylor於 2019年11月26日星期二 UTC+8上午3時12分06秒寫道:
>>>>>> 
>>>>>> On Mon, Nov 25, 2019 at 9:23 AM 黃翔蔚 <waterh...@gmail.com> wrote: 
>>>>>> > 
>>>>>> > My program will get panic issue from time to time. 
>>>>>> > I don't have procedure to reproduce this issue.
>>>>>> > So far, the issue is happen on 10/23, 10/25, 10/30, 11/14 and 11/22. 
>>>>>> > In the last try, I capture packets by wireshark, it seems no packet 
>>>>>> > incoming when panic. 
>>>>>> > I also try go build -race. There is no useful clues in crash dump. 
>>>>>> > Any suggestion is welcome. 
>>>>>> 
>>>>>> The most common cause for this kind of problem is memory corruption. 
>>>>>> Run your program under the race detector.  Look closely at any uses of 
>>>>>> unsafe or cgo. 
>>>>>> 
>>>>>> Ian 
>>>>> 
>>>>> -- 
>>>>> 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 golan...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/golang-nuts/c68e43ec-11a5-4d0c-9eac-b31d8fb91d7a%40googlegroups.com.
>>> 
>>> -- 
>>> 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 golan...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/golang-nuts/a25c9e13-e92c-4802-9ea9-15d3c7aeeba0%40googlegroups.com.
> 
> -- 
> 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/2ea34766-e924-471a-b228-442cfa8fe43b%40googlegroups.com.

-- 
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/D64420D2-CF6C-46A6-AB90-A3138A78D7DF%40ix.netcom.com.

Reply via email to