#139 Race condition in threads (PCAP PLAY , RTP echo)

future
open
Rob Day
pcap (3)
2
2013-04-14
2012-10-01
Mark Kica
No

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

Discussion

  • Rob Day
    Rob Day
    2012-12-15

    • assigned_to: Rob Day
    • milestone: --> v3.4
    • priority: 5 --> 2
     
  • Rob Day
    Rob Day
    2012-12-15

    • labels: --> pcap
     
  • Rob Day
    Rob Day
    2013-04-14

    • Group: v3.4 --> future