Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm getting this error:

*** glibc detected *** /usr/sbin/tshark: double free or corruption

while doing as below, any idea why?

trap 'my_exit; exit' SIGINT SIGQUIT

/usr/sbin/tshark -i bond1.1  -f "port 1111" -w /test/test_1.pcap > /dev/null 2>&1 &

/usr/sbin/tshark -i bond1.6  -f "port 8080" -w /test/test_2.pcap > /dev/null 2>&1 &

function my_exit()
    kill $PID1 
    kill $PID2 

while :
   sleep 1
   count=$(expr $count + 1)

BTW, When I try to run one tshark and kill it it works fine.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.