-
Notifications
You must be signed in to change notification settings - Fork 24
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
DCS Server crashes on player connection #19
Comments
After some investigation with Binary we have determined the following: It seems to be a combination of Removing |
I've tracked the cause of the crash down to https://github.com/khvzak/mlua/blob/01714d2510dfd7ee86d6beb7e1aefab3ccdd9abf/src/ffi/compat53.rs#L710. This line is part of code responsible for creating a stacktrace when we return an error to Lua. Our code basically encounters an error, correctly returns the error to Lua, but the code that prepares the stacktrace of this error for logging/display leads to the crash. Basically, we have an error in the error handler. After a lot of debugging, I think the cause is not within
This brings me to believe that this must be an issue of code accessing the lua stack concurrently and thus polluting it with non-strings before the linked code above calls I don't think that the concurrent access is introduced by our module, I could be wrong though. I'll thus push a commit that is going to work around the bug by logging the error directly, instead of returning it to Lua. With the change, we are seeing the culprit of all of this:
|
Confirmed that the mission that was previously crashing is no longer crashing. Not sure if you want to keep this issue open until you find a full fix / a bug report to report to the mlua folks to link to or not so I shall leave its status unchanged for the moment. |
I think the concurrent access is coming from DCS, so I don't think that there is anything wrong on |
Actually, I'd rather close the issue as the crash doesn't happen anymore and if people see the issue they might think that it still happens. |
The DCS dedicated server will crash with the current DCS-gRPC master branch code on player connection:
Steps to replicate.
Note that this does not happen:
I am not sure when this started happening, there is at least one version of the server running on the Hoggit Syria At War server with no issues so we know of so this commit is working correctly.
If you cannot think of anything obvious then I wil do a
git bisect
although that will take a bit of time.Stack trace below:
The text was updated successfully, but these errors were encountered: