argus-clients-3.0.2.beta.10 segfault when reading argus 2 data

Carter Bullard carter at qosient.com
Thu Jul 30 19:22:20 EDT 2009


Hey Robert,

To clarify, you are saying that ra* programs from argus-clients-3.0.2,  
reading
from a remote argus-2.0 server, generate output files that are corrupt?
But, argus-2.0 files that are generated by the argus server, for the  
same
time period, are readable by argus-3.0 clients?

Can you try an experiment?  What happens when an argus-3.0 client
reads argus-2.0 and converts that to an argus-3.0 output file, and then
reads that output file?  Problems?  If so, could you share the original
argus-2.0 file, along with a brief description of how to recreate the  
fault?

What version of argus-clients-3.0 are you running?
Have you tried argus-clients-3.0.2.beta.10 code?

Carter


On Jul 30, 2009, at 7:28 AM, Robert Kerr wrote:

> Hi,
>
> I'm in the progress of migrating various argus 2 sensors and clients
> over to 3 and have ran into a few problems. I've got an argus 2 sensor
> which is both logging to a local file and listening on a socket to  
> which
> an argus 3 client connects. An argus 3 client on a remote system is  
> then
> in turn writing the collected data to a local file.
>
> I find that the files written by argus 3 result in a seg fault when  
> read
> by the same version of argus. I will see a small number of initial
> records read fine before the seg fault, and for any given file the  
> fault
> always occurs after the same number of correct records being output.  
> The
> last line output before the seg fault is:
>
> ,T        ,,(null),,<->,(null),,,,
>
> gdb output:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x0807d6b5 in ArgusCheckTime (parser=0xb7f23008, ns=0xb7ec1538) at ./ 
> argus_util.c:18115
> 18115            start.tv_sec  = rec->argus_mar.startime.tv_sec;
> (gdb) backt
> #0  0x0807d6b5 in ArgusCheckTime (parser=0xb7f23008, ns=0xb7ec1538)  
> at ./argus_util.c:18115
> #1  0x0805869c in ArgusHandleDatum (parser=0xb7f23008,  
> input=0xb7ec1008, ptr=0xb7ddfef8, filter=0xb7f4367c) at ./ 
> argus_util.c:2040
> #2  0x080932c2 in ArgusReadStreamSocket (parser=0xb7f23008,  
> input=0xb7ec1008) at ./argus_client.c:1710
> #3  0x0809346d in ArgusReadFileStream (parser=0xb7f23008,  
> input=0xb7ec1008) at ./argus_client.c:1761
> #4  0x0804c323 in main (argc=5, argv=0xbfae7434) at ./argus_main.c:231
> (gdb) print rec
> $1 = (struct ArgusRecord *) 0x2932fa8a
>
> Looking at the value of rec it appears to contain an IP address?
>
> The files written by argus 2 can be read fine by both versions of
> argus-clients so I guess the problem must lie in the code that handles
> remote reads in the argus 3 clients?
>
> Any ideas?
>
> -- 
> Robert Kerr
>
>





-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3815 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20090730/2a394d79/attachment.bin>


More information about the argus mailing list