server segfault

Carter Bullard carter at qosient.com
Tue Feb 27 16:06:36 EST 2001


Hey Peter,
   Hmmm, the dump isn't a queue problem, just a gottcha that we
hadn't seen before.  What happened in this case, is that the
flow modeler exited and so the flow multiplexor decided to exit.
The dump resulted from the ArgusOutput process calling a
routine that is normally called by its parent, and so we
hit a NULL pointer.  Not a problem.  Here is the patch:

Index: ArgusUtil.c
===================================================================
RCS file: /usr/local/cvsroot/argus/server/ArgusUtil.c,v
retrieving revision 1.71
diff -r1.71 ArgusUtil.c
262a263,266
>    int retn = 0;
>
>    if (queue != NULL)
>       retn = queue->count;
265c269
<    ArgusDebug (6, "ArgusGetQueueCount (0x%x) returning %d\n", queue,
queue->count);
---
>    ArgusDebug (6, "ArgusGetQueueCount (0x%x) returning %d\n", queue,
retn);
268c272
<    return (queue->count);
---
>    return (retn);


   So the ArgusUpdateFRAGState problem is back.  I thought it
might rear its ugly head, so I have the fix.  It will be out
in a few hours.

Carter

Carter Bullard
QoSient, LLC
300 E. 56th Street, Suite 18K
New York, New York  10022

carter at qosient.com
Phone +1 212 588-9133
Fax   +1 212 588-9134

> -----Original Message-----
> From: owner-argus at lists.andrew.cmu.edu
> [mailto:owner-argus at lists.andrew.cmu.edu]On Behalf Of Peter Van Epp
> Sent: Tuesday, February 27, 2001 3:46 PM
> To: argus
> Subject: Re: server segfault
>
>
> 	Hmmm, looks like there are still queue problems. I've
> been banging my
> head on OpenBSD for the last little while and haven't been
> poking at beta.7.
> I guess I should move my test server up to beta.7 and see
> what happens.
>
> Peter Van Epp / Operations and Technical Support
> Simon Fraser University, Burnaby, B.C. Canada
>
> >
> > I had an crash form argus beta 7 last night:
> >
> >
> > bash-2.04$ gdb bin/argus_bpf data/argus_bpf.core
> > GNU gdb 4.18
> > Copyright 1998 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public
> License, and you are
> > welcome to change it and/or distribute copies of it under
> certain conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show
> warranty" for details.
> > This GDB was configured as "i386-unknown-freebsd"...
> > Core was generated by `argus_bpf'.
> > Program terminated with signal 11, Segmentation fault.
> > Reading symbols from /usr/lib/libm.so.2...done.
> > Reading symbols from /usr/lib/libc.so.4...done.
> > Reading symbols from /usr/libexec/ld-elf.so.1...done.
> > #0  ArgusGetQueueCount (queue=0x0) at ./ArgusUtil.c:268
> > 268        return (queue->count);
> > (gdb) where
> > #0  ArgusGetQueueCount (queue=0x0) at ./ArgusUtil.c:268
> > #1  0x804d8ac in ArgusGenerateStatusMar () at ./ArgusOutput.c:213
> > #2  0x804d97a in ArgusGenerateClosingMar (status=16) at
> ./ArgusOutput.c:239
> > #3  0x804e957 in ArgusSendClosingMar (fd=8, status=16) at
> ./ArgusOutput.c:856
> > #4  0x804e88a in ArgusOutputCleanUp (param=0) at ./ArgusOutput.c:796
> > #5  0x804df60 in ArgusOutputProcess () at ./ArgusOutput.c:441
> > #6  0x804d635 in ArgusInitOutput () at ./ArgusOutput.c:132
> > #7  0x804a50d in main (argc=7, argv=0xbfbffb80) at ./argus.c:376
> > (gdb) l
> > 263
> > 264     #ifdef ARGUSDEBUG
> > 265        ArgusDebug (6, "ArgusGetQueueCount (0x%x)
> returning %d\n", queue, queue->count);
> > 266     #endif
> > 267
> > 268        return (queue->count);
> > 269     }
> > 270
> > 271     void
> > 272     ArgusPushQueue(struct ArgusQueueStruct *queue,
> struct ArgusFlowStruct *obj)
> > (gdb) p queue
> > $1 = (struct ArgusQueueStruct *) 0x0
> >
> > Sorry I can't eaily use argusbugs because the machine cant
> send mail
> > directly to the net.
> >
> > Platform Free BSD 4.2
> >
> >
> > Russell Fulton, Computer and Network Security Officer
> > The University of Auckland,  New Zealand
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20010227/e19ade27/attachment.html>


More information about the argus mailing list