-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Unreal Linux server fails to launch Unhandled Exception: SIGSEGV #259
Comments
Can I provide any additional information? Is anyone available to look at this? We have fully disabled Sentry from our project now because it is too unstable. |
The first log indeed looks like related to curl/openssl. Though the log line We shouldn’t have any unaligned loads in Sentry itself, though one can never know with openssl. Maybe @supervacuus has any ideas? |
First impression: this reminds me of a recent comment on an older issue: getsentry/sentry-native#337 (comment) Is it possible that through the I know that I can create a repro tomorrow. |
I tried to reproduce this with clean builds of the Native SDK on EC2 instances (build on Ubuntu 20.04, repro runs on 22.04) but couldn't. Neither the connections in the Following the steps in build-linux.sh and the GHA workflow, we can exclude the toolchain or the dev packages available on Ubuntu 20.04 as a root cause for a crash on 22.04. I am unaware of further build steps in |
Another thing that caught my attention: since the log of the crashing boot stops at (or after) the Application-Layer Protocol Negotiation and the crash is in |
In terms of repro, in case it helps. Managed to run through this today:
|
@damjess, I just wanted to clarify that my comments are related to the Native SDK, which Sentry's Unreal SDK depends on. I joined the discussion to help determine if there might be an issue with the Native SDK or its integration with the Unreal SDK releases. It seems that an incompatible OpenSSL version might be loaded during the startup of the Unreal Server environment. However, I cannot confirm this or provide a solution since I cannot reproduce a context similar to yours. I am happy to assist with debugging any low-level problems and suggesting potential fixes. However, to fully understand the requirements of the Unreal deployment scenario, I would need the expertise of the |
That's a good point. I recall we faced problems with CA certs in that regard a while ago (#123), so maybe it's something worth checking @damjess |
Also getting the same error and had to disable Linux support. Got the error using Linux WSL2 Ubuntu 22.0.4.2 LTS. Also getting a crash running on amazon linux 2 EC2 Instance Unreal version 5.1.1
|
Alright, I've managed to reproduce this error on my end with the Linux Server build when launching it on WSL Ubuntu LTS 22.04 (on WSL Ubuntu 20.04 everything works as expected).
I've tried switching to older |
Thanks, @tustanivsky, that helped a lot. I was also able to repro this and could verify that there is indeed an I quickly built Regarding a way towards a solution to the problem: the problem is 100% environmental, we cannot choose/modify the HTTP dependency of the Unreal Server, and we cannot change the version choice of the Ubuntu Maintainers. The Native SDK has an API to allow clients to write their own transport, which in the case of Of course, to state the obvious, the way
Yeah, this is possible because the crash gets transmitted via the
How did you test this, or rather how did you switch? |
@supervacuus I appreciate you taking the time to research this issue and providing a detailed explanation of its origin and possible workarounds! Writing our custom transport for the |
Environment
How do you use Sentry?
Sentry SaaS (sentry.io)
Which version of the SDK?
0.4.0
How did you install the package? (Git-URL, Assetstore)
Git-URL
Which version of Unreal?
5.1.1
Is this happening in Unreal (editor) or on a player like Android, iOS, Windows?
Linux Development Server
Steps to Reproduce
.\GameServer.sh
)Expected Result
Server launches without critical error
log:
Actual Result
Server crashes with
Unhandled Exception: SIGSEGV: unaligned memory access (SIMD vectors?)
log:
(^ this is the actual output, final line is truncated)
shell output:
We've tested the same server launches without error on Ubuntu 20.04 WSL2/Hyper-V VM/AWS EC2, it seems to be related to Ubuntu version -- Specifically 22.04
edit:
Here is some behavior we see on the 20.04 production server that leads to a similar crash after an
Assertion failed
:The text was updated successfully, but these errors were encountered: