racluster segfault rc.57

Carter Bullard carter at qosient.com
Mon Oct 8 20:24:21 EDT 2007


Hey Michael,
Can you share a file that fails?
Carter

On Oct 8, 2007, at 8:04 PM, Michael Hornung wrote:

> I found that racluster *occasionally* segfaults, and it's  
> repeatable when it does on a given file.  Note that the first  
> racluster pass on the argus log file is successful, but then a  
> second pass dies:
>
> % ls -l 1191383101
> -rw-r--r-- 1 argus argus 92132984 Oct  2 20:45 1191383101
> % racluster -r 1191383101 -M norep -w foo -- ip
> % ls -l foo
> -rw-r--r-- 1 argus argus 45661340 Oct  8 16:55 foo
> % racluster -r foo -M rmon -m saddr -w foo2
> Segmentation fault
>
> % gdb ~/src/argus-clients-3.0.0.rc.57/bin/racluster
> (gdb) set args -r foo -M rmon -m saddr -w foo2
> (gdb) run
> Starting program: /home/argus/src/argus-clients-3.0.0.rc.57/bin/ 
> racluster -r foo -M rmon -m saddr -w foo2
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x080a529c in ArgusSortSrcAddr (n2=0x8bf2420, n1=0x8bf1cb8) at ./ 
> argus_client.c:9966
> 9966                   retn = (*a1 > *a2) ? 1 : ((*a1 < *a2) ? -1 :  
> 0);
>
> (gdb) bt full
> #0  0x080a529c in ArgusSortSrcAddr (n2=0x8bf2420, n1=0x8bf1cb8)  
> at ./argus_client.c:9966
>         a1 = (unsigned int *) 0x8bf1d50
>         a2 = (unsigned int *) 0x0
>         f1 = (struct ArgusFlow *) 0x8bf1d4c
>         f2 = (struct ArgusFlow *) 0x8bf24b4
>         retn = 0
>         len = 0
>         i = 0
>         type = 1
> #1  0x080a4a32 in ArgusSortRoutine (void1=0xb7db4008,  
> void2=0xb7db400c) at ./argus_client.c:9776
>         retn = 0
>         i = 0
>         ns1 = (struct ArgusRecordStruct *) 0x8bf1cb8
>         ns2 = (struct ArgusRecordStruct *) 0x8bf2420
> #2  0x4e0fdd18 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #3  0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #4  0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #5  0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #6  0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #7  0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #8  0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #9  0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #10 0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #11 0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #12 0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #13 0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #14 0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #15 0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #16 0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #17 0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #18 0x4e0fdc68 in msort_with_tmp () from /lib/libc.so.6
> No symbol table info available.
> #19 0x4e0fde55 in qsort () from /lib/libc.so.6
> No symbol table info available.
> #20 0x080a4946 in ArgusSortQueue (sorter=0x28e6e2f8,  
> queue=0x8ba31e0) at ./argus_client.c:9747
>         i = 193202
>         cnt = 193202
> #21 0x0804a526 in RaParseComplete (sig=1) at ./racluster.c:189
>         argus = (struct ArgusRecordStruct *) 0x8586b
>         agg = (struct ArgusAggregatorStruct *) 0x8ba36c0
>         mode = (struct ArgusModeStruct *) 0x0
>         i = 1
>         x = 10
>         nflag = -1
>         wfile = (struct ArgusWfileStruct *) 0x0
>         file = (struct ArgusInput *) 0x0
>         buf = '\0' <repeats 1284 times>, "�\030N", '\0' <repeats  
> 24 times>, "\t\000\000\000\000\000\000\000����", '\0'  
> <repeats 52 times>, "\a", '\0' <repeats 47 times>, "\a", '\0'  
> <repeats 31 times>, "�NL\032\000\000\200\f\f\b\004\205�L\030N\t 
> \000\000\000T\220�\\225\n\b", '\0' <repeats 12 times>, "@�N�NR 
> \000\000\000R\000\000\000(\205�M\030N\t\000\000\000T\220�\\225\n 
> \b", '\0' <repeats 12 times>, "\b0�210\216�217�004\b\t\000\000 
> \000T\220�\\225\n\b", '�' <repeats 16 times>, "\003\000\000\000 
> \221\236\fN�"...
>         label = 7
>         fd = 134908848
> #22 0x0804c289 in main (argc=9, argv=0xbfe59054) at ./argus_main.c:342
>         addr = (struct ArgusInput *) 0xbfe58fc8
>         i = 1
>         cc = 79
>
>
> -Mike



More information about the argus mailing list