• J
    libxl: fix libvirtd segfault · dd00c3f6
    Jim Fehlig 提交于
    Commit d72ef888 introduced a bug in the libxl driver that will
    segfault libvirtd if libxl reports an error message, e.g. when
    attempting to initialize the driver on a non-Xen system.  I
    assumed it was valid to pass a NULL logger to libxl_ctx_alloc(),
    but that is not the case since any errors associated with the ctx
    that are emitted by libxl will dereference the logger and crash
    libvirtd.
    
    Errors associated with the libxl driver-wide ctx could be useful
    for debugging anyway, so create a 'libxl-driver.log' to capture
    these errors.
    dd00c3f6
libxl_conf.h 4.1 KB