From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrZI3-0007HB-5F for qemu-devel@nongnu.org; Mon, 02 Jun 2014 16:57:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrZHy-00058r-3n for qemu-devel@nongnu.org; Mon, 02 Jun 2014 16:57:07 -0400 Received: from mail-ph.de-nserver.de ([85.158.179.214]:44789) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrZHx-000578-OR for qemu-devel@nongnu.org; Mon, 02 Jun 2014 16:57:02 -0400 Message-ID: <538CE52C.1050906@profihost.ag> Date: Mon, 02 Jun 2014 22:57:16 +0200 From: Stefan Priebe MIME-Version: 1.0 References: <53863BC6.3040108@profihost.ag> <53863C9A.4040905@profihost.ag> <606EBA1F-638A-487D-8551-8D183D79937E@profihost.ag> <20140602134007.GG3049@stefanha-thinkpad.redhat.com> <538CD167.1080100@profihost.ag> <538CE282.90102@redhat.com> In-Reply-To: <538CE282.90102@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu 2.0 segfaults in event notifier List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Stefan Hajnoczi Cc: "famz@redhat.com" , qemu-devel , "qemu-stable@nongnu.org" Am 02.06.2014 22:45, schrieb Paolo Bonzini: > Il 02/06/2014 21:32, Stefan Priebe ha scritto: >> >> #0 0x00007f69e421c43f in event_notifier_set (e=0x124) at >> util/event_notifier-posix.c:97 >> #1 0x00007f69e3e37afc in aio_notify (ctx=0x0) at async.c:246 >> #2 0x00007f69e3e37697 in qemu_bh_schedule (bh=0x7f5dac217f60) at >> async.c:128 >> #3 0x00007f69e3e8bc44 in rbd_finish_aiocb (c=0x7f5dac0c3f30, >> rcb=0x7f5dafa50610) at block/rbd.c:585 >> #4 0x00007f69e17bee44 in librbd::AioCompletion::complete() () from >> /usr/lib/librbd.so.1 >> #5 0x00007f69e17be832 in >> librbd::AioCompletion::complete_request(CephContext*, long) () from >> /usr/lib/librbd.so.1 >> #6 0x00007f69e1c946ba in Context::complete(int) () from >> /usr/lib/librados.so.2 >> #7 0x00007f69e17f1e85 in ObjectCacher::C_WaitForWrite::finish(int) () >> from /usr/lib/librbd.so.1 >> #8 0x00007f69e1c946ba in Context::complete(int) () from >> /usr/lib/librados.so.2 >> #9 0x00007f69e1d373c8 in Finisher::finisher_thread_entry() () from >> /usr/lib/librados.so.2 >> #10 0x00007f69dbd43b50 in start_thread () from >> /lib/x86_64-linux-gnu/libpthread.so.0 >> #11 0x00007f69dba8e13d in clone () from /lib/x86_64-linux-gnu/libc.so.6 >> #12 0x0000000000000000 in ?? () > > Can you also print qemu_aio_context? (gdb) print qemu_aio_context $1 = (AioContext *) 0x7f69e68a4e00 (gdb) print *(AioContext*)0x7f69e68a4e00 $2 = {source = {callback_data = 0x0, callback_funcs = 0x0, source_funcs = 0x7f69e462d020, ref_count = 2, context = 0x7f69e68a5190, priority = 0, flags = 1, source_id = 1, poll_fds = 0x7f69e686aea0, prev = 0x0, next = 0x7f69e743ccd0, name = 0x0, priv = 0x0}, lock = {lock = {lock = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 2, __spins = 0, __list = { __prev = 0x0, __next = 0x0}}, __size = '\000' , "\002", '\000' , __align = 0}}, head = 0, tail = 0, cond = {cond = {__data = {__lock = 0, __futex = 0, __total_seq = 0, __wakeup_seq = 0, __woken_seq = 0, __mutex = 0x0, __nwaiters = 0, __broadcast_seq = 0}, __size = '\000' , __align = 0}}, owner_thread = { thread = 0}, nesting = 0, cb = 0x7f69e3e37b4f , cb_opaque = 0x7f69e68a4e00}, aio_handlers = { lh_first = 0x7f69e68a4f60}, walking_handlers = 0, bh_lock = {lock = {__data = {__lock = 0, __count = 0, __owner = 0, __nusers = 0, __kind = 2, __spins = 0, __list = {__prev = 0x0, __next = 0x0}}, __size = '\000' , "\002", '\000' , __align = 0}}, first_bh = 0x7f69e6b04d10, walking_bh = 0, notifier = {rfd = 4, wfd = 4}, pollfds = 0x7f69e68a4630, thread_pool = 0x0, tlg = {tl = {0x7f69e68a4fa0, 0x7f69e68a5010, 0x7f69e68a5080}}} > Also print the backtrace of all > threads, using "thread apply all bt full". http://pastebin.com/raw.php?i=uzcpN0zk THanks, Stefan