On Mon, Nov 18, 2024 at 10:06 PM Lin Lin <linsite.thin...@gmail.com> wrote:
> Yes, I do agree that it's easy to write data race code. > Sorry, I didn't make it clear. I have the data race report, my concerning > is to prove the relation bewteen data race and the crash.The code I want is > actually that can trigger a runtime reportZombies crash. > A "reportZombies" crash can have several reasons; including, but not limited to, a data race. I still don't understand how you think a generic program that causes a "reportZombies" crash will help you identify the bug in your program. I suggest starting by fixing the data races in your program. If that doesn't eliminate the "reportZombies" crashes then you have a more difficult problem to diagnose. Start by trying to identify whether you have pure Go code that is converting pointers to uintptr's (and not correctly managing such pointers), or (more likely) you are using CGo to link with non-Go code and your Go code is not correctly managing the lifecycle of the non-Go code data. -- 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 visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD9mBdnmDSBCRvt0oAhXaFTJ2kPRdatuJ5SCyO5N7BgcXw%40mail.gmail.com.