Open KomtGoed opened 7 months ago
Can reliably reproduce the segfault by stopping the autoheal container through the portainer UI.
Did some searching and came across the links included below. https://github.com/lovell/sharp/issues/2570 Is Alpine up to date in the latest Autoheal container?
https://serverfault.com/questions/1097705/segmentation-fault-of-bacula-on-apline-linux Is MUSL up to date?
https://users.rust-lang.org/t/segfault-when-linking-against-shared-libraries-on-alpine/98629 Is Rust compiled/linked as mentioned?
Or can it be any other setting of my docker environment?
Thanks for any help!
Ran into this issue as well (Ubuntu 22.04.4 LTS/Linux 5.15.0-101-generic x86_64).
It seems to be caused line 128 in docker-entrypoint
. My guess is it's a race condition caused by kill $$; term_handler
which kills the process then tries to call term_handler()
; if you modify this to kill the background process instead (kill $!; term handler
), stopping the container shouldn't produce any segfault errors in syslog, and I can confirm this is the case on my machine.
Nicely spotted, thanks!
Hi,
I am using Autoheal together with Watchtower.
Watchtower is scheduled to run at 05:00 in the morning. Since the day I added Autoheal to the herd, I get the following error messages in the logs:
This is what's happening around that time in the watchtower logs: time="2024-02-24T05:00:19+01:00" level=info msg="Stopping /autoheal (574bcbae8d52) with SIGTERM" time="2024-02-24T05:00:20+01:00" level=debug msg="Removing container 574bcbae8d52" time="2024-02-24T05:00:20+01:00" level=info msg="Creating /autoheal" time="2024-02-24T05:00:20+01:00" level=debug msg="Starting container /autoheal (b7a538093001)" time="2024-02-24T05:00:21+01:00" level=info msg="Removing image 408724c998f0"
Is it correct to assume that it's actually Autoheal causing the segfault? If so, what to do about it?
Thanks!