qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4] thread: move detach_thread from creating thr


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v4] thread: move detach_thread from creating thread to created thread
Date: Wed, 29 Nov 2017 10:18:51 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

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

[Prev in Thread] Current Thread [Next in Thread]