On 15 April 2012 15:39, Andreas Färber <afaer...@suse.de> wrote: > For QOM'ified CPUs we cannot g_free() CPUArchState, we must > object_delete() the object it is embedded into. > > Should fix LP#982321 (invalid free() while executing pacman w/qemu-arm). > > Reported-by: Serge Schneider <se...@xecdesign.com> > Signed-off-by: Andreas Färber <afaer...@suse.de> > Cc: Peter Maydell <peter.mayd...@linaro.org>
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> Tested with a random simple multithreaded test program, confirmed that this fixes the invalid-free problem. (The program is still somewhat unreliable under qemu, sometimes segfaulting, but I think that is just the usual "multithreaded programs don't work reliably" issue we've had since forever.) -- PMM