All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
@ 2012-12-06  4:02 Brad Smith
  2012-12-11 10:28 ` Stefan Hajnoczi
                   ` (19 more replies)
  0 siblings, 20 replies; 24+ messages in thread
From: Brad Smith @ 2012-12-06  4:02 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
command line params do not seem to matter.

assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
line 1220, function "bdrv_drain_all"

#1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
        p = (struct atexit *) 0x30d11897000
        mask = 4294967263
        cleanup_called = 1
#2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
) at /usr/src/lib/libc/gen/assert.c:52
No locals.
#3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
        bs = (BlockDriverState *) 0x30d13f3b630
        busy = false
        __func__ = "bdrv_drain_all"
#4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
        __func__ = "bmdma_cmd_writeb"
#5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
        bm = (BMDMAState *) 0x30d0f5f56a8
#6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
    at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
        mr = (MemoryRegion *) 0x30d0f5f57d0
        tmp = 8
#7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
    access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
        access_mask = 255
        access_size = 1
        i = 0
#8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
    at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
        mrio = (MemoryRegionIORange *) 0x30d1d5e7400
        mr = (MemoryRegion *) 0x30d0f5f57d0
        __func__ = "memory_region_iorange_write"
#9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
        ioport = (IORange *) 0x30d1d5e7400
#10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
        func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
        default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
#11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
No locals.
#12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
No locals.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
@ 2012-12-11 10:28 ` Stefan Hajnoczi
  2012-12-12 18:10 ` [Qemu-devel] [Bug 1087114] " Brad Smith
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Stefan Hajnoczi @ 2012-12-11 10:28 UTC (permalink / raw)
  To: Brad Smith; +Cc: qemu-devel

On Thu, Dec 06, 2012 at 04:02:57AM -0000, Brad Smith wrote:
> QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
> command line params do not seem to matter.

Please use git-bisect(1) to identify the commit that caused the
regression.

I was unable to hit this code path with qemu-system-i386 with an IDE
disk.  Please do share your command-line.

> assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
> line 1220, function "bdrv_drain_all"

bdrv_drain_all() waits until in-flight requests have completed.  The
assertion verifies that all I/O requests are really done.  Something is
wrong here.

> #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
>         p = (struct atexit *) 0x30d11897000
>         mask = 4294967263
>         cleanup_called = 1
> #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
> ) at /usr/src/lib/libc/gen/assert.c:52
> No locals.
> #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
>         bs = (BlockDriverState *) 0x30d13f3b630
>         busy = false
>         __func__ = "bdrv_drain_all"
> #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
>         __func__ = "bmdma_cmd_writeb"
> #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
>         bm = (BMDMAState *) 0x30d0f5f56a8

The device is an IDE disk.

