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)