• L
    QError: Don't abort on multiple faults · 27a749fb
    Luiz Capitulino 提交于
    Ideally, Monitor code should report an error only once and
    return the error information up the call chain.
    
    To assure that this happens as expected and that no error is
    lost, we have an assert() in qemu_error_internal().
    
    However, we still have not fully converted handlers using
    monitor_printf() to report errors. As there can be multiple
    monitor_printf() calls on an error, the assertion is easily
    triggered when debugging is enabled; and we will get a memory
    leak if it's not.
    
    The solution to this problem is to allow multiple faults by only
    reporting the first one, and to release the additional error objects.
    
    A better mechanism to report multiple errors to programmers is
    underway.
    Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
    Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
    27a749fb
monitor.c 121.8 KB