Page MenuHomeVyOS Platform

Flow-accounting crushes when IMT is enabled
Closed, ResolvedPublicBUG

Description

uacctd.service crushes when IMT is enabled

Configuration

set interfaces ethernet eth0 address '192.168.139.100/24'
set system name-server '8.8.8.8'
set system flow-accounting interface 'eth0'
set system flow-accounting netflow engine-id '100'
set system flow-accounting netflow server 192.168.139.1 port '2055'
set system flow-accounting netflow version '9'

When traffic pass

Sep 27 13:17:57 vyos systemd[1]: uacctd.service: Scheduled restart job, restart counter is at 170.
Sep 27 13:17:57 vyos systemd[1]: Stopped uacctd.service - ulog accounting daemon.
Sep 27 13:17:57 vyos systemd[1]: Starting uacctd.service - ulog accounting daemon...
Sep 27 13:17:57 vyos systemd[1]: uacctd.service: Can't open PID file /run/pmacct/uacctd.pid (yet?) after start: No such file or directory
Sep 27 13:17:57 vyos systemd[1]: Started uacctd.service - ulog accounting daemon.
Sep 27 13:17:57 vyos kernel: uacctd[12795]: segfault at 6 ip 00007f1e2e9e3c90 sp 00007ffcc12cdfa8 error 4 in libc.so.6[7f1e2e967000+155000] likely on CPU 0 (core 0, socket 0)
Sep 27 13:17:57 vyos kernel: Code: fa 04 73 16 83 fa 01 7c 10 8a 0e 74 0a 0f b7 74 16 fe 66 89 74 17 fe 88 0f c3 8b 4c 16 fc 8b 36 89 4c 17 fc 89 37 c3 0f 1f 00 <48> 8b 4c 16 f8 48 8b 36 48 89 37 48 89 4c 17 f8 c3 0f 10 54 16 f0
Sep 27 13:17:57 vyos systemd[1]: uacctd.service: Main process exited, code=killed, status=11/SEGV
Sep 27 13:17:57 vyos systemd[1]: uacctd.service: Failed with result 'signal'.

In 1.4 and 1.5 it crashes.

In 1.3 it works.

After disabling IMT, the daemon works in the normal way.

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.5-rolling-202309270022
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

zsdc changed the task status from Open to In progress.Sep 28 2023, 4:57 PM
zsdc claimed this task.
zsdc added a subscriber: zsdc.

This should fix the problem: https://github.com/vyos/vyos-build/pull/428

zsdc changed the task status from In progress to Needs testing.Oct 2 2023, 8:47 AM

I have tested. It works
Daemon does not crush.
There is information in local database.

zsdc moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
zsdc moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.