经gzlug robin li的建议,此文提到这是一个已知问题,可以暂时避免。
记录内容片断如下:
QEMU user mode
QEMU is a powerful, open source machine emulator. In “user mode”, it allows a single running Linux kernel to run binaries built for other architectures, without needing a full virtual machine. The binaries can be executed transparently using the kernel’s
1 | binfmt_misc |
While running our first builds with this method, we encountered a bug that caused some programs to hang. We first noticed the issue in
1 | cargo |
1 | fork() |
1 | fork() |
We discussed this upstream in a GLib issue and a QEMU issue, and we hope that QEMU can eventually work around the problem.
In the meantime, you can work around it manually by telling GLib to use
1 | malloc() |
1 | malloc() |
1 | G_SLICE=always-malloc |