sipp icon indicating copy to clipboard operation
sipp copied to clipboard

Race condition in threads (PCAP PLAY , RTP echo)

Open rkday opened this issue 12 years ago • 0 comments

(Originally https://sourceforge.net/p/sipp/bugs/139/)

In SIPP code, are several variables which are accessed (read and write ) by several threads , but they are not protected by any mutex or semaphor. This is causing random sengmentation faults and race conditions. Especially in sending RTP packets (PCAP PLAY) and receiving RTP stream (RTP echo). This problems can be detected with valgrind tool DRD .

$ valgrind --tool=drd --read-var-info=yes ./sipp -aa -sf CallOriginatorByeSend.xml -rtp_echo -m 1 -inf SimpleCall.csv 172.28.60.2

This is list of some problematic variables : rtp_pckts_pcap rtp_bytes_pcap rtp_pckts rtp_bytes rtp2_pckts rtp2_bytes clock_tick

rkday avatar Oct 08 '13 08:10 rkday