On Mon, May 9, 2011 at 8:22 AM, Josh Durgin <josh.durgin@xxxxxxxxxxxxx> wrote: > On Mon, 9 May 2011 10:59:41 +0200, Christian Brunner <chb@xxxxxx> > wrote: >> Hi, >> >> after upgrading to qemu with josh's librbd patches I'm triggering the >> following assertion, when I'm running "yum upgrade" inside a guest. >> >> I suspect there is a race condition somewhere, but I don't have a clue >> at the moment. > > This is similar to a race condition Stefan encountered > (http://marc.info/?l=kvm&m=130225223223016&w=2), > although this crash was during a write whereas his test was just > reading the image. > >> >> Regards, >> Christian >> >> common/Mutex.h: In function 'void Mutex::Lock(bool)', in thread >> '0x7fea16b36700' >> common/Mutex.h: 118: FAILED assert(r == 0) > > Usually this assert fails due to a use-after-free. If you've got > a core file, could you print the lock that hit this assert and > the data structure containing it? Btw, probably not related but should be pointed out. There are a few places in librbd where it fails to take the image context lock, and it's probably racy. It's probably a big problem when resizing image, but there might be other issues. Yehuda -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html