Looks like a new bug in clients ...

Carter Bullard carter at qosient.com
Sat Aug 18 01:36:07 EDT 2007


Hey Peter,
In your patch, the second call needs to be an unlock:
--- 351,357 ----

        } else 
           done++;
     }
! #if defined(ARGUS_THREADS)
     pthread_mutex_lock(&queue->lock);
  #endif

That should be a pthread_mutex_unlock(....)  That works much better ;o)
Carter

Peter Van Epp wrote:
> 	The patch for threads while I think correct, appears to break argus.
> It starts but doesn't output anything with .threads defined so I am running 
> a version with threads disabled and will see what that does (with threads back
> on in the clients to see if archive has problems again). 
>
> argus -dJR -P 560 -i eth0 -i eth1 -U 512 -m -F /scratch/argus.conf
> hcids:/scratch # !ps
> ps auxwwwww | grep argus
> root     20142  0.0  0.0  15436  1048 ?        SLsl 20:19   0:00 argus -dJR -P 560 -i eth0 -i eth1 -U 512 -m -F /scratch/argus.conf
> root     20145  0.0  0.0   3132   832 pts/0    S+   20:22   0:00 grep argus
> hcids:/scratch # ps auxwwwww | grep argus
> root     20142  0.0  0.0  15436  1048 ?        SLsl 20:19   0:00 argus -dJR -P 560 -i eth0 -i eth1 -U 512 -m -F /scratch/argus.conf
> root     20147  0.0  0.0   3132   832 pts/0    S+   20:22   0:00 grep argus
> hcids:/scratch # kill -9 20142
> hcids:/scratch # !ps
> ps auxwwwww | grep argus
> root     20149  0.0  0.0   3132   832 pts/0    S+   20:22   0:00 grep argus
> hcids:/scratch # argus -dJR -P 560 -i eth0 -i eth1 -U 512 -m -F /scratch/argus.conf
> hcids:/scratch # !ps
> ps auxwwwww | grep argus
> root     20151  0.0  0.0  14112  1956 ?        SLsl 20:23   0:00 argus -dJR -P 560 -i eth0 -i eth1 -U 512 -m -F /scratch/argus.conf
> root     20154  0.0  0.0   3132   832 pts/0    S+   20:23   0:00 grep argus
> hcids:/scratch # ps auxwwwww | grep argus
> root     20151  0.0  0.0  14112  1956 ?        SLsl 20:23   0:00 argus -dJR -P 560 -i eth0 -i eth1 -U 512 -m -F /scratch/argus.conf
> root     20156  0.0  0.0   3132   832 pts/0    S+   20:23   0:00 grep argus
> hcids:/scratch # ps auxwwwww | grep argus
> root     20151  0.0  0.0  14112  1956 ?        SLsl 20:23   0:00 argus -dJR -P 560 -i eth0 -i eth1 -U 512 -m -F /scratch/argus.conf
> root     20158  0.0  0.0   3132   832 pts/0    S+   20:23   0:00 grep argus
>
> Peter Van Epp / Operations and Technical Support 
> Simon Fraser University, Burnaby, B.C. Canada
>
>   





More information about the argus mailing list