[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] linux-user: Fix exit syscall with QOM CPU
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] linux-user: Fix exit syscall with QOM CPU |
Date: |
Sun, 15 Apr 2012 16:55:54 +0100 |
On 15 April 2012 15:39, Andreas Färber <address@hidden> 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 <address@hidden>
> Signed-off-by: Andreas Färber <address@hidden>
> Cc: Peter Maydell <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
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