> #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
>     at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
>         mr = (MemoryRegion *) 0x30d0f5f57d0
>         tmp = 8
> #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
>     access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
>         access_mask = 255
>         access_size = 1
>         i = 0
> #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
>     at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
>         mrio = (MemoryRegionIORange *) 0x30d1d5e7400
>         mr = (MemoryRegion *) 0x30d0f5f57d0
>         __func__ = "memory_region_iorange_write"
> #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
>         ioport = (IORange *) 0x30d1d5e7400
> #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
>         func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
>         default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
> #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
> No locals.
> #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
> No locals.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
  2012-12-11 10:28 ` Stefan Hajnoczi
@ 2012-12-12 18:10 ` Brad Smith
  2012-12-13  8:26 ` [Qemu-devel] [Bug 1087114] [NEW] " Zhi Yong Wu
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Brad Smith @ 2012-12-12 18:10 UTC (permalink / raw)
  To: qemu-devel

qemu-system-x86_64 -cdrom [image] -boot -d -hda virtual.img

is the command line I was using.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
  2012-12-11 10:28 ` Stefan Hajnoczi
  2012-12-12 18:10 ` [Qemu-devel] [Bug 1087114] " Brad Smith
@ 2012-12-13  8:26 ` Zhi Yong Wu
  2012-12-27  4:22   ` Brad Smith
  2012-12-13  9:39 ` [Qemu-devel] [Bug 1087114] " Paolo Bonzini
                   ` (16 subsequent siblings)
  19 siblings, 1 reply; 24+ messages in thread
From: Zhi Yong Wu @ 2012-12-13  8:26 UTC (permalink / raw)
  To: Bug 1087114; +Cc: qemu-devel

On Thu, Dec 6, 2012 at 12:02 PM, Brad Smith <1087114@bugs.launchpad.net> wrote:
> Public bug reported:
>
> QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
> command line params do not seem to matter.
>
> assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
> line 1220, function "bdrv_drain_all"
Just i hit the same issue on my large scale perf testing, mayb i
should try virtio-blk to work around before it is fixed by some guy.

>
> #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
>         p = (struct atexit *) 0x30d11897000
>         mask = 4294967263
>         cleanup_called = 1
> #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
> ) at /usr/src/lib/libc/gen/assert.c:52
> No locals.
> #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
>         bs = (BlockDriverState *) 0x30d13f3b630
>         busy = false
>         __func__ = "bdrv_drain_all"
> #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
>         __func__ = "bmdma_cmd_writeb"
> #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
>         bm = (BMDMAState *) 0x30d0f5f56a8
> #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
>     at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
>         mr = (MemoryRegion *) 0x30d0f5f57d0
>         tmp = 8
> #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4,
>     access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
>         access_mask = 255
>         access_size = 1
>         i = 0
> #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
>     at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
>         mrio = (MemoryRegionIORange *) 0x30d1d5e7400
>         mr = (MemoryRegion *) 0x30d0f5f57d0
>         __func__ = "memory_region_iorange_write"
> #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
>         ioport = (IORange *) 0x30d1d5e7400
> #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
>         func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
>         default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
> #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
> No locals.
> #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
> No locals.
>
> ** Affects: qemu
>      Importance: Undecided
>          Status: New
>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/1087114
>
> Title:
>   assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
>
> Status in QEMU:
>   New
>
> Bug description:
>   QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
>   command line params do not seem to matter.
>
>   assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
>   line 1220, function "bdrv_drain_all"
>
>   #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
>           p = (struct atexit *) 0x30d11897000
>           mask = 4294967263
>           cleanup_called = 1
>   #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
>   ) at /usr/src/lib/libc/gen/assert.c:52
>   No locals.
>   #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
>           bs = (BlockDriverState *) 0x30d13f3b630
>           busy = false
>           __func__ = "bdrv_drain_all"
>   #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
>           __func__ = "bmdma_cmd_writeb"
>   #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
>           bm = (BMDMAState *) 0x30d0f5f56a8
>   #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
>       at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
>           mr = (MemoryRegion *) 0x30d0f5f57d0
>           tmp = 8
>   #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4,
>       access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
>           access_mask = 255
>           access_size = 1
>           i = 0
>   #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
>       at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
>           mrio = (MemoryRegionIORange *) 0x30d1d5e7400
>           mr = (MemoryRegion *) 0x30d0f5f57d0
>           __func__ = "memory_region_iorange_write"
>   #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
>           ioport = (IORange *) 0x30d1d5e7400
>   #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
>           func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
>           default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
>   #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
>   No locals.
>   #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
>   No locals.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions
>



-- 
Regards,

Zhi Yong Wu

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (2 preceding siblings ...)
  2012-12-13  8:26 ` [Qemu-devel] [Bug 1087114] [NEW] " Zhi Yong Wu
@ 2012-12-13  9:39 ` Paolo Bonzini
  2012-12-13 10:16 ` Brad Smith
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Paolo Bonzini @ 2012-12-13  9:39 UTC (permalink / raw)
  To: qemu-devel

Please attach config.log, also please try (if you're using recent
openbsd with rthreads) --with-coroutine=sigaltstack.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (3 preceding siblings ...)
  2012-12-13  9:39 ` [Qemu-devel] [Bug 1087114] " Paolo Bonzini
@ 2012-12-13 10:16 ` Brad Smith
  2012-12-13 22:37 ` Brad Smith
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Brad Smith @ 2012-12-13 10:16 UTC (permalink / raw)
  To: qemu-devel

I'm just finishing the bisection and think I have the commit that caused
this but I'm now just testing commits +-1 from that commit to make sure
and if it is will try reverting just that commit against HEAD as well.
Using the sigaltstack coroutine backend did not make any difference. I
actually am using that now and then reverted it when initially testing
1.3 to make sure that was not the source of the regression with no
change in behaviour at all. Also yes I would be using rthreads. All
development happens against -current.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (4 preceding siblings ...)
  2012-12-13 10:16 ` Brad Smith
