It is possible to reproduce the issue with a simple clone example taken from
http://man7.org/linux/man-pages/man2/clone.2.html # qemu-aarch64-static -strace ./a.out testname 585 brk(NULL) = 0x0000004000013000 585 uname(0x4000812d08) = 0 585 faccessat(AT_FDCWD,"/etc/ld.so.nohwcap",F_OK,0x82e888) = -1 errno=2 (No such file or directory) 585 mmap(NULL,12288,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000004000843000 585 faccessat(AT_FDCWD,"/etc/ld.so.preload",R_OK,AT_SYMLINK_NOFOLLOW|0x82d848) = -1 errno=2 (No such file or directory) 585 openat(AT_FDCWD,"/etc/ld.so.cache",O_RDONLY|O_CLOEXEC) = 3 585 fstat(3,0x0000004000812680) = 0 585 mmap(NULL,20645,PROT_READ,MAP_PRIVATE,3,0) = 0x0000004000846000 585 close(3) = 0 585 faccessat(AT_FDCWD,"/etc/ld.so.nohwcap",F_OK,0x82e888) = -1 errno=2 (No such file or directory) 585 openat(AT_FDCWD,"/lib/aarch64-linux-gnu/libc.so.6",O_RDONLY|O_CLOEXEC) = 3 585 read(3,0x812830,832) = 832 585 fstat(3,0x00000040008126d0) = 0 585 mmap(NULL,1393456,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x000000400084c000 585 mprotect(0x0000004000987000,65536,PROT_NONE) = 0 585 mmap(0x0000004000997000,24576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x13b000) = 0x0000004000997000 585 mmap(0x000000400099d000,13104,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x000000400099d000 585 close(3) = 0 585 mprotect(0x0000004000997000,16384,PROT_READ) = 0 585 mprotect(0x0000004000011000,4096,PROT_READ) = 0 585 mprotect(0x0000004000840000,4096,PROT_READ) = 0 585 munmap(0x0000004000846000,20645) = 0 585 brk(NULL) = 0x0000004000013000 585 brk(0x0000004000034000) = 0x0000004000013000 585 mmap(NULL,1048576,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x00000040009a1000 585 mmap(NULL,1052672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x0000004000aa1000 585 clone(CLONE_NEWUTS|0x11,child_stack=0x0000004000ba1010,parent_tidptr=0x0000004000aa1010,tls=0x0000000000000000,child_tidptr=0x0000000000000000) = -1 errno=22 (Invalid argument) 585 dup(2,4222427270,274886578000,22,0,0) = 3 585 fcntl(3,F_GETFL) = 1026 585 fstat(3,0x0000004000812628) = 0 585 write(3,0x9a1490,24)clone: Invalid argument = 24 585 close(3) = 0 585 exit_group(1) # strace ./a.out testname qemu: Unsupported syscall: 117 qemu: Unsupported syscall: 117 /usr/bin/strace: ptrace(PTRACE_TRACEME, ...): Function not implemented +++ exited with 1 +++ -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1673976 Title: core dump Status in QEMU: New Bug description: I'm running a command (locale-gen) inside of an armv7h chroot mounted on my x86_64 desktop by putting qemu-arm-static into /usr/bin/ of the chroot file system and I get a core dump. locale-gen Generating locales... en_US.UTF-8...localedef: ../sysdeps/unix/sysv/linux/spawni.c:360: __spawnix: Assertion `ec >= 0' failed. qemu: uncaught target signal 6 (Aborted) - core dumped /usr/bin/locale-gen: line 41: 34 Aborted (core dumped) localedef -i $input -c -f $charset -A /usr/share/locale/locale.alias $locale I've done this same thing successfully for years, but this breakage has appeared some time in the last 3 or so months. Possibly with the update to qemu version 2.8. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1673976/+subscriptions