> -----Original Message----- > From: Eric Blake [mailto:ebl...@redhat.com] > Sent: Thursday, November 30, 2017 12:19 AM > To: linzhecheng; qemu-devel@nongnu.org > Cc: aligu...@us.ibm.com; f...@redhat.com; wangxin (U); Gonglei (Arei); > pbonz...@redhat.com > Subject: Re: [Qemu-devel] [PATCH v4] thread: move detach_thread from > creating thread to created thread > > 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? > No, we didn't do that yet. :(
> 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. > > Yes, agree. Regards, -Gonglei > > > > 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