@ 2012-12-13 22:37 ` Brad Smith
  2012-12-27  4:26 ` Brad Smith
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Brad Smith @ 2012-12-13 22:37 UTC (permalink / raw)
  To: qemu-devel

So what is causing this is this commit...
c166cb72f1676855816340666c3b618beef4b976

semaphore: implement fallback counting semaphores with mutex+condvar

OpenBSD and Darwin do not have sem_timedwait.  Implement a fallback for
them.

If I remove that, since OpenBSD 5.2/-current has sem_timedwait, then it
works just fine.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-13  8:26 ` [Qemu-devel] [Bug 1087114] [NEW] " Zhi Yong Wu
@ 2012-12-27  4:22   ` Brad Smith
  0 siblings, 0 replies; 24+ messages in thread
From: Brad Smith @ 2012-12-27  4:22 UTC (permalink / raw)
  To: Zhi Yong Wu; +Cc: Bug 1087114, qemu-devel

On Thu, Dec 13, 2012 at 04:26:50PM +0800, Zhi Yong Wu wrote:
> On Thu, Dec 6, 2012 at 12:02 PM, Brad Smith <1087114@bugs.launchpad.net> wrote:
> > Public bug reported:
> >
> > QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
> > command line params do not seem to matter.
> >
> > assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
> > line 1220, function "bdrv_drain_all"
> Just i hit the same issue on my large scale perf testing, mayb i
> should try virtio-blk to work around before it is fixed by some guy.

What OS are you using to host QEMU?

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (5 preceding siblings ...)
  2012-12-13 22:37 ` Brad Smith
@ 2012-12-27  4:26 ` Brad Smith
  2012-12-27 11:48   ` Paolo Bonzini
  2013-01-12  5:15 ` Austin Seipp
                   ` (12 subsequent siblings)
  19 siblings, 1 reply; 24+ messages in thread
From: Brad Smith @ 2012-12-27  4:26 UTC (permalink / raw)
  To: qemu-devel

Paolo,

As you wrote the fallback code which is used when sem_timedwait() is
missing could you please take a look at this when you have some time? I
can test any patches you might come up with.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-27  4:26 ` Brad Smith
@ 2012-12-27 11:48   ` Paolo Bonzini
  0 siblings, 0 replies; 24+ messages in thread
From: Paolo Bonzini @ 2012-12-27 11:48 UTC (permalink / raw)
  To: Bug 1087114; +Cc: qemu-devel

Il 27/12/2012 05:26, Brad Smith ha scritto:
> Paolo,
> 
> As you wrote the fallback code which is used when sem_timedwait() is
> missing could you please take a look at this when you have some time? I
> can test any patches you might come up with.

Can you try this:

diff --git a/util/qemu-thread-posix.c b/util/qemu-thread-posix.c
index 7be292e..17f2d7c 100644
--- a/util/qemu-thread-posix.c
+++ b/util/qemu-thread-posix.c
@@ -213,6 +213,7 @@ int qemu_sem_timedwait(QemuSemaphore *sem, int ms)
     while (sem->count < 0) {
         rc = pthread_cond_timedwait(&sem->cond, &sem->lock, &ts);
         if (rc == ETIMEDOUT) {
+            ++sem->count;
             break;
         }
         if (rc != 0) {

and if it passes, post it?  I'll be very sparsely online until Jan 8th.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Paolo

^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (6 preceding siblings ...)
  2012-12-27  4:26 ` Brad Smith
@ 2013-01-12  5:15 ` Austin Seipp
  2013-01-14  9:28   ` Markus Armbruster
  2013-01-12 12:48 ` Aaron
                   ` (11 subsequent siblings)
  19 siblings, 1 reply; 24+ messages in thread
From: Austin Seipp @ 2013-01-12  5:15 UTC (permalink / raw)
  To: qemu-devel

I was experiencing this bug fairly regularly with QEMU 1.3.0 on OS X
10.8. All my emulations of debian environments couldn't even get past
installation, because this bug would hit too early.

Brad, it looks like 2 weeks ago you got a patch authored that fixes this
fallback code. That's commit a795ef8dcb8cbadffc996c41ff38927a97645234,
which was originally from Paolo.

