[Bug 1751011] [NEW] bash crashes in qemu-user environments (bionic)

2018-02-22 Thread Peter Ogden
Public bug reported: Attempts to launch bash in an arm64 qemu-user environment in bionic results in the following error message: bash: xmalloc: .././shell.c:1709: cannot allocate 10 bytes (0 bytes allocated) This causes any qemu/chroot based bootstrapping to fail as many packages invoke bash dur

[Bug 1749393] Re: sbrk() not working under qemu-user with a PIE-compiled binary?

2018-03-15 Thread Peter Ogden
Could we over-allocate the data segment by QEMU_DATA_SIZE/getrlimit(RLIMIT_DATA)/128 MB depending on what's set - similar to how the stack size is managed? My current workaround for aarch64 on x86-64 is to mmap a dynamic main executable in some far-away part of the address space but I'm not sure h