On 11/27/2017 10:46 PM, linzhecheng wrote:
If we create a thread with QEMU_THREAD_DETACHED mode, QEMU may get a segfault 
in a low probability.



The root cause of this problem is a bug of glibc(version 2.17,the latest 
version has the same bug),
let's see what happened in glibc's code.

Have you reported this bug to the glibc folks, and if so, can we include a URL to the glibc bugzilla?

Working around the glibc bug is nice, but glibc should really be fixed so that other projects do not have to continue working around it.



QEMU get a segfault at line 50, becasue pd is an invalid address.
pd is still valid at line 38 when set pd->joinid = pd, at this moment,
created thread is just exiting(only keeps runing for a short time),

s/runing/running/

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to