-
Notifications
You must be signed in to change notification settings - Fork 866
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
[core] Added missing lock for isRcvDataReady() #2094
[core] Added missing lock for isRcvDataReady() #2094
Conversation
This comment has been minimized.
This comment has been minimized.
2be83e2
to
bd11051
Compare
Is it safe to lock |
According to this document, |
Hi @gou4shi1, Also, the RCV buffer should be protected by |
I use
Not sure, from the stacktrace, it crash at
I will have a try. |
I interpreted this so as the RCV buffer has not been created yet. The address is garbage ( |
Great!
I have tried How to reproduce: listener enable heavy log, caller broadcast video in a bad network. |
bd11051
to
afeda31
Compare
Oops...it crashed just now... |
The Ideally, both getting the pointer to the |
@maxsharabayko Hi, I think it's not caused by
Here is the log https://1drv.ms/u/s!AuaosNlJ5ELxjzD_iirN2ZJVwvZv?e=xSZNdl |
The last several logs before crash are:
So this should be a data race between |
afeda31
to
bf423ea
Compare
Great analysis! Thank you! |
Yes! No longer crash for two days. (Without this PR, it will crash within 30min if heavy log is enabled.) |
Fix crash: