Stefan Hajnoczi cb201b4872 qtest: Fix crash if SIGABRT during qtest_init()
If an assertion fails during qtest_init() the SIGABRT handler is
invoked.  This is the correct behavior since we need to kill the QEMU
process to avoid leaking it when the test dies.

The global_qtest pointer used by the SIGABRT handler is currently only
assigned after qtest_init() returns.  This results in a segfault if an
assertion failure occurs during qtest_init().

Move global_qtest assignment inside qtest_init().  Not pretty but let's
face it - the signal handler depends on global state.

Reported-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2014-03-13 21:12:07 +01:00
2013-04-18 13:50:53 +02:00
2014-03-12 16:45:25 +00:00
2014-03-13 13:19:46 +00:00
2013-08-07 12:48:00 -05:00
2014-03-03 09:46:27 +04:00
2014-03-13 13:19:46 +00:00
2014-03-12 10:44:45 +01:00
2014-03-13 15:33:04 +00:00
2012-09-07 09:02:44 +03:00
2014-03-12 17:26:32 +01:00
2013-09-05 09:40:31 -05:00
2014-01-08 19:07:20 +00:00
2014-03-13 14:42:24 +01:00
2013-10-11 09:34:56 -07:00
2014-03-11 19:52:32 +00:00
2008-10-12 17:54:42 +00:00
2013-07-23 02:41:31 +02:00
2013-02-21 16:17:31 -06:00
2014-03-13 14:42:24 +01:00
2013-08-12 09:15:12 -05:00
2014-03-13 14:42:24 +01:00
2013-09-03 12:25:55 +02:00
2014-02-21 21:02:23 +01:00
2014-03-13 14:34:16 +00:00
2014-02-25 14:30:28 +01:00
2014-02-25 10:50:11 +00:00
2013-12-04 15:19:00 +01:00
2013-07-19 12:52:03 +04:00
2014-03-05 03:06:24 +01:00
2013-10-11 09:34:56 -07:00
2014-02-20 13:14:18 +01:00
2013-09-25 21:23:05 +02:00
2014-02-17 11:57:23 -05:00
2013-11-27 14:02:45 -08:00
2013-10-11 09:34:56 -07:00
2013-04-08 18:13:10 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 431 MiB
Languages
C 82.9%
C++ 6.4%
Python 3.2%
Dylan 2.9%
Shell 1.6%
Other 2.8%