VMware {code} Community
skinger
Contributor
Contributor

vixDiskLibSample program dumps core at VixDiskLib_Open call (line 607)


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)


 

0 Kudos
4 Replies
skinger
Contributor
Contributor

Any help is much appreciated.

0 Kudos
PadmajaUK
Contributor
Contributor

Please check if the VDDK logs give any further info on this. Logs are located at /tmp/vmware-root/


0 Kudos
skinger
Contributor
Contributor


Thanks @PadmajaUK


here is the dump of log messages


VixDiskLib: linuxVerifySSLCertificates is 0

VixDiskLib: config options: libdir '/usr/lib/vmware-vix-disklib', tmpDir '/tmp/vmware-root'.

OBJLIB-LIB : Objlib initialized.

VixDiskLib: Attempting to locate advanced transport module in "/usr/lib/vmware-vix-disklib".

VixDiskLib: Advanced transport plugin was successfully loaded into vixDiskLib.

VixDiskLib: Enabling advanced transport modes.

OBJLIB-LIB : Objlib initialized.

VixDiskLib: Transport modes available: file:nbdssl:nbd:san.

VMware VixDiskLib (5.1) Release build-774844

2015-03-10T13:22:29.623+05:30 GVMOMI request limit: -1

VixDiskLibVimResolveHostName: Resolving IP address for hostname 10.20.38.65.

VixDiskLibVimResolveHostName: Resolved to 10.20.38.65.

VixDiskLibVim: VixDiskLibVimLogin

VixDiskLibVim: VixDiskLibVimLogout

VixDiskLib: Thumbprint for (null) not found in memory database



Moreover, searching through above message on net, came to know of open issue with VDDK 5.1 library that is causing this issue. Here is thread that talks about the issue in more details - https://communities.vmware.com/thread/432831


I have upgraded my library to 5.5 and am able to proceed further.

0 Kudos
wulikanhua
Contributor
Contributor

I am also facing exactly the same issue,can you help me?

thanks

0 Kudos