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. 

On Tuesday, 19 November 2024 at 13:00:16 UTC+8 Kurtis Rader wrote:

> Your question is not clear. You seem to be saying you have a program that 
> fails for a reason that might be a data race. Have you built and run your 
> program with race detection enabled? If you do so the resulting race 
> detection traceback should provide a clue regarding the nature of the race 
> sufficient to identify the problem.
>
> A proof of concept (PoC) illustrating a data race is easy to write. But a 
> generic data race PoC is unlikely to help you solve the problem with your 
> code.
>
> On Mon, Nov 18, 2024 at 8:31 PM Lin Lin <linsite...@gmail.com> wrote:
>
>> Hi, gophers
>>
>> Quite a few issues like https://github.com/golang/go/issues/47513 are 
>> caused by DATA RACE. I myselft also ran into one in Go1.17, and data race 
>> can be found in the code. But I'm unable to reproduce the issue stably, as 
>> I need to some PoC code to make the managers to believe it's caused by the 
>> DATA RACE then fixing them.
>>
>> I'm struggling a while without any real progress by constructing all 
>> kinds of DATA RACE. Now I'm diiving into the runtime GC code very slowly.
>>
>> Does any gopher know or have such PoC code, or any guides to construct 
>> one? That'll be great to save my effect to understand the GC code.
>>
>> Thanks.
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion visit 
>> https://groups.google.com/d/msgid/golang-nuts/dfc27fe4-a4ef-4986-9411-20dc691de404n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/golang-nuts/dfc27fe4-a4ef-4986-9411-20dc691de404n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> 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/4dd7d993-4bd9-41d5-9f2f-473c5e4baa80n%40googlegroups.com.

Reply via email to