-
Notifications
You must be signed in to change notification settings - Fork 393
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
Segfault: 3pcc with optional first recv makes sendMode schizofrenic #493
Comments
Any feedback on this issue ? |
It's good that you're asking attention for bugs. But, the amount of time we can dedicate to this differs wildly. Any additional info you can get on your own, helps. Add
When it crashes, you can do |
Thanks for your feedback, and apologies for my ignorance. I am pretty novice when it comes to debugging C/C++ applications :( I managed to recompile with deubg option and run with gdb, here is the details. Note that I have masked the IPs for obvious reasons Starting program: /home/sipp/sipp_full 10.10.10.1 -3pcc 192.168.1.1:9001 -i 10.10.10.1 -p 5060 -nd -t t1 -sf ./receive.xml -inf ./B_user.csv -trace_msg
|
I could not make much of the debug messages, Is it related to some socket connectivity issues ? |
Me neither. It looks as if the |
I did the following
Am I doing anything obviously wrong :( |
Not something obvious, no.
Look for Or do:
The binary should have lots of debug symbols (and therefore be big):
|
Here is the revised gdb log Starting program: /home/sipp/sipp_full 10.10.10.1 -3pcc 192.168.1.1:9001 -i 10.10.10.1 -p 5060 -nd -t t1 -sf ./receive.xml -inf ./B_user.csv -trace_msg Program received signal SIGSEGV, Segmentation fault. #addr2line -Cfe ./sipp 0x5555556317ce |
I was trying to check the socket.cpp file existing under src directory and it is. So I am not sure what is the actual fault of this error src=0x7ffffffbdb60) at /root/sipp/sipp/src/socket.cpp:1170 |
Well.. that line is probably correct, 1170 in socket.cpp. But you're really only giving us minimal info.
With 1170, we know that:
And that's because tcp_multiplex is bad. But we don't know in what kind of bad state it is. It is probably NULL (0x0), but we cannot tell from just the words Help us help yourself. |
Apologies again, I will try my best to get the necessary logs. I have re-run with above commands and logs again...
|
Any findings based on the above logs. I could read below messages related to size, is there any maximum limit my message is exceeding and causing the crash ?
|
@wdoekes - Any hints on what I could check and try. Unfortunately I am not that familiar with SIPp code to try things out... Thanks |
So, I tried to spend a little time on this now. But I found:
.. faith .. humanity .. I hate to sound disappointed, but again: if you want our help, you need to make it possible for us to help you. Please: |
Happy to share the actual files and commands one-to-one via an email if possible.... |
So, you're saying it's hard to reproduce with generic (non-private) details? |
No, it can be reproduced all the time. Issue is the IPs and specific system specific details, I am unable to share over public forum unless I mask it |
Here is the revised logs with scenario & input files (again screened for actual IPs) |
Minimal test case <?xml version="1.0" encoding="ISO-8859-1"?>
<scenario>
<recv request="INFO" optional="true"/>
<recvCmd/>
<send>
<![CDATA[
SIP/2.0 501 Problem
From: <sip:[service]@127.0.0.1>;tag=[call_number]
To: <sip:[service]@127.0.0.1>
Call-ID: [call_id]
CSeq: [cseq] INFO
Content-Length: 0
]]>
</send>
</scenario>
<?xml version="1.0" encoding="ISO-8859-1"?>
<scenario>
<send>
<![CDATA[
INFO sip:whatever SIP/2.0
From: <sip:[service]@127.0.0.1>;tag=[call_number]
To: <sip:[service]@127.0.0.1>
Call-ID: [call_id]
CSeq: [cseq] INFO
Content-Length: 0
]]>
</send>
<sendCmd>
<![CDATA[
Call-ID: [call_id]
]]>
</sendCmd>
</scenario> Exec:
GDB:
Looks like Bug appears to be in:
|
Ok, for
|
I can't tell what scenario you're trying to achieve. But for now, that combination of optional-recv and recvCmd will not work. The |
Ok, I modified the receivereg.xml to start like this. Same crash occurs
What I would like to achieve is fairly simple use case
Initially, I was referring to below post and preparing for the scenario described there - 3PCC scenario with trigger messages to have some level of synchronization between A & B parties |
Ok. You have managed to create another way to make the sendMode ambiguous. You didn't fix the underlying problem that SIPp starts in UAS mode and then you ask it to play UAC. The sendMode is determined by the first If you intend on skipping the
|
Ok. I guess I am too obsessed to simulate the scenario that is described in that forum :) I know its not related to this issue, Is there any possibility to achieve below mentioned use case..
|
This is not the right place for those questions. |
Is there any forum for SIPp apart from SourceForge ? |
I am trying to establish a basic call scenario
I am using 3pcc scenario for a "register and wait for INVITE" for B party
However when the sendCmd is sends the trigger, the B party scenario crashes with "segmentation fault"
Have attached all the scenarios (A party, B party, 3PCC trigger to B party scenario)
scenarios.zip
Version: SIPp v3.7-dev-9-ga284f3a-PCAP-RTPSTREAM-RTPCHECK
The text was updated successfully, but these errors were encountered: