qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] vl: take iothread lock very early


From: Oliver Francke
Subject: Re: [Qemu-devel] [PATCH] vl: take iothread lock very early
Date: Tue, 3 Mar 2015 19:02:16 +0100

Hi,

> Am 03.03.2015 um 18:32 schrieb Paolo Bonzini <address@hidden>:
> 
> 
> 
> On 03/03/2015 18:19, Oliver Francke wrote:
>> 
>> #0  __GI_exit (status=1) at exit.c:104
>> #1  0x000055555575cf15 in os_daemonize () at os-posix.c:227
>> #2  0x0000555555773f2e in main (argc=50, argv=0x7fffffffe0d8,
>> envp=0x7fffffffe270) at vl.c:3770
>> 
>> compiled with "--enable-debug" and in gdb "b exit". Not a coder, so if
>> this is _not_ sufficient, please give me some adivce ;)
> 
> Try removing -daemonize (hmm, that might actually fix the bug).  You
> should not need "b exit", because the error is a SIGABRT and gdb stops
> automatically.  The fix could be something like this:
> 

I can confirm, that un-daemonized the VM works, as well as…

> diff --git a/vl.c b/vl.c
> index e1ffd0a..af61835 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -3759,7 +3759,9 @@ int main(int argc, char **argv, char **envp)
> 
>     loc_set_none();
> 
> +    qemu_mutex_unlock_iothread();
>     os_daemonize();
> +    qemu_mutex_lock_iothread();
> 

… after applying these 2 lines.


So thnx very much for the quick help/fix.

Oliver.

>     if (qemu_init_main_loop(&main_loop_err)) {
>         error_report_err(main_loop_err);
> 
> Paolo




reply via email to

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