-
Notifications
You must be signed in to change notification settings - Fork 932
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
[bug]: res_pjsip: Crash when looking up transport state in use #509
Comments
This is not a full backtrace. The instructions for getting a backtrace[1] need to be followed to ensure all information is provided. [1] https://docs.asterisk.org/Development/Debugging/Getting-a-Backtrace/?h=backtrace |
Done |
What version was previously in use? The crash is nowhere near any code that was touched for the security releases. It also doesn't appear as though Asterisk was built with DONT_OPTIMIZE so parts of it are optimized out. If it is crashing multiple times then a second backtrace with DONT_OPTIMIZE would confirm whether it is crashing in the same spot. |
The latest version is 18.19.0. The crash is the same because I obtain 2 twice, and the thread1 has the same reference. |
Okay, so you skipped the normal 18.20.0 release where this code was moved around and other changes occurred, so unrelated to the security release. |
Making note that potentially related to change from #71 |
Can you provide an Asterisk log as well leading up to the crash to see the state and progression of things? |
How can get it ? |
I will try to do it, my problem is a I have 6000 endpoints the traffic is very high |
Okay, that itself is an important data point as well. What kind of transport are they all using? |
Transport: <TransportId........> <BindAddress....................>Transport: transport-tcp tcp 0 0 0.0.0.0:7048 |
we have Many endpoints with wss |
So I expect that Asterisk 20 is also affected, right? |
The same change I linked went into 20 as well, yes, and the backtrace you provided on your issue matches this once it reaches the sending part. |
For now let me add the following: we have no wss but only udp/tcp on port 5060. Logging is enabled now (as commented above) and I will provide it as soon as possible (when system crashes again). |
Is the TCP in use? How many concurrent connections? Do they go up/down? |
No, usually we use UDP. It's a very low traffic machine with about 20 calls per day. It happens all 1-5 days. I setup sipp from an external host and fired over 1.000 Calls within 15 minutes but everything is fine. Hard to reproduce. |
I'm having a similar issue in 21.0.2; backtrace from the core dump file:
I have a mix of UDP, TCP, & TLS endpoints- they're fairly busy servers (200+ concurrent), but it's only crashed twice in the last two days. I'll see if i can get more logs (it's production, so I have to avoid customer details). Mike |
I am using asterisk release 21.0.2. I ran into this issue when I try to call another softphone on the same server. The server is not under load and I can trigger SIGSEGV reliably. In Before #72, we have |
Nice catch! I had reviewed the difference but didn't catch that. |
The ast_sip_request_transport_details must be zero initialized, otherwise this could lead to a SEGV. Resolves: asterisk#509
Thank you for the detailed analysis! Sorry for the oversight and the late reaction, I was out of office. Should be fixed in #523. |
The ast_sip_request_transport_details must be zero initialized, otherwise this could lead to a SEGV. Resolves: asterisk#509
The ast_sip_request_transport_details must be zero initialized, otherwise this could lead to a SEGV. Resolves: #509
The ast_sip_request_transport_details must be zero initialized, otherwise this could lead to a SEGV. Resolves: #509
The ast_sip_request_transport_details must be zero initialized, otherwise this could lead to a SEGV. Resolves: #509
The ast_sip_request_transport_details must be zero initialized, otherwise this could lead to a SEGV. Resolves: #509
Severity
Major
Versions
18.20.2
Components/Modules
pjsip
Operating Environment
The asterisk 18.20.2 have a crash
Thread 1 (Thread 0x7f8a9919c700 (LWP 11551)):
#0 0x00007f8c64be46fe in __memcmp_avx2_movbe () at ../sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S:248
#1 0x00007f8c65808082 in pj_memcmp (size=15, buf2=, buf1=) at ../include/pj/string.h:825
Frequency of Occurrence
Constant
Issue Description
After upgrade asterisk to last version , we have many crashes a day.
Relevant log output
No response
Asterisk Issue Guidelines
The text was updated successfully, but these errors were encountered: