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
nmux crash (+fix) #40
Comments
Thanks for finding that! Yes, I think |
Hi, I compiled
The following patch fixes this
I hope this compiles without having to specify |
I had a similar issue with Fedora 29 and nmux (in my case as a subprocess of OpenWebRX). My specific error message was: |
My observations:
Thanks @mpbraendli for debugging this, and the patch! To be honest, I don't understand yet why it works... I mean, why it fixes the problem. I was thoroughly looking into my code, but I found no reason why couldn't I allocate memory dynamically here. The thread object is created once and erased once, so it looks correct. However, it seems like that with optimizations on and with Back to As it is documented that format mismatch at |
I must admit, I also didn't understand what triggered the issue, but replacing manual resource management using pointers with C++ RAII already takes away many opportunities to shoot oneself in the foot. And the code is easier to reason about. +1 on using |
Thanks, I have pulled the changes and it works perfectly now! For info, the compiler warnings about vectorization and trigraphs still appear as in ### #19 but should not affect normal operation. |
But does printing these pointer values serve any purpose in debugging in the first place? And this:
is a narrowing conversion. Seriously, build this with
Yep, the next line is essentially a comment. It's not there.
Should these be
This computation is made on a random garbage.
As above. etc, etc. Maybe they don't bite today, but they might bite tomorrow. |
@szpajder You are using this code free of charge with no warranty, and I'm volunteering my time to support it here. On the other hand, thank you for your suggestions.
In this application, I don't expect more than
Yes.
That's a good find! Probably the Update: this has just been fixed in 17b8c7b.
Yes, those should be fixed as well.
On that particular occasion it is not a problem. |
I think the original problem has been solved. |
Just came across this while deploying OpenWebRx on Arch Linux x86_64. The first client connects to nmux, then disconnects, the second client connects and then I get a 100% reproducible crash:
This might be a clue:
Indeed, I changed
int tsmpool::remove_thread
tovoid
and voila, no more crashes.The text was updated successfully, but these errors were encountered: