Closed HolgerHees closed 3 months ago
another difference is that my host is using gcc 7.5.0
and the alpine container is using gcc 9.2.0
with latest debian buster image it works too.
+1 I am seeing this issue as well in Alpine Linux.
is working in my alpine 3.19 based container which is using musl libc.
so it seams to be fixed in the meantime.
Hello,
I hope for someone with better experiences in programming c.
Currently vcontrold is running fine on my host system. If I compile it in an alpine linux based container, it compiles fine too. But the final binary has some string length calculation issues in the parser.c
in the function
at then end during the while end condition check
we produce some kind of pointer overflow to leave the while loop. This works fine on a normal suse or fedora. But not an a musl/alpine based linux.
to demonstrate what I mean I added some additional log entries.
on my host system I get log messages like
but in my container I get
later the process is crashing with
I have the feeling that musl libc is not so strict in memory boundaries like glibc
has anyone an explanation for that? If I combine the while condition with a length check it works on alpine too.