Created attachment 189341 [details] flow-capture.core After I upgraded from 10.3 to 11.1, I noticed that flow-capture keeps crashing, each time it tries to save a flow file archive (save a tmp- file into a ft- one). I attached the core dump it creates, which reports "Program terminated with signal 11, Segmentation fault". Running flow-capture in a FreeBSD 10.3 jail (on a FreeBSD 11.1 kernel) solves the problem, thus I guess it might be something related to the userland.
In order to get more info from the core dump, I just rebuilt the port with the DEBUG option and... the issue seems to be gone away! I'm not a developer, thus I can't figure out what can be the cause of that. Anyone can help me understand? Thanks.
I have the same problem on 11.1. Rebuild with WITH_DEBUG=yes and SegFaults in gone away.
Can anyone give some dump? On the other hand let me resurrect flow-tools-ng. Will take a couple of days.
(In reply to Muhammad Moinur Rahman from comment #3) Thank you very much: actually we started using this port because net-mgmt/flow-tools-ng disappeared. I attached a dump to my first post, wasn’t it useful?
I'm reporting the same bug because this still doesn't seem to be fixed? Flow-capture dies when it receives a flow file archive from the flow sensor when installed on either Freebsd 11.1 or 11.2 (both running in jails on a FreeBSD 11.2 host). Spinning up a new Freebsd 10.4 jail on the 11.2 host solves the problem. I used the flow-tools pkg. I didn't try building from the ports tree using the DEBUG solution above because I was getting an error message when trying to build from ports tree "Ports Collection support for your FreeBSD version has ended" in my version of FreeBSD.
A commit references this bug: Author: bofh Date: Thu Mar 21 21:55:32 UTC 2019 New revision: 496516 URL: https://svnweb.freebsd.org/changeset/ports/496516 Log: net-mgmt/flow-tools: Update version 0.68=>0.68.6 - The original development has stalled. After tthatt Andrew tried to work on this project but I believe that has also stalled. Hence I have created a git repo applied some FreeBSD patches and released a new version. PR: 224840 Changes: head/net-mgmt/flow-tools/Makefile head/net-mgmt/flow-tools/distinfo head/net-mgmt/flow-tools/files/flow_capture.in head/net-mgmt/flow-tools/files/flow_fanout.in head/net-mgmt/flow-tools/files/patch-configs_Makefile head/net-mgmt/flow-tools/files/patch-configure head/net-mgmt/flow-tools/files/patch-flow-header.c head/net-mgmt/flow-tools/files/patch-ftpaths.h head/net-mgmt/flow-tools/files/patch-lib-ftfile.c head/net-mgmt/flow-tools/files/patch-lib_ftchash.c head/net-mgmt/flow-tools/files/patch-lib_ftio.c head/net-mgmt/flow-tools/files/patch-lib_ftlib.h head/net-mgmt/flow-tools/files/patch-lib_ftsym.c head/net-mgmt/flow-tools/files/patch-lib_fttlv.c head/net-mgmt/flow-tools/files/patch-lib_support.c head/net-mgmt/flow-tools/files/patch-src_flow-export.c head/net-mgmt/flow-tools/files/patch-src_flow-fanout.c head/net-mgmt/flow-tools/files/pkg-deinstall.in head/net-mgmt/flow-tools/files/pkg-install.in head/net-mgmt/flow-tools/pkg-descr head/net-mgmt/flow-tools/pkg-plist
Can anyone please confirm whether if this is working?
(In reply to Muhammad Moinur Rahman from comment #7) Just tested on FreeBSD 11.2-p1: the compiled binary does not crash anymore, so it seems OK so far (I'll leave it running for a few days and I'll update you in case of issue). Maybe there is something to adjust in dependencies management: I built it without PostgreSQL neither MySQL support, but the resulting package still requires databases/postgresql??-client to install. Many thanks for your work.
(In reply to Muhammad Moinur Rahman from comment #7) Just discovered an issue trying to use flow-nfilter(1), here are relevant output lines: flow-nfilter: open(/usr/local/etc/sym/ip-prot.sym): No such file or directory flow-nfilter: open(/usr/local/etc/sym/tcp-port.sym): No such file or directory flow-nfilter: open(/usr/local/etc/sym/asn.sym): No such file or directory flow-nfilter: open(/usr/local/etc/sym/tag.sym): No such file or directory flow-nfilter: open(/usr/local/etc/cfg/filter.cfg): No such file or directory It works if I move all *.sym files from /usr/localet/etc/flow-nfilter to /usr/local/etc/sym, and all *.cfg files from /usr/localet/etc/flow-nfilter to /usr/local/etc/cfg Thanks.
(In reply to Andrew from comment #9) Hi Andrew, Thanks for the notification. Let me work on that and I will come back soon with a solution.
^Triage: The original report (crash) has been resolved, closing accordingly. Please create a separate/new issue for comment 9