Open cgorski-idexx opened 5 years ago
Follow up: I think arm7 is 32-bit.
readOffset
in
https://github.com/DataDog/datadog-agent/blob/master/pkg/logs/input/file/tailer.go
is an int64
. Could the atomic increment operation be causing the seg fault?
May be applicable:
From:
Bugs: On x86-32, the 64-bit functions use instructions unavailable before the Pentium MMX. On non-Linux ARM, the 64-bit functions use instructions unavailable before the ARMv6k core. On ARM, x86-32, and 32-bit MIPS, it is the caller's responsibility to arrange for 64-bit alignment of 64-bit words accessed atomically. The first word in a variable or in an allocated struct, array, or slice can be relied upon to be 64-bit aligned.
Could be this: https://github.com/golang/go/issues/23345
Hello @cgorski-idexx ,
Thanks a lot for submitting this and doing the PR as well. We will definitely review it and make sure it is merged as soon as possible.
Thanks again for your contribution.
Attempting to run agent on raspberry pi with log collection fails.
uname -a
from my environment:Linux raspberrypi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux
Log collection configuration file. Agent runs with no problems if this is not here: