TritonDataCenter / pkgsrc-legacy

Automatically updated conversion of the "pkgsrc" module from anoncvs.netbsd.org
http://www.pkgsrc.org
127 stars 64 forks source link

qemu-system-* doesn't work #197

Open jeffpc opened 10 years ago

jeffpc commented 10 years ago
jeffpc@meili:/tmp$ qemu-img create -f qcow2 test 10g
Formatting 'test', fmt=qcow2 size=10737418240 encryption=off cluster_size=65536 lazy_refcounts=off 
jeffpc@meili:/tmp$ qemu-system-sparc64 -hda test -cdrom ~/Downloads/debian-7.5.0-sparc-CD-1.iso
Assertion failed: qemu_in_coroutine(), file qemu-coroutine-lock.c, line 150, function qemu_co_mutex_unlock

At this point, qemu hangs here, so I hit ctrl-\ to kill it.

^\Quit (core dumped)
jeffpc@meili:/tmp$ pstack core
core 'core' of 14069:   qemu-system-sparc64 -hda test -cdrom /home/jeffpc/Downloads/debian-7.5
-----------------  lwp# 1 / thread# 1  --------------------
 fffffd7fff19a467 __lwp_park () + 17
 fffffd7fff191e81 mutex_lock_impl () + 181
 fffffd7fff191fb4 mutex_lock () + c
 00000000006c4f9a qemu_mutex_lock () + 1a
 000000000063ba86 qemu_mutex_lock_iothread () + 86
 00000000005c4a33 main_loop_wait () + 173
 00000000006db421 main () + 11e1
 00000000004dbdec _start () + 6c
-----------------  lwp# 2 / thread# 2  --------------------
 fffffd7fff1a26ca __sigtimedwait () + a
 fffffd7fff18b907 sigwait () + f
 fffffd7fff17443a __posix_sigwait () + 32
 00000000006c8638 sigwait_compat () + 38
 fffffd7fff19a154 _thrp_setup () + bc
 fffffd7fff19a420 _lwp_start ()
-----------------  lwp# 4 / thread# 4  --------------------
 fffffd7fff1a34ba _lwp_kill () + a
 fffffd7fff12b6e1 raise () + 19
 fffffd7fff100a61 abort () + d9
 fffffd7fff100e64 _assert_c99 () + 8c
 00000000005f4945 qemu_co_mutex_unlock () + 45
 000000000050537e qcow2_co_readv () + 21e
 00000000004ee0a4 bdrv_co_do_readv () + f4
 00000000004eea95 bdrv_co_do_rw () + 75
 0000000000529a9a coroutine_trampoline () + 4a
 fffffd7fff0e4e70 resumecontext ()
-----------------  lwp# 5 / thread# 5  --------------------
 fffffd7fff19a467 __lwp_park () + 17
 fffffd7fff1937f0 cond_wait_queue () + 68
 fffffd7fff193c59 cond_wait_common () + 1e1
 fffffd7fff193f13 __cond_timedwait () + ab
 fffffd7fff193f5f cond_timedwait () + 27
 fffffd7ffea38538 umem_update_thread () + 1a8
 fffffd7fff19a154 _thrp_setup () + bc
 fffffd7fff19a420 _lwp_start ()

The other qemu-system-foo binaries are broken too.

qemu-1.7.0 on OpenIndiana with http://pkgsrc.joyent.com/packages/SmartOS/2014Q1/x86_64/All.

rmustacc commented 10 years ago

We likely should be disable the couroutine backend entirely.

rmustacc commented 10 years ago

Erroneous github auto close.

mamash commented 10 years ago

Erroneous github auto close.

wiedi commented 9 years ago

The coroutine pool is disabled in 8a62c7a745f03d9b1e2d21df3dbf838d0594d8a5.