I have applied this patch locally to a copy of QEMU 1.3.0 and my
problems went away. Thus I think this bug is fixed in HEAD, but I do not
know if the commit has been put in another branch.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (7 preceding siblings ...)
  2013-01-12  5:15 ` Austin Seipp
@ 2013-01-12 12:48 ` Aaron
  2013-01-12 21:51 ` Rainer Müller
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Aaron @ 2013-01-12 12:48 UTC (permalink / raw)
  To: qemu-devel

I am currently experiencing this on Mac OS X 10.8 also, custom built
yesterday evening from the master branch.

I have looked at the diff and it looks like it has been applied in qemu-
thread-posix.c file, but no luck.

Any pointers? Thanks

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (8 preceding siblings ...)
  2013-01-12 12:48 ` Aaron
@ 2013-01-12 21:51 ` Rainer Müller
  2013-01-13 12:22 ` Aaron Jackson
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Rainer Müller @ 2013-01-12 21:51 UTC (permalink / raw)
  To: qemu-devel

I had the same problem on Mac OS X 10.8.2 with qemu 1.3.0, but it is now
fixed in the current master branch. I can confirm that the commit
a795ef8dcb8cbadffc996c41ff38927a97645234 fixes this problem. This commit
can also be applied to the 1.3.0 source.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (9 preceding siblings ...)
  2013-01-12 21:51 ` Rainer Müller
@ 2013-01-13 12:22 ` Aaron Jackson
  2013-01-17 12:46 ` Brad Smith
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Aaron Jackson @ 2013-01-13 12:22 UTC (permalink / raw)
  To: qemu-devel

I am still having this error even though I compile from the master
branch and commit a795ef8dcb8cbadffc996c41ff38927a97645234 is definitely
there.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2013-01-12  5:15 ` Austin Seipp
@ 2013-01-14  9:28   ` Markus Armbruster
  0 siblings, 0 replies; 24+ messages in thread
From: Markus Armbruster @ 2013-01-14  9:28 UTC (permalink / raw)
  To: Bug 1087114; +Cc: qemu-devel, qemu-stable

Austin Seipp <mad.one@gmail.com> writes:

> I was experiencing this bug fairly regularly with QEMU 1.3.0 on OS X
> 10.8. All my emulations of debian environments couldn't even get past
> installation, because this bug would hit too early.
>
> Brad, it looks like 2 weeks ago you got a patch authored that fixes this
> fallback code. That's commit a795ef8dcb8cbadffc996c41ff38927a97645234,
> which was originally from Paolo.
>
> I have applied this patch locally to a copy of QEMU 1.3.0 and my
> problems went away. Thus I think this bug is fixed in HEAD, but I do not
> know if the commit has been put in another branch.

Cc'ing qemu-stable, in case the commit hasn't been noticed.

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (10 preceding siblings ...)
  2013-01-13 12:22 ` Aaron Jackson
@ 2013-01-17 12:46 ` Brad Smith
  2013-01-17 12:49 ` Brad Smith
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Brad Smith @ 2013-01-17 12:46 UTC (permalink / raw)
  To: qemu-devel

Before the patch in question was commited running QEMU 1.3.0 hosted on
OpenBSD I was able to cause QEMU to crash reproducibly by just booting
OpenBSD within QEMU and upon the kernel accessing the virtual disk to
read the disklabel or during an install writing the disklabel. After the
patch was applied I was not able to cause any crashes and went through a
handful of installs without any issues.

Are you able to build QEMU with debug symbols and get a backtrace once
it has crashed on your OS X system?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (11 preceding siblings ...)
  2013-01-17 12:46 ` Brad Smith
@ 2013-01-17 12:49 ` Brad Smith
  2013-01-17 14:00 ` Aaron Jackson
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Brad Smith @ 2013-01-17 12:49 UTC (permalink / raw)
  To: qemu-devel

The other question I have is if you look at the commit I mentioned as
causing the crash (at least on OpenBSD) and revert that change from
either 1.3.0 or HEAD branch and build QEMU on OS X does the crashing
you're experiencing go away?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (12 preceding siblings ...)
  2013-01-17 12:49 ` Brad Smith
@ 2013-01-17 14:00 ` Aaron Jackson
  2013-01-17 14:36 ` Rainer Müller
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Aaron Jackson @ 2013-01-17 14:00 UTC (permalink / raw)
  To: qemu-devel

