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
Core generated by Kamailio when a bad char is found in header #1687
Comments
To add a more specific version as
|
The first two backtraces led to a function related to a new feature added in 5.2, respectively statistics for replies per method. The issue was accessing CSeq header fields without any checks if the header was properly parsed. I pushed a commit for it, referenced above. You can try with latest master and see if now all ok. |
Hi @miconda, I've just deployed K with this patch, I'll let you know if this happens again. Out of curiosity, if I wanted to test with the nightly builds, how can I know if for example:
Maybe I should open a separate ticket as Thanks! |
One idea: execute kamailio -V, this should output the build revision "id:". Then you can see e.g. with git log if this revision already contains your wanted commit. |
Yeah this is my bad, it was there all the time, and only because you said so now I actually see it:
Commit --> 2ecf60 Thanks @henningw |
Isn't "sip:;:929<>64@138.99.136.3" in the To header what's making it fail?
…On Thu, Oct 25, 2018, 22:05 Joel Serrano ***@***.***> wrote:
Closed #1687 <#1687>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1687 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AF36ZTx5k_vZi4fa0c4qEQAhUmCj0hawks5uoidagaJpZM4X5L1n>
.
_______________________________________________
Kamailio (SER) - Development Mailing List
***@***.***
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
|
From the logs I also thought it was something in the To: header but I don't know how to read the backtraces :( |
Reopening for now! |
BTW, @henningw: If I build myself kamailio I have the commit id in kamailio -V But from nightly-deb packages it's not available: DEB install:
Source install:
!!!! Note the 2ecf60-dirty !!! I guess I wasn't going crazy after all! 😄 |
@joelsdc - did you get any new crash after the commit I did? Even the error message is related to To header, the issue was not checking if the CSeq is parsed. The core tries to parse the mandatory headers like To, Call-ID, CSeq, ... if one is broken, parsing stops there. Unless you got new crash with the commit, there is no reason to open this issue. In general, a log message may or may not be related to a crash, the gdb backtrace shows where the crash happens. Otherwise you would apply a logic that if memory manager prints "no more memory", then it is a bug inside it, not in the code using it. |
@miconda kamailio has not died since the patch. Let's keep this issue closed then, if something happens I'll open a new one with new backtraces. Sorry for the confusion. 👍 |
Description
Kamailio dies complaining about a bad char in some header. I can say that I just updated from the nightly-devel apt repo, this problem never happened in latest v5.1 release.
Troubleshooting
Reproduction
I don't know how to reproduce yet.
Debugging Data
BT-FULL_core.kamailio.3329.1540415468.txt
BT-FULL_core.kamailio.3330.1540415471.txt
BT-FULL_core.kamailio.3331.1540415467.txt
BT-FULL_core.kamailio.3333.1540415469.txt
INFO-LOCALS_core.kamailio.3329.1540415468.txt
INFO-LOCALS_core.kamailio.3330.1540415471.txt
INFO-LOCALS_core.kamailio.3331.1540415467.txt
INFO-LOCALS_core.kamailio.3333.1540415469.txt
LIST_core.kamailio.3329.1540415468.txt
LIST_core.kamailio.3330.1540415471.txt
LIST_core.kamailio.3331.1540415467.txt
LIST_core.kamailio.3333.1540415469.txt
Log Messages
The relevant log lines are:
SIP Traffic
I have enabled a mirror server to capture all traffic, once the problem happens again I will be able to update this issue with SIP traffic.
Possible Solutions
Additional Information
kamailio -v
The text was updated successfully, but these errors were encountered: