Quantcast
Channel: VMware Communities : Discussion List - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 2039

vixDiskLibSample program dumps core at VixDiskLib_Open call (line 607)

$
0
0


I'm trying to connect to ESX server (5.2) using vixDiskLibSample program provided with visDiskLib (v5.2) running on RHEL 6.2 x64 VirtualMachine. Program runs fine until connection is created, but dumps core while executing VixDiskLib_Open call at line 607


Any idea whats going wrong here ....


-----


Breakpoint 1, VixDisk::VixDisk (this=0x7fffffffdeb0, connection=0x651730, path=0x7fffffffe459 "[datastore2]travapp1/travapp1.vmdk", flags=4)
    at vixDiskLibSample.cpp:606
606           _handle = NULL;
(gdb) list
601    public:
602    
603        VixDiskLibHandle Handle() { return _handle; }
604        VixDisk(VixDiskLibConnection connection, char *path, uint32 flags)
605        {
606           _handle = NULL;
607           VixError vixError = VixDiskLib_Open(connection, path, flags, &_handle);
608           CHECK_AND_THROW(vixError);
609           printf("Disk \"%s\" is open using transport mode \"%s\".\n",
610                  path, VixDiskLib_GetTransportMode(_handle));
(gdb) n
607           VixError vixError = VixDiskLib_Open(connection, path, flags, &_handle);
(gdb) p connection
$1 = (VixDiskLibConnection) 0x651730
(gdb) p path
$2 = 0x7fffffffe459 "[datastore2]travapp1/travapp1.vmdk"
(gdb) p flags
$3 = 4
(gdb) p appGlobals
$4 = {command = 8, adapterType = VIXDISKLIB_ADAPTER_SCSI_BUSLOGIC, transportModes = 0x0,
  diskPath = 0x7fffffffe459 "[datastore2]travapp1/travapp1.vmdk", parentPath = 0x0, metaKey = 0x0, metaVal = 0x0, filler = 255, mbSize = 100,
  numSectors = 1, startSector = 0, bufSize = 0, openFlags = 4, numThreads = 1, success = 1 '\001', isRemote = 1 '\001',
  host = 0x7fffffffe42f "10.xx.xx.xx", userName = 0x7fffffffe441 "root", password = 0x7fffffffe450 "xxxxxx", thumbPrint = 0x0, port = 902,
  srcPath = 0x0, connection = 0x651730, vmxSpec = 0x0, useInitEx = false, cfgFile = 0x0, libdir = 0x0, ssMoRef = 0x0}
(gdb) n


Program received signal SIGSEGV, Segmentation fault.
0x0000003129c7f9c1 in __strlen_sse2 () from /lib64/libc.so.6
(gdb)


 


Viewing all articles
Browse latest Browse all 2039

Trending Articles