To reproduce:
$ unshare -mrpf sh
sh-5.3# Segmentation fault (core dumped)
It seems related to vfork(), which is called in lots of places.
This simple program dumps core on ppc64le:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
int main(int argc, char *argv[])
{
int child = vfork();
printf("Child: %d\n", child);
if (child) {
sleep(1);
int ret = waitpid(child,0, 0);
}
return EXIT_SUCCESS;
}
https://github.com/opencontainers/runc/issues/4836#issuecomment-3257567225
_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox