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
When built on NixOS, Buffer overflow using QUIC #12473
Comments
If there is anything I can do to help debug this, feel free to let me know. Also this could be a nanomq problem, or a problem of my configuration, but I opened it here as emqx is the app that crashes. I did build the program with |
@jr1221 thanks for the report, look like a emqx problem, is it easy to reproduce? could you enable core dump? |
I see you are using NixOS and self build emqx, could you upload the compile log of EMQX? |
I can consistence reproduce it by conducting any QUIC connection, and cannot reproduce in the docker image. I assume the self-compiling or the dependencies at runtime are the cause. I will look into a core dump. Here are the compile logs:
|
Could you recompile with |
Built as such Running with Could my system have the wrong versions of any dependencies I can check for? |
will add quic listener to nanomq to make things easier |
@jr1221 try these: Sorry, I have no experience with NixOS.
Could you also run this and send me the output after build?
If you get try find them with
or
Did you patch our build system? I suspect the issue could caused by compiler flags with compiler optimisation. Could you try enabling listener on nanomq and see if that works as @JaylinYu mentioned? |
Quic listener is not implemented yet... |
I did get the info you asked for, and I really do think its related to how nixos modifies the shared library paths. I will just use the docker image, feel free to abandon this investigation. Sorry for asking yall to spend time on this.
And here is the link to the crash dump. Thanks for trying to help with this! |
@jr1221 could you upload the entire |
@jr1221 any chance I could get the binaries in |
Hi @qzhuyan . My bad, I completely forgot about that! Here is a link the archived _build directory, which should include all binaries. If there is any other files you need, feel free to let ne know. |
Thanks for the tar file, I have checked the files, there are 4 threads looks not idling at the time of coredump. |
@qzhuyan are you planning to address this issue, or shall we close it? |
Leave this open for other users if they hit the same issue without using NixOS. |
What happened?
Nanomq connected to emqx via quic bridging, emqx fails.
What did you expect to happen?
Emqx would handle the connection and form a bridge to forward data.
How can we reproduce it (as minimally and precisely as possible)?
Nanomq relevant conf:
Emqx relevant conf:
Anything else we need to know?
Nanomq logs (nanomq loops through even after emqx dies)
EMQX version
OS version
Log files
Link to node_dump.
The text was updated successfully, but these errors were encountered: