-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[1.x]Janus crash with sip-plugin and active subscription #2974
Comments
Please put some titles on the issues you open or I'll just ignore them. |
To investigate crashes we need a trace of some sorts, from |
I do have some trouble to find the location of the core dump. 2022-05-11T11:07:57.190502+02:00 elbx kernel: [13286827.928090] sip janus[28951]: segfault at 7f04e99b53a0 ip 00007f04e9b2be1a sp 00007f04e99544a0 error 4 in libsofia-sip-ua.so.0.6.0[7f04e9af3000+a8000] I guess therefore it is another libsofia bug. => Is this the right place to report it? |
If it's a bug in Sofia, no. If it's us using the library incorrectly, instead, yes. But unfortunately the snippet you shared doesn't help shed any light on the root cause. If you can build with libasan support and manage to replicate the problem, we should have more info to look at. |
Unfortunately janus seems not be compiled with debugging symbols on alpine. Here is the output if janus is run from the command line (eg not in background) Log
Please note also: The core dump file (created by the pattern "core-%e) is named "core-sip\ janus". I hope that helps! |
Unfortunately it doesn't, it doesn't have any info we can use. |
I only see a reference to
but that looks like stuff that's internal to Sofia SIP. |
I've managed to replicate the issue, but even if I have libasan enabled, it looks like I'm getting the same limited debugging information. I'll check if I can extract some more data out of it somehow. |
@doerner commits ba7e2a3 (multistream) and a131ad4 (0.x) should now fix both #2973 and #2974, can you check if it's working as intended for you now? I think there may still be an issue when a subscription is created from a helper thread: I'll look into this next. For subscriptions created from the "master" session it should be fine though. |
Thank you for taking time to look into the problems. Unfortunately I cannot compile Janus at this time to confirm your solution works. But I am sure it does, so please feel free to close the issues anytime. |
Ack, I'll close both issues then 👍 |
What version of Janus is this happening on?
1.0.1-r0 on alpinelinux
Have you tested a more recent version of Janus too?
no
Was this working before?
I do not know.
Is there a gdb or libasan trace of the issue?
Additional context
Using the sip-plugin via HTTP-long-polls I do
register with a sip server
subscribe to an other extension on the sip server (and receive also a first notify from that extension)
Reload the webpage (while the subscription is still active) => janus crashes!
The text was updated successfully, but these errors were encountered: