Skip to content
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 in send_packets #576

Open
davehorton opened this issue Apr 8, 2022 · 2 comments
Open

segfault in send_packets #576

davehorton opened this issue Apr 8, 2022 · 2 comments
Labels

Comments

@davehorton
Copy link

Built the latest from source, its crashing on me.

Core was generated by `sipp -sf uac_pcap_60s_call.xml -r 20 -m 500 -l 300 -s 555 3.120.157.16'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000563daf999838 in send_packets (play_args=0x563db050dff0) at /usr/local/src/sipp/src/send_packets.c:261
261	        memcpy(udp, pkt_index->data, pkt_index->pktlen);
[Current thread is 1 (Thread 0x7f6dffd1c700 (LWP 10302))]
(gdb) bt
#0  0x0000563daf999838 in send_packets (play_args=0x563db050dff0) at /usr/local/src/sipp/src/send_packets.c:261
#1  0x0000563daf9652b4 in send_wrapper (arg=0x563db050dff0) at /usr/local/src/sipp/src/call.cpp:6818
#2  0x00007f6e21573fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#3  0x00007f6e21133eff in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) l
256	     * allows the thread to be cancelled cleanly.
257	     */
258	    pthread_cleanup_push(send_packets_cleanup, ((void *) &sock));
259
260	    while (pkt_index < pkt_max) {
261	        memcpy(udp, pkt_index->data, pkt_index->pktlen);
262	        port_diff = ntohs(udp->uh_dport) - pkts->base;
263	        /* modify UDP ports */
264	        udp->uh_sport = htons(port_diff + ntohs(*from_port));
265	        udp->uh_dport = htons(port_diff + ntohs(*to_port));

latest master branch

f44d0cf (HEAD -> master, origin/master, origin/HEAD) docs: Change scenario in CHANGES.md to one that works

is this a known issue?

@davehorton
Copy link
Author

perfectly recreatable under load by the way

@MichaelSekora
Copy link

Hi Dave,
I try to reproduce the scenario, could you please provide "uac_pcap_60s_call.xml", I cannot find it in the example scenarios, etc.
Do you have a sip-trace? how does the other side respond (connected with 200 OK)?

@rkday rkday added the media label Apr 1, 2023
peter-oneill added a commit to peter-oneill/sipp that referenced this issue Mar 20, 2024
peter-oneill added a commit to peter-oneill/sipp that referenced this issue Mar 20, 2024
peter-oneill added a commit to peter-oneill/sipp that referenced this issue Mar 20, 2024
peter-oneill added a commit to peter-oneill/sipp that referenced this issue Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants