-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Deadlock in NetworkTarget #1058
Comments
I think the scope of the |
Can you test that @mikhail-barg ? |
Hey, |
Hey! Great that you like to help! This is a bit difficult one but if you know how to attach the debugger to a running process, it should be solvable. I'm now on mobile but will give you tomorrow some more info! |
I am using the visual studio debugger only, and have created a console project in the solution (with it marked as the startup) and added Nlog.netfx45 project to its references. So I have debugging access to the NLog projects too. Just can't figure out where should I put config... :( |
In general, you put |
thanks @mikhail-barg! @kt1996 if you need some starting with NLog, you can check https://github.com/nlog/nlog/wiki/Tutorial. If you need some help after reading it, just let us know. Thanks in advance for looking at this issue! |
Deadlock in NetworkTarget Issue NLog#1058 Fix.
Hey, thanks a lot guys for the help. I am quite sure I have figured this bug and fixed it in my forked repository. The issue was not with the switch as this was happening even when allowconnections was permitted but was in the scope of the lock around the actual send line 310. Took some time understanding the code but now have sent my first pull request....Thanks again...!! |
Hey! That would be great! Do you know if the bug is also in |
@304NotModified No idea, during debugging never came across it, so if there is a bug I don't think its related to this atleast,... Though I'll happily look into it if you can provide me the details :) |
Well, the code in network target is based on the code of Edit: we have also a discussion in the PR. Should read that first :) |
|
PR= pull request (github) There should be unit tests, but don't know which one. |
This issue was initially found during testing of #902. I'm reposting it as a separate issue.
What we have noticed though is some deadlock condition happening both with previous and curent code. The setup is like following:
config:
test program
Call stacks at the moment of deadlock for the 4.2.0:
call stacks at the moment of deadlock for the 4.2.1:
The text was updated successfully, but these errors were encountered: