cflowd causes strlen to core dump

From: Goncalo Costa (goncalo.costa@kpnqwest.pt)
Date: Mon Mar 05 2001 - 06:12:55 PST

  • Next message: Saulius Riauba: "cflowdmux - syslog error messages?"

    Hello all.

    I've been trying to get cflowd up and running, but it always core dumps
    after some time - from some minutes to a day. Log shows nothing.

    I've seen similar posts and have been increasing the maximum shared
    memory
    segment size. I currently have PKTBUFSIZE = 32 MB. With no results.

    Has anyone had similar problems ?

    Also, can anyone please confirm that a PKTBUFSIZE too short can
    cause cflowd to core dump ? Shouldn't it simply miss the flows ??
    Sorry but didn't look at the source.

    Thank you
    Goncalo

    bash-2.03# /usr/local/bin/gdb ./cflowd core
    GNU gdb 5.0
    Copyright 2000 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 "sparc-sun-solaris2.7"...(no debugging
    symbols found)...
    Core was generated by `/usr/local/arts/sbin/cflowd
    /usr/local/arts/etc/cflowd.conf'.
    Program terminated with signal 11, Segmentation Fault.
    Reading symbols from /usr/lib/libsocket.so.1...(no debugging symbols
    found)...done.
    Loaded symbols for /usr/lib/libsocket.so.1
    Reading symbols from /usr/lib/libnsl.so.1...(no debugging symbols
    found)...done.
    Loaded symbols for /usr/lib/libnsl.so.1
    Reading symbols from /usr/lib/libm.so.1...(no debugging symbols
    found)...done.
    Loaded symbols for /usr/lib/libm.so.1
    Reading symbols from /usr/lib/libc.so.1...(no debugging symbols
    found)...done.
    Loaded symbols for /usr/lib/libc.so.1
    Reading symbols from /usr/lib/libdl.so.1...(no debugging symbols
    found)...done.
    Loaded symbols for /usr/lib/libdl.so.1
    Reading symbols from /usr/lib/libmp.so.2...(no debugging symbols
    found)...done.
    Loaded symbols for /usr/lib/libmp.so.2
    Reading symbols from
    /usr/platform/SUNW,UltraSPARC-IIi-Engine/lib/libc_psr.so.1...(no
    debugging symbols found)...done.
    Loaded symbols for
    /usr/platform/SUNW,UltraSPARC-IIi-Engine/lib/libc_psr.so.1
    #0 0xff1b6e94 in strlen () from /usr/lib/libc.so.1
    (gdb) where
    #0 0xff1b6e94 in strlen () from /usr/lib/libc.so.1
    #1 0xff1fff08 in _doprnt () from /usr/lib/libc.so.1
    #2 0xff201f7c in vsnprintf () from /usr/lib/libc.so.1
    #3 0xff1d2a68 in vsyslog () from /usr/lib/libc.so.1
    #4 0xff1d2610 in syslog () from /usr/lib/libc.so.1
    #5 0x48c54 in CflowdCisco::ClearTableData ()
    #6 0x3bd78 in HandleCollectorClient ()
    #7 0x3ccd4 in MainLoop ()
    #8 0x3cf0c in main ()
    (gdb)

    --
    cflowd mailing list
    cflowd@caida.org
    



    This archive was generated by hypermail 2b29 : Mon Mar 05 2001 - 06:37:14 PST