On line 216 of qemu-thread-posix.c I have commented out the
++sem->count; which seems to be the only change made in that commit.
Unfortunately it still crashes with that error.

I have compiled with --enable-debug but not sure how to get a backtrace
or even a log of what goes wrong.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (13 preceding siblings ...)
  2013-01-17 14:00 ` Aaron Jackson
@ 2013-01-17 14:36 ` Rainer Müller
  2013-03-19  2:07 ` Brad Smith
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Rainer Müller @ 2013-01-17 14:36 UTC (permalink / raw)
  To: qemu-devel

Aaron, this added line in qemu-thread-posix.c is the fix, qemu is
expected to crash once this is removed.

I guess Brad meant to revert c166cb72f1676855816340666c3b618beef4b976
which introduced the fallback code. However, reverting this commit alone
will not work on Mac OS X as sem_timedwait() is not available (and the
reason why the fallback code was added at all).

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (14 preceding siblings ...)
  2013-01-17 14:36 ` Rainer Müller
@ 2013-03-19  2:07 ` Brad Smith
  2013-07-01  1:12 ` Brad Smith
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Brad Smith @ 2013-03-19  2:07 UTC (permalink / raw)
  To: qemu-devel

So this is still an issue with 1.4.x and/or master?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (15 preceding siblings ...)
  2013-03-19  2:07 ` Brad Smith
@ 2013-07-01  1:12 ` Brad Smith
  2013-08-05 21:08 ` Brad Smith
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 24+ messages in thread
From: Brad Smith @ 2013-07-01  1:12 UTC (permalink / raw)
  To: qemu-devel

Any OS X and NetBSD users still affected by this issue should test this
patch..

http://lists.nongnu.org/archive/html/qemu-devel/2013-06/msg05335.html

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (16 preceding siblings ...)
  2013-07-01  1:12 ` Brad Smith
@ 2013-08-05 21:08 ` Brad Smith
  2013-08-11 12:30 ` Rainer Müller
  2016-09-28 15:21 ` T. Huth
  19 siblings, 0 replies; 24+ messages in thread
From: Brad Smith @ 2013-08-05 21:08 UTC (permalink / raw)
  To: qemu-devel

Austin, Aaron and Reiner... Would you guys be able to test master on OS
X and report back if this issue has been fully resolved or not?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (17 preceding siblings ...)
  2013-08-05 21:08 ` Brad Smith
@ 2013-08-11 12:30 ` Rainer Müller
  2016-09-28 15:21 ` T. Huth
  19 siblings, 0 replies; 24+ messages in thread
From: Rainer Müller @ 2013-08-11 12:30 UTC (permalink / raw)
  To: qemu-devel

I was unable to reproduce the original issue on Mac OS X 10.8.4 using
the current master. However, I was also unable to reproduce the original
issue on the stable-1.5 branch which does not have the fix by Izumi
Tsutsui linked above. As this second fix is only for a problem that
appears in certain load situations, of course I might not be able to
reproduce it.

I also reviewed the code on master I am confident that the solution is
correct now.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  New

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

* [Qemu-devel] [Bug 1087114] Re: assertion "QLIST_EMPTY(&bs->tracked_requests)" failed
  2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
                   ` (18 preceding siblings ...)
  2013-08-11 12:30 ` Rainer Müller
@ 2016-09-28 15:21 ` T. Huth
  19 siblings, 0 replies; 24+ messages in thread
From: T. Huth @ 2016-09-28 15:21 UTC (permalink / raw)
  To: qemu-devel

As mentioned in previous comments already, this issue should be solved
by commit a795ef8dcb8cbadffc996c4, so setting the status to "Fix
released" now.

** Changed in: qemu
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1087114

Title:
  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed

Status in QEMU:
  Fix Released

Bug description:
  QEMU 1.3.0 on OpenBSD now crashes with an error as shown below and the
  command line params do not seem to matter.

  assertion "QLIST_EMPTY(&bs->tracked_requests)" failed: file "block.c",
  line 1220, function "bdrv_drain_all"

  #1  0x0000030d1bce24aa in abort () at /usr/src/lib/libc/stdlib/abort.c:70
          p = (struct atexit *) 0x30d11897000
          mask = 4294967263
          cleanup_called = 1
  #2  0x0000030d1bc5ff44 in __assert2 (file=Variable "file" is not available.
  ) at /usr/src/lib/libc/gen/assert.c:52
  No locals.
  #3  0x0000030b0d383a03 in bdrv_drain_all () at block.c:1220
          bs = (BlockDriverState *) 0x30d13f3b630
          busy = false
          __func__ = "bdrv_drain_all"
  #4  0x0000030b0d43acfc in bmdma_cmd_writeb (bm=0x30d0f5f56a8, val=8) at hw/ide/pci.c:312
          __func__ = "bmdma_cmd_writeb"
  #5  0x0000030b0d43b450 in bmdma_write (opaque=0x30d0f5f56a8, addr=0, val=8, size=1) at hw/ide/piix.c:76
          bm = (BMDMAState *) 0x30d0f5f56a8
  #6  0x0000030b0d5c2ce6 in memory_region_write_accessor (opaque=0x30d0f5f57d0, addr=0, value=0x30d18c288f0, size=1, shift=0, mask=255)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:334
          mr = (MemoryRegion *) 0x30d0f5f57d0
          tmp = 8
  #7  0x0000030b0d5c2dc5 in access_with_adjusted_size (addr=0, value=0x30d18c288f0, size=1, access_size_min=1, access_size_max=4, 
      access=0x30b0d5c2c6b <memory_region_write_accessor>, opaque=0x30d0f5f57d0) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:364
          access_mask = 255
          access_size = 1
          i = 0
  #8  0x0000030b0d5c3222 in memory_region_iorange_write (iorange=0x30d1d5e7400, offset=0, width=1, data=8)
      at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/memory.c:439
          mrio = (MemoryRegionIORange *) 0x30d1d5e7400
          mr = (MemoryRegion *) 0x30d0f5f57d0
          __func__ = "memory_region_iorange_write"
  #9  0x0000030b0d5c019a in ioport_writeb_thunk (opaque=0x30d1d5e7400, addr=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:212
          ioport = (IORange *) 0x30d1d5e7400
  #10 0x0000030b0d5bfb65 in ioport_write (index=0, address=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:83
          func = (IOPortWriteFunc *) 0x30b0d5c0148 <ioport_writeb_thunk>
          default_func = {0x30b0d5bfbbc <default_ioport_writeb>, 0x30b0d5bfc61 <default_ioport_writew>, 0x30b0d5bfd0c <default_ioport_writel>}
  #11 0x0000030b0d5c0704 in cpu_outb (addr=49216, val=8 '\b') at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/ioport.c:289
  No locals.
  #12 0x0000030b0d6067dd in helper_outb (port=49216, data=8) at /home/ports/pobj/qemu-1.3.0-debug/qemu-1.3.0/target-i386/misc_helper.c:72
  No locals.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1087114/+subscriptions

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2016-09-28 15:37 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-06  4:02 [Qemu-devel] [Bug 1087114] [NEW] assertion "QLIST_EMPTY(&bs->tracked_requests)" failed Brad Smith
2012-12-11 10:28 ` Stefan Hajnoczi
2012-12-12 18:10 ` [Qemu-devel] [Bug 1087114] " Brad Smith
2012-12-13  8:26 ` [Qemu-devel] [Bug 1087114] [NEW] " Zhi Yong Wu
2012-12-27  4:22   ` Brad Smith
2012-12-13  9:39 ` [Qemu-devel] [Bug 1087114] " Paolo Bonzini
2012-12-13 10:16 ` Brad Smith
2012-12-13 22:37 ` Brad Smith
2012-12-27  4:26 ` Brad Smith
2012-12-27 11:48   ` Paolo Bonzini
2013-01-12  5:15 ` Austin Seipp
2013-01-14  9:28   ` Markus Armbruster
2013-01-12 12:48 ` Aaron
2013-01-12 21:51 ` Rainer Müller
2013-01-13 12:22 ` Aaron Jackson
2013-01-17 12:46 ` Brad Smith
2013-01-17 12:49 ` Brad Smith
2013-01-17 14:00 ` Aaron Jackson
2013-01-17 14:36 ` Rainer Müller
2013-03-19  2:07 ` Brad Smith
2013-07-01  1:12 ` Brad Smith
2013-08-05 21:08 ` Brad Smith
2013-08-11 12:30 ` Rainer Müller
2016-09-28 15:21 ` T. Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.