qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 4/5] coroutine: add check-coroutine automated


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH v5 4/5] coroutine: add check-coroutine automated tests
Date: Sat, 25 Jun 2011 16:27:51 +0200

Am 25.06.2011 um 16:11 schrieb Andreas Färber:

Am 12.06.2011 um 22:46 schrieb Stefan Hajnoczi:

To run automated tests for coroutines:

make check-coroutine
./check-coroutine

The commit message doesn't correspond to the changes, it's test- coroutine below.

$ ./test-coroutine
/basic/lifecycle: Segmentation fault

Compiles without warnings but crashes at runtime on Darwin/ppc64. It's using coroutine-ucontext.o implementation.

(gdb) run
Starting program: /Users/andreas/QEMU/qemu64/test-coroutine
warning: posix_spawn failed, trying execvp, error: 86
Reading symbols for shared libraries +++++++++++++ + ....................................................................... done
/basic/lifecycle:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
qemu_coroutine_create (entry=0x2b10 <set_and_exit>) at /Users/ andreas/QEMU/qemu/qemu-coroutine.c:23
23          co->entry = entry;
(gdb)

Commenting out CONFIG_UCONTEXT_COROUTINE=y in config-host.mak to force the coroutine-gthread.o implementation, this does not happen:

$ ./test-coroutine
/basic/lifecycle: OK
/basic/yield: OK
/basic/nesting: OK
/basic/self: OK
/basic/in_coroutine: OK

Andreas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]