[ARGUS] Then again, perhaps a bug after all ...

Carter Bullard carter at qosient.com
Fri Oct 15 09:07:29 EDT 2004


Hey Peter et al,
Ok, so I'll take a serious look at this on Solaris.  Any particular
version?  I have access to a few, but not all.

I'm just now back from a long "on the road" session and its time to
put the final push on argus 3.0.7, which will be the unstable release
that will have the Windows port, 64-bit support and as many fixes as
I can remember to put in.  I would like to have my first serious
pass done next week (wed/thu), but if not finished, I'll put it out
anyway, so we can begin the debugging.  Shouldn't be bad, just making
sure that particular bugs are fixed.

Carter



> From: Peter Van Epp <vanepp at sfu.ca>
> Date: Thu, 14 Oct 2004 21:28:40 -0700
> To: <argus-info at lists.andrew.cmu.edu>
> Subject: [ARGUS] Then again, perhaps a bug after all ...
> 
> Poking at Solaris, it looks like good old getopt is biting me:
> 
> (gdb) print optarg
> $10 = 0xffbffc2b "/tmp/com_argus.2004.10.10.22.00.00.0.gz"
> (gdb) s
> 445                    if (!(ArgusAddFileList (optarg, (Cflag ?
> ARGUS_CISCO_DATA_SOURCE : ARGUS_DATA_SOURCE), -1, -1))) {
> (gdb) print optarg
> $11 = 0xffbffc2b "/tmp/com_argus.2004.10.10.22.00.00.0.gz"
> (gdb) s
> ArgusAddFileList (ptr=0x0, mode=1, ostart=-1, ostop=-1) at argus_parse.c:3070
> 3070       if (ptr) {
> (gdb) print ptr
> $12 = 0x0
> 
> after the call to ArgusAddFileList optarg has become NULL which is
> just plain wrong and causes a segfault in a while. The problem is I don't see
> why its wrong, it seems correct before the call, but not after). The same
> thing on FreeBSD where it works correctly:
> 
> 445                    if (!(ArgusAddFileList (optarg, (Cflag ?
> ARGUS_CISCO_DATA_SOURCE : ARGUS_DATA_SOURCE), -1, -1))) {
> (gdb)
> ArgusAddFileList (
>     ptr=0xbfbffc4f "/var/log/argus/com_argus.2004.10.10.22.00.00.0.gz",
>     mode=1, ostart=-1, ostop=-1) at ./argus_parse.c:3066
> 3066    {
> 
> 
> Peter Van Epp / Operations and Technical Support
> Simon Fraser University, Burnaby, B.C. Canada
> 





More information about the argus mailing list