[Bug 1813398] Re: qemu user calls malloc after fork in multi-threaded process

2019-01-26 Thread Szabolcs Nagy
** Also affects: qemu Importance: Undecided Status: New ** No longer affects: qemu (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1813398 Title: qemu user calls malloc after fork

[Bug 1813398] [NEW] qemu user calls malloc after fork in multi-threaded process

2019-01-26 Thread Szabolcs Nagy
Public bug reported: qemu user may hang in malloc on a musl based system because it calls malloc after fork (in a pthread_atfork handler) in the child process. this is undefined behaviour since the parent process is multi-threaded and only as-safe functions may be called in the child then. (if ma