|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
[Xen-devel] Seg fault running xl create with 4.1.0-rc2 
| 
If I run xl create configfile where configfile includes the lines
bootloader = "/usr/bin/pygrub"
disk = [ 'file:/dev/mapper/vg0-partname,xvda1,w' ]
then xl segfaults at the line
    ret = strdup(dev);
of libxl_device_disk_local_attach() in tools/libxl/libxl.c . The problem 
is that dev is not set if libxl__blktap_enabled(&gc) is false or if 
phystype isn't recognized. In the latter case I presume we want to skip 
that line and return NULL, but if libxl__blktap_enabled(&gc) is false we 
should be returning something, at least in the case where 
phystype=PHYSTYPE_FILE, so that we can fall back to qdisk. I think 
something like the attached patch (not yet tested) should work.
        Michael Young bootloaderfixes.patch Description: Text document
 _______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-devel] Seg fault running xl create with 4.1.0-rc2,
M A Young <=
 |  |  | 
  
    |  |  |