ipfixcol2 icon indicating copy to clipboard operation
ipfixcol2 copied to clipboard

Floatig point exception for IPFIX output

Open thorgrin opened this issue 4 years ago • 0 comments

I'm getting a floating point exception for this version and configuration:

Version:      2.2.1
GIT hash:     db9a5d4
Build type:   Release
Architecture: x86-64 (little endian)
Compiler:     GNU 7.4.0
Copyright (C) 2018 CESNET z.s.p.o.

My full config file

<ipfixcol2>
  <!-- Input plugins -->
  <inputPlugins>
    <input>
      <name>TCP collector</name>
      <plugin>tcp</plugin>
      <params>
        <!-- List on port 4739 -->
        <localPort>4739</localPort>
        <!-- Bind to all local adresses -->
        <localIPAddress></localIPAddress>
      </params>
    </input>
  </inputPlugins>

  <!-- Output plugins -->
  <outputPlugins>
    <output>
      <name>JSON output</name>
      <plugin>json</plugin>
      <params>
        <tcpFlags>formatted</tcpFlags>
        <timestamp>unix</timestamp>
        <protocol>raw</protocol>
        <ignoreUnknown>false</ignoreUnknown>
        <ignoreOptions>false</ignoreOptions>
        <nonPrintableChar>true</nonPrintableChar>
        <detailedInfo>true</detailedInfo>
        <templateInfo>true</templateInfo>

        <!-- Output methods -->
        <outputs>
          <!-- Store as files into /tmp/ipfixcol/... -->
          <file>
            <name>Store to files</name>
<!--            <path>/tmp/ipfixcol2/</path> -->
                        <path>/home/ubuntu/ipfixcol2</path>
            <prefix>json.</prefix>
            <timeWindow>3000</timeWindow>
            <timeAlignment>no</timeAlignment>
          </file>
        </outputs>
      </params>
    </output>
    <output>
      <name>IPFIX output</name>
      <plugin>ipfix</plugin>
      <params>
        <filename>/home/ubuntu/ipfixcol2/data.ipfix</filename>
        <useLocalTime>false</useLocalTime>
        <windowSize>0</windowSize>
        <alignWindows>true</alignWindows>
        <preserveOriginal>false</preserveOriginal>
        <rotateOnExportTime>false</rotateOnExportTime>
      </params>
    </output>
  </outputPlugins>
</ipfixcol2>

This is what I get:

INFO: TCP collector: New exporter connected from '172.16.10.163'.
INFO: TCP collector (parser): [172.16.10.163:35188, ODID: 0] New connection detected!
DEBUG: TCP collector (parser): [172.16.10.163:35188, ODID: 0] Processing an IPFIX Message (Seq. number 0)
DEBUG: TCP collector (parser): [172.16.10.163:35188, ODID: 0] Processing a definition of Template ID 257 ...
INFO: TCP collector (parser): [172.16.10.163:35188, ODID: 0] A definition of the Template ID 257 has been accepted.
INFO: IPFIX output: [ODID: 0] '172.16.10.163:35188' has been granted access to write to the file with the given ODID.
Floating point exception (core dumped)

The problem seems to be in the windowSize argument, when I increase it to a 1000, it works just fine. However, the documentation says that 0 is the default value, so it should work, right?

thorgrin avatar Mar 19 '21 10:03 thorgrin