Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race condition in UnmarshalToCallback() #62

Closed
aparnaclypd opened this issue Apr 10, 2017 · 6 comments
Closed

Race condition in UnmarshalToCallback() #62

aparnaclypd opened this issue Apr 10, 2017 · 6 comments

Comments

@aparnaclypd
Copy link

aparnaclypd commented Apr 10, 2017

Hi,

Facing race condition when I tried to use UnmarshalToCallback in my code. Running

go test -v -race

detected 'race condition' when it tried to access same code, post spawning of goroutines.

Refer attached log for more details.
RaceCondition.txt

@pikanezi
Copy link
Member

Hello,

Do you have a basic code sample or data which produces the above error?
It could help me greatly to track this error.

Thank you.

@aparnaclypd
Copy link
Author

Hello,

I do not have sample data as such with me. However, I ran go test -v -race on the cloned gocsv repo, that should also reproduce the issue for you.

Thank you.

@pikanezi
Copy link
Member

Yes, I see, thank you :) I will fix this ASAP.

@aparnaclypd
Copy link
Author

That would be great. Thank you. :)

@pikanezi
Copy link
Member

It has been fixed (at least that's what the race condition tester tells).

Thank you for your report :) have a nice day.

@aparnaclypd
Copy link
Author

Thanks a lot for your quick